I've an embedded system, which has to work without garaphics adapter but
with keyboard. So I added serial console support to Linux (2.4.3) , that it
can boot without VGA. However, now my app takes input from the serial
console only and I can't control it by keyboard.
How can I have stdin reading from keyboard and stdout working on serial
console? I've compiled the kernel with console support for both ttyS0 and
tty0. My idea was to close stdin with close(0) and to reopen it with
open("/dev/tty0", O_RDONLY). But it doesn't work.
TIA for your hints.