home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.lang.c:12465 comp.sys.ibm.pc:428
- Newsgroups: comp.lang.c,comp.sys.ibm.pc
- Path: sparky!uunet!mcsun!Germany.EU.net!nixpbe!uranium!josef
- From: Josef Moellers <mollers.pad@sni.de>
- Subject: Re: Using ANSI.SYS codes from C? (Turbo)
- Sender: josef@nixpbe.sni.de (Moellers)
- Message-ID: <josef.714123379@uranium>
- Date: Tue, 18 Aug 1992 07:36:19 GMT
- References: <1992Aug18.013912.12547@cs.umb.edu>
- Organization: Siemens Nixdorf Info.Sys. AG, Paderborn, Germany
- Lines: 21
-
- In <1992Aug18.013912.12547@cs.umb.edu> cteague@ra.cs.umb.edu (Charles F. Teague II) writes:
-
-
- > Is there any way to use ANSI.SYS escape sequences from C? (TurboC++v1.0)
- >I'm hoping to use this just to get a simple coloring of my text, without
- >using conio.h, and staggering cprintf()s with textcolor() and/or textattr().
-
- > I've tried several different output fns, and none of them seem to be able
- >to do what a simple echo command in a batch file can do: change the text
- >color by using ansi codes. If anyone can help me out, I'd appreciate it.
-
- > Thanks,
-
- I've never tried this, but something like
- printf("\033[3mText\033[0m");
- should do something to Your "Text".
-
- --
- | Josef Moellers | c/o Siemens Nixdorf Informationssysteme AG |
- | USA: mollers.pad@sni-usa.com | Abt. STO-XS 113 | Riemekestrasse |
- | !USA: mollers.pad@sni.de | Phone: (+49) 5251 835124 | D-4790 Paderborn |
-