Displays a box in which the user can type a line of text.
<name:input> displays an empty input box named name.<age:input width=4,em {18}> displays a narrow input box containing 18.<pw:input password=true> displays an input box that hides what is typed.The text in the box. Reading the input tag generates what the user has typed; assigning to it changes the text in the box.
true to hide the typed characters on screen. Reading the field still generates the real text.The contents of an input box are always text, even if they look like a number. Use num to convert them before calculating with them.
A common pattern is to send the contents to the program and then clear the box:
<name:input onKeyDown=<if <eq key, 13> then=<putLn name>, <name.clear>>> <button {OK} onClick=<putLn name>, <name.clear>>
If code runs on every keystroke (for example in onInput), the console's busy state can flicker while the user types. Print <console.busy false> to turn it off.
An input box holds a single line of text. For several lines, use a box with editable=true, a fixed size and scroll=true.