Dear list,
I am writing a script that reads stdin and uses the function
(key). But when I call it like:
$ cat file.txt |script.l
(key) does not wait for a keypress.
How could I force (key) to wait for a keypress?
This is the script:
***
#!/usr/bin/picolisp
Hi Enrique,
> $ cat file.txt |script.l
> (key) does not wait for a keypress.
I think this is not possible, at least I don't see a direct way.
(key) reads from standard input. However, here the process is started in
a pipe, so standard input is not the console, but a file. After reading
with