Syslab Sales and Services Pvt Ltd. wrote:

>       Hello, friends! I am a student of electronics at the university of
> Pune, in India and as my final year project i'm developing an MIS system
> on Linux
> and remote data acquisition terminals. I'm using the MCS 51 architecture
> for the remote handheld terminals, the terminals will have a 16 character,
> 2 line LCD display. I want to write a terminal emulator which would enable
> me to utilise the usual programs like login etc.. for the remote terminals
> I'm also on the lookout for a good database system to use. Could you give
> me some pointers on how terminals work? or how to go about writing one, or
> where I could get more info ? 

You just need to be able to receive and send data via a serial
connection.

Whenever you receive a character from the serial connection, just
display it at the cursor position and move the cursor forward. The
only characters which require special handling are 10 (LF) and 13
(CR). LF moves the cursor down one line; CR moves the cursor to the
beginning of the current line.

Whenever a key is pressed, you need to send the corresponding ASCII
code via the serial connection.

That's about all there is to it.

-- 
Glynn Clements <[EMAIL PROTECTED]>

Reply via email to