Both sides previous revisionPrevious revision | Next revisionBoth sides next revision |
custom:javascript [2019/07/26 18:05] – [Output] Created Input and Prompt sections with beginning tables (need work) digital man | custom:javascript [2020/05/02 15:48] – [Input] Add notes and console.inkey() method digital man |
---|
| |
^ Method ^ BBS((Terminal Server)) ^ JSexec ^ Notes ^ | ^ Method ^ BBS((Terminal Server)) ^ JSexec ^ Notes ^ |
| ''read()'' | Yes | Yes | | | | ''read()'' | Yes | Yes | Read up to maxlen (default 128) characters of input | |
| ''readln()'' | Yes | Yes | | | | ''readln()'' | Yes | Yes | Read a string (line of input) from user, up to maxlen chars (default: 128) | |
| ''console.getstr()'' | Yes | No | | | | ''console.inkey()'' | Yes | No | Wait for a key-press or an elapsed timeout duration | |
| ''console.getkey()'' | Yes | No | | | | ''console.getstr()'' | Yes | No | Get a string of characters from user | |
| ''console.getbyte()'' | Yes | No | | | | ''console.getkey()'' | Yes | No | Get a single key-press | |
| ''console.getnum()'' | Yes | No | | | | ''console.getbyte()'' | Yes | No | Get a unprocessed input byte from remote terminal | |
| ''console.getkeys()'' | Yes | No | | | | ''console.getnum()'' | Yes | No | Get a number (between 1 and maxnum) from user | |
| ''console.gettemplate()'' | Yes | No | | | | ''console.getkeys()'' | Yes | No | Get a key from a list of valid keys, or a number | |
| | ''console.gettemplate()'' | Yes | No | Get a string conforming to a provided input template | |
| |
==== Prompt ==== | ==== Prompt ==== |