home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!wupost!waikato.ac.nz!comp.vuw.ac.nz!cavebbs!sideways!patrick
- Newsgroups: comp.lang.c
- Subject: Re: INVERSE CHARACTORS?
- Message-ID: <1992Sep13051550patrick@sideways.welly.gen.nz>
- From: Pat Cain <patrick@sideways.welly.gen.nz>
- Date: Sun, 13 Sep 1992 05:15:50 GMT
- Organization: Sideways Bulletin Board, Lower Hutt, New Zealand
- In-Reply-To: <15060003@hpdmd48.boi.hp.com>
- Lines: 16
-
- slack@hpdmd48.boi.hp.com (David Slack) in <15060003@hpdmd48.boi.hp.com> writes:
- > hope this works, neophite notes posting attempt!
- > I am trying to learn to program in C, can anyone direct me to where I
- > could find out how to print INVERSE charactors? I am working on a menu
- > screen in the HP-UNIX invironment and would like to be able to do it
- > without using curses and in ANSI-C. Any help is appreciated.
-
- If you are _only_ going to be using the program from VT100 compatible
- terminals (that includes xterm etc.) then here's an easy way:
-
- printf("\x1b[7m"); -- turns inverse on
- printf("\x1b[m"); -- turns inverse off
-
- But using curses is a MUCH better idea as the resulting program will
- work on virtually any terminal.
-
-