home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / c / 13607 < prev    next >
Encoding:
Internet Message Format  |  1992-09-13  |  1.1 KB

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