I have a 40x7 VFD that functions as a serial terminal. It has a dedicated keypad that provides hex-entry, however, I would like to use a keyboard for the standard input. Basically, I want to be able to use the VFD as a display for a Linux bash prompt, but use the keyboard connected to the computer as the means of input. Instead of connecting a monitor, the serial terminal will be the monitor. I can get the login prompt displayed on the VFD with agetty, but since it only has hex-entry, how can I change where the system is looking for standard input?
Thanks, Core_Module
I think the best method would be to create a pseudo terminal. In doing so you create a fake terminal device with a
/dev/pts/[n]name that acts like a real input/output device. A program could connect the console (keyboard) as input and the VFD as output and send and receive that data over the pseudo device. You can then pointagettyat the/dev/pts/[0]device instead of a/dev/ttyS[n]device. Some ideas on doing this can be found in many tutorials online. From the link:I found another StackOverflow question that may also be of assistance. See this link. It could be adapted to suit your needs.