| ??? 12/06/03 02:08 Read: times |
#60034 - RE: Terminal control from 8051 serial port Responding to: ???'s previous message |
Sasha:
The process of painting screens on a terminal emulator is relatively easy. But that aside,,,what I have generally done in a project that needs to write to a terminal is to make a simple software interface layer that provides subroutines for functions of clear_screen(), cursor_address(), erase_to_endscreen(), erase_to_endline(), clear_area()....etc. These generally result in the sending of an appropriately formatted ESC sequence out the serial port, To this you can add commands to treat reagions of the screen as fields for values to display for numbers and strings. Fields should also support attributes so you can blink, reverse video, or highlite certain parts of the screen. I have some code that was written in Borland C 3.1 for running on a PC that talkes out a serial port to to an RS232 terminal. I can send that to you if interested since it should be easy to adapt it to Keil C51. You will just have to provide the character level I/O routines and you may have to modify the ESC sequences to match your terminal emulator. (I'm not sure I recall if the code I have was VT100/ANSCII ESC sequences (ie.. ESC [ 2 J to clear screen) or if it was some other terminal command set. Click my name above to get my mailto: address. Michael Karas |
| Topic | Author | Date |
| Terminal control from 8051 serial port | 01/01/70 00:00 | |
| RE: Terminal control from 8051 serial port | 01/01/70 00:00 | |
| RE: Terminal control from 8051 serial port | 01/01/70 00:00 | |
RE: Terminal control from 8051 serial port | 01/01/70 00:00 |



