Purpose, Argument, Streams, Usage, Examples, Related
(1) >>──┬─CONSole──┬──┬─────────────┬────────────────────────────────────────────────────>< ├─SCReen───┤ └─STOP─string─┘ └─TERMinal─┘
(2) STOP ?
Notes: (1) May be specified only when CONSOLE is the first stage of a pipeline. (2) Display the CONSOLE prompt and STOP string.
(1) >>────CONSole──────────────────────┬─────────────────────────┬───────────────────────>< └─prefixstr─┬───────────┬─┘ └─suffixstr─┘
Notes: (1) May be specified only when CONSOLE is not the first stage of a pipeline.
Use the CONSOLE stage to read lines from the keyboard or write lines to the console.
**** Top of file **** Address Rxpipe
'pipe cons stop /eof/', '| xlate', '| specs recno 1 1-* nw', '| console', '| > keyboard.txt'
Exit 0 **** End of file ****
console:
CONSOLE(0): 'eof' to stop. CONSOLE(0): ? one 1 ONE CONSOLE(0): ? flew over 2 FLEW OVER CONSOLE(0): ? the cuckoos 3 THE CUCKOO'S CONSOLE(0): ? nest 4 NEST CONSOLE(0): ? eof
keyboard.txt ...|...+....1....+....2....+....3....+....4.... **** Top of file **** 1 1 ONE 2 2 FLEW OVER 3 3 THE CUCKOO'S 4 4 NEST **** End of file ****
**** Top of file **** Address Rxpipe
'pipe console', '| take 2', '| console' Exit 0 **** End of file ****
See: Usage.