42 :)
:) cat << EOF | xargs myfig "20 constant A" "2 constant B"
cr
A B
tuck * +
'." --> "' .
bye
EOF
42 :)
I recall an old DOS Forth had -FILE and -TERMINAL options where
-FILE option was used for piped input afterwich -TERMINAL would
switch the Forth back to terminal input.
On Linux using Readline allows direct piped input but I prefer
just using xargs for piped input and not altering termio.
( With termio's raw mode "Ok" is able to be placed on the line of
the last input; with Readline the "Ok" falls on the next line due
to Readline echoing newline.)
--
me
Linux provides you with the input editing facilities, that you have
used in your shell and even a command history,
if you do
rlwrap forth
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 503 |
Nodes: | 16 (2 / 14) |
Uptime: | 226:49:16 |
Calls: | 9,884 |
Calls today: | 6 |
Files: | 13,791 |
Messages: | 6,206,416 |
Posted today: | 1 |