Single-line text input with events.
import { TextInput } from 'nikcli-tui';
new TextInput({ parent: screen, label: 'Name' });
npm run tsx:core-gallery
npm i nikcli-tui
new TextInput({ parent: screen, top: 1, left: 2, width: 30, label: 'Name', onSubmit: v => console.log(v) });
new TextInput({ parent: screen, top: 3, left: 2, width: 30, label: 'Password', password: true });