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

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!snorkelwacker.mit.edu!bloom-picayune.mit.edu!athena.mit.edu!tytso
  3. From: tytso@athena.mit.edu (Theodore Y. Ts'o)
  4. Subject: Re: Can you access a virtual console directly?
  5. In-Reply-To: drew@kinglear.cs.colorado.edu's message of 14 Sep 92 17:49:31 GMT
  6. Message-ID: <TYTSO.92Sep14231653@SOS.mit.edu>
  7. Sender: news@athena.mit.edu (News system)
  8. Nntp-Posting-Host: sos.mit.edu
  9. Organization: Massachusetts Institute of Technology
  10. References: <1992Sep14.164729.28907@mits.mdata.fi> <1992Sep14.174931.2373@colorado.edu>
  11. Date: Tue, 15 Sep 1992 03:17:13 GMT
  12. Lines: 25
  13.  
  14. In article <1992Sep14.174931.2373@colorado.edu> drew@kinglear.cs.colorado.edu (Drew Eckhardt) writes:
  15. >In article <1992Sep14.164729.28907@mits.mdata.fi> kennu@mits.mdata.fi (Kenneth Falck) writes:
  16. >>Can you access a linux virtual console directly, something like what
  17. >>you usually do with MSDOS when writing characters and attributes to 
  18. >>B800:xxxx?
  19. >
  20. >Maybe, but you shouldn't.
  21. >
  22. >If you want to write to the buffer directly, you'll have to write
  23. >/dev/kmem, using the addresses specified in the kernel NLIST. This is 
  24. >non-portable, and there are no gurantees that the internal structures 
  25. >won't change in the next release.
  26.  
  27. More importantly, if you have to write to /dev/kmem, you derive *no*
  28. speed advantage over writing to /dev/tty.  Trying to write to the
  29. virtual console's memory is just a bad idea.
  30.  
  31. Also, as Drew already pointed out, such a program wouldn't work over MGR
  32. or X11; and most people will probably end up running X11, or possible
  33. MGR, so it wouldn't be a very useful terminal program.
  34.  
  35. Speaking of which, why do you want to write your own terminal program?  
  36. What's wrong with kermit that you want to re-invent your own wheel?
  37.  
  38.                         - Ted
  39.