angerangel edited this page Jan 4, 2013 · 1 revision

USAGE

   INPUT 

DESCRIPTION

Inputs a string from the console. New-line character is removed.

INPUT is a function value.

#SOURCE

input: make function! [  [
    {Inputs a string from the console. New-line character is removed.}
    /local scheme line
][
    if any [
        not port? system/ports/input
        not open? system/ports/input
    ] [
        system/ports/input: open [scheme: 'console]
    ]
    line: to-string read system/ports/input
    trim/with line newline
    line
] ]
Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.