Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!spool2.mu.edu!uunet!bria!mike From: mike@bria Newsgroups: comp.lang.c Subject: Re: C Escape Sequences? Message-ID: <398@bria> Date: 27 Jan 91 19:28:42 GMT References: Reply-To: uunet!bria!mike (Michael Stefanik) Organization: Briareus Corporation, Los Angeles, CA Lines: 15 In article 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 ..."