home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / linux / 10764 < prev    next >
Encoding:
Internet Message Format  |  1992-09-15  |  3.2 KB

  1. Path: sparky!uunet!mcsun!news.funet.fi!hydra!klaava!wirzeniu
  2. From: wirzeniu@klaava.Helsinki.FI (Lars Wirzenius)
  3. Newsgroups: comp.os.linux
  4. Subject: Re: Can you access a virtual console directly?
  5. Message-ID: <1992Sep15.212642.26628@klaava.Helsinki.FI>
  6. Date: 15 Sep 92 21:26:42 GMT
  7. References: <1992Sep14.164729.28907@mits.mdata.fi> <1992Sep14.220800.12868@klaava.Helsinki.FI> <1992Sep15.164930.11353@mits.mdata.fi>
  8. Organization: University of Helsinki
  9. Lines: 58
  10.  
  11. kennu@mits.mdata.fi (Kenneth Falck) writes:
  12. >You know, that might be one of the reasons MSDOS has made it so big;
  13. >your applications can have very powerful output when you don't have
  14. >to hassle with some control codes that really belong to the externally
  15. >connected terminals, not to the console screen. 
  16.  
  17. Perhaps they don't have to hassle with terminal control codes, but
  18. instead they have to hassle with different device drivers for each and
  19. every application.  Does it _really_ make any sense to have a few dozen
  20. drivers for different video hardware for each major application.
  21.  
  22. And just because the console happens to have a memory mapped screen, it
  23. doesn't make any sense to use a different protocol to talking to it and
  24. to other output devices.  If you talk to the console differently than to
  25. terminals, you need to write two versions of the program, which is
  26. definitely Not Good.  Just forget it, it isn't worth it.  You don't buy
  27. anything important by having direct access to video hardware, it only
  28. makes it more difficult to have several programs that work nicely.
  29.  
  30. >How about if the kernel had some special services that would make it
  31. >easy and portable (within Linuces) to use the virtual consoles without
  32. >termcap? I mean something like this:
  33.  
  34. You solution has serious problems.  Among other things, it assumes that
  35. the video memory is laid out in a special way.  Not everybody uses the
  36. same kind of hardware you do.  If you use termcap, you just don't have
  37. to worry about it.
  38.  
  39. >Does this seem like a stupid idea 
  40.  
  41. Yes.  (Or did you guess that already? :)
  42.  
  43. >or would it bring some more power into the Linux-applications?
  44.  
  45. No.  I can't think of anything that you can do with poking around in
  46. video memory directly that you can't do with a well designed set of
  47. control codes and a working console terminal driver.  In fact, I assume
  48. that the sets of possible operations can be shown to equivalent. 
  49.  
  50. > I think it's a fact that 386 is a personal computer, and many people
  51. >would like to use Linux as a multitasking OS only, and have no need to
  52. >run programs remotely. 
  53.  
  54. The users don't care how the programs have been written.  They only want
  55. something that works.  If you write your programs so that they go
  56. mucking with the intimate parts of the hardware, they are not going to
  57. work as well with all hardware and software configurations.  It is the
  58. job of the operating system (and other system software) to muck with the
  59. intimate parts of the hardware, and to provide a convenient interface so
  60. that the applications can use the capabilities of the hardware in a way
  61. that is not directly dependent on the details of the hardware. 
  62.  
  63. Also, the issue is not only that people are going to have problems with
  64. external terminals, they are also going to have problems with running
  65. the program in X xterm windows.
  66.  
  67. --
  68. Lars.Wirzenius@helsinki.fi
  69.