[comp.lang.c] C Escape Sequences?

mike@bria (01/28/91)

In article <D02+CT+@irie.ais.org> ais.org!jph (Joseph Hillenburg) writes:
>Whats the proper way to use ASCII escape sequences in C, according to
>the termcap? I have a program that uses them hardcoded, but someone
>tells me that thats unsafe, but I'd like to keep them.

Hardcoded escape sequences for screen control falls under the catagory
of *bad karma*.  If you don't want to use curses(3) for some reason (and
there are alot of reasons), then you should at least use the primitive
functions for reading a termcap entry, getting the value for a capname, etc.
-- 
Michael Stefanik, Systems Engineer (JOAT), Briareus Corporation
UUCP: ...!uunet!bria!mike
--
technoignorami (tek'no-ig'no-ram`i) a group of individuals that are constantly
found to be saying things like "Well, it works on my DOS machine ..."