Syslab Sales and Services Pvt Ltd. wrote:
> > You just need to be able to receive and send data via a serial
> ......
> > Whenever a key is pressed, you need to send the corresponding ASCII
> > code via the serial connection.
> >
> 1. How do I describe this terminal in termcap/terminfo?
You only need a termcap/terminfo entry if you wish to use the terminal
for `full-screen' applications, e.g. vi, Emacs. With only 2 lines,
this isn't likely to be of much use.
> I have just read something about the curses library, however a
> book on the curses library is not available here in India.
> Where could I get more info/downloadable tutorial perhaps?
> I'm currently reading the man page.
The manual pages should provide adequate documentation. Try looking at
some existing entries (use `infocmp' to read terminfo files).
> 2. How do I make sure that Linux initialises this terminal on
> startup?
> 3. How do I make sure that the getty & login processes are carried
> out on starting?
If the terminal will be permanently connected, add a getty process to
/etc/inittab, e.g.
s1:12345:respawn:/sbin/agetty 19200 ttyS0 dumb
`19200' is the line speed, `ttyS0' is the serial port, and `dumb' is
the terminal type (used to initialise $TERM).
--
Glynn Clements <[EMAIL PROTECTED]>