Sourangshu Bhattacharya wrote:
> 
> Hi,
> 
> >From what I got, there are two type of terminal control. One that uses the
> ansi codes as Mr. Laha rightly said. ( e.g. backspace, carriage return,
> line feed, etc). but they treat the terminal as a serial device. I cant do
> things like erase some text once it has been sent. ( one round about way
> is a carriage return and then printing all spaces). but it seems there are
> slightly more advanced requests provided by IOCTL function which allow
> things like setting the terminal size, etc.
> 
> But I couldnt find any exhaustive documentation for these requests.
> Any pointers in this direction will be very helpful.
> 
> My interest is totally Academic and I dont bother about portability. It
> will be fine if the thing runs on normal ANSI terminals or VT100.
> 
> Thank you
> 
> Sourangshu

Okay, then. The most instructive place to look at will surely be the
(n)curses source code. For the kind of thing you have in mind, you have
to set the terminal in "raw" mode, in which no character has any special
meaning, as oppsed to the usual "canonical" mode where characters like
CR, NL, BS and TAB are specially processed by the terminal driver before
the input is handed to the requesting program.

You might also like to read:

    man termcap (thanks to Russell McOrmond for this one)
    man terminfo (ASCII codes for controlling ansi/vt100 terminals
appear in an example here)
    man termios (system calls for controlling a terminal).

Its been many years since I played (a little bit) with these things. But
if you wish to pursue this, I'm willing to try and recall for you what I
once learnt.

Perhaps we should do this offlist?

- Manas Laha

--
To unsubscribe, send mail to [EMAIL PROTECTED] with the body
"unsubscribe ilug-cal" and an empty subject line.
FAQ: http://www.ilug-cal.org/node.php?id=3

Reply via email to