[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Read user input from terminal when a pipe is used
- From: Alexander Schulz <aiqpost@...>
- Date: Fri, 6 Dec 2013 15:09:45 +0100
Hey,
i want to create a script with lua that reads from a pipe and allows to read input from the user terminal.
Example: history -n | tail -n 10 | my_script
In this case is io.stdin a file descriptor to the pipe.
How can i get now in lua a file descriptor on the current terminal?
Thanks,
Alexander