Stdin is not redirected, so it takes input from the original terminal device, eventually mapping back to my keyboard.A terminal emulator is a program that emulates the functionalities of the traditional computer terminals. Putting it all together we have the tinyterm command, which runs its arguments as a subprocess, sending the child’s stdout and stderr to the LCD. The lcdWriter‘s Write method has a little bit of smarts to deal with making the LCD look like a 16 x 4 terminal, rather than a linear stream of characters, handles scrolling the screen, and obscures the odd addressing scheme of the video memory inside the HD44780. Using an lcdWriter type (more on that in the next slide), Tinyterm spawns a child process and redirects Stdout and Stderr to the LCD. So, could I connect a UNIX process’s output to the LCD screen transparently ?Įnter Tinyterm, a simple Go program that does just that.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |