I have been trying to use the "dialog" utility to build interactive menus. All works fine if I work from a terminal; menus are displayed and I can interact from those menus using my keyboard.
But now I want another device to be the destination for the output and another device (keypad/pointer) to provide input for the dialog.
From my existing TTY (/dev/console) I run dialog and I redirect output to /dev/tty0. The menu appears on tty0 fine; but I expected now to be driving the input from the terminal where I started the dialog script. This does not appear to work.
So can I make sure my existing TTY provides the input to dialog and then how can I inject events into dialog from a device that is not a TTY device. Can I just echo charater sequences somehow into dialog or is the issue it wants a real device that behaves like a TTY inclusing all TTY ioctls?
Simple redirection for the input does not appear to work?