home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / linux / 10664 < prev    next >
Encoding:
Text File  |  1992-09-14  |  2.5 KB  |  58 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!spool.mu.edu!agate!boulder!kinglear!drew
  3. From: drew@kinglear.cs.colorado.edu (Drew Eckhardt)
  4. Subject: Re: Can you access a virtual console directly?
  5. Message-ID: <1992Sep14.174931.2373@colorado.edu>
  6. Sender: news@colorado.edu (The Daily Planet)
  7. Nntp-Posting-Host: kinglear.cs.colorado.edu
  8. Organization: University of Colorado at Boulder
  9. References: <1992Sep14.164729.28907@mits.mdata.fi>
  10. Date: Mon, 14 Sep 1992 17:49:31 GMT
  11. Lines: 45
  12.  
  13. In article <1992Sep14.164729.28907@mits.mdata.fi> kennu@mits.mdata.fi (Kenneth Falck) writes:
  14. >Can you access a linux virtual console directly, something like what
  15. >you usually do with MSDOS when writing characters and attributes to 
  16. >B800:xxxx?
  17.  
  18. Maybe, but you shouldn't.
  19.  
  20. >I think it might be useful for writing a terminal program that would
  21. >be a bit more sophisticated than kermit or XComm. It feels a bit
  22. >dumb to use termcap-codes to handle the local output, if you know
  23. >you'll be using this terminal from the virtual consoles only.
  24.  
  25.  
  26. There are MGR drivers for Hercules, EGA/VGA, and Trident SVGA boards.
  27. There are free Xservers for the Tseng, Paradise PVG1, Genoa GVGA, 
  28. ATI boards, 8514/A, and EGA/VGA using the MFB code (Albeit some
  29. are in alpha or beta form).  Chances are that you may end up 
  30. running some windowing system with some terminal emulator on 
  31. your system.  Of course, your program won't work with any of these.
  32.  
  33. You can pick up dumb terminals VERY cheap.  Some places even give 
  34. them away. Of course, your program won't work with any of these.
  35.  
  36. If you use termcap or curses, your program will run on dec VT100's,
  37. under the xterm client, under a MGR window, and even that Fubar4000 
  38. terminal that you picked up at the local ham/computer swap for $5.  
  39. It will also run on most other machines with the same curses library (ie SYSV 
  40. or Beserkly).
  41.  
  42. >I thought I might ask for advice, since if I succeed in writing a 
  43. >terminal program, I don't want it to break with the next kernel
  44. >release because of using some odd non-fixed memory address or 
  45. >something...
  46.  
  47. If you want to write to the buffer directly, you'll have to write
  48. /dev/kmem, using the addresses specified in the kernel NLIST. This is 
  49. non-portable, and there are no gurantees that the internal structures 
  50. won't change in the next release.
  51.  
  52.  
  53. -- 
  54. Microsoft is responsible for propogating the evils it calls DOS and Windows, 
  55. IBM for AIX (appropriately called Aches by those having to administer it), but 
  56. marketing's sins don't come close to those of legal departments.
  57. Boycott AT&T for their absurd anti-BSDI lawsuit.
  58.