textinput.settings.once

getTextInput(id).settings.once()

Disables the input box after the key enter/return has been pressed for the first time while editing.

[js highlight=”3″ try=”true”]newTextInput(“poem”, “”)
.settings.before( newText(“flowers”, “Violets are blue, roses are red, “) )
.settings.once()
.print()
.wait()
[/js]

Adds a one-line input box to the screen preceded with Violets are blue, roses are red, on its left and waits for a press on the enter/return key, after what the text can no longer be edited.