home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / hp / 9881 < prev    next >
Encoding:
Text File  |  1992-08-31  |  1.7 KB  |  48 lines

  1. Newsgroups: comp.sys.hp
  2. Path: sparky!dsndata!dsndata!jeff
  3. From: jeff@dsndata.uucp (Jeff Minnig)
  4. Subject: Re: Colour X display corrupted by console writes on HP 710
  5. In-Reply-To: c0033013@ws.rz.tu-bs.de's message of Sun, 30 Aug 1992 18:38:04 GMT
  6. Message-ID: <JEFF.92Aug31085031@dsndata.uucp>
  7. Sender: jeff@dsndata.uucp (Jeff Minnig)
  8. Organization: Design Data
  9. References: <BtJB7y.IF8@csc.liv.ac.uk> <7371269@hpfcso.FC.HP.COM>
  10.     <C0033013.92Aug30193804@rznb23.rz.tu-bs.de>
  11. Date: Mon, 31 Aug 1992 14:50:31 GMT
  12. Lines: 39
  13.  
  14. In article <C0033013.92Aug30193804@rznb23.rz.tu-bs.de> c0033013@ws.rz.tu-bs.de (Axel Brandes) writes:
  15.  
  16. > But one detail is left: we use xdm instead of the raw console (or
  17. > vue). Is there a way to catch up output to the console with an
  18. > 'invisible' object (similar to the visible one 'hpterm -C ...') ?
  19. > The crux is that we don't want to *see* something else than the
  20. > background and the xdm login window.
  21.  
  22. You could write a small program that simply logs the console output to
  23. a file using:
  24.  
  25.         fd = open( "console_log", "w" );
  26.         ioctl( fd, TIOCCCONS );
  27.  
  28. This may not be completely correct, but it gives you the general idea.
  29. TIOCCONS is located in /usr/include/sys/termio.h...
  30.  
  31. -jeff-
  32.  
  33. --
  34.  
  35. ----------------------------------------------------------------------
  36.     I said it, not the people I work for.
  37. ----------------------------------------------------------------------
  38. Jeff Minnig                     | (402) 476-8278
  39. Design Data            |
  40. 1033 'O' St.  Suite 324         | {hpfcla,sparky}!dsndata!jeff
  41. Lincoln NE 68508                | 
  42. ----------------------------------------------------------------------
  43.     Home is where your keyboard is.
  44. ----------------------------------------------------------------------
  45.  
  46.