home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!wupost!uwm.edu!ogicse!mintaka.lcs.mit.edu!bloom-picayune.mit.edu!daemon
- From: tytso@ATHENA.MIT.EDU (Theodore Ts'o)
- Newsgroups: comp.os.linux
- Subject: Re: Can you access a virtual console directly?
- Message-ID: <1992Sep16.022648.24479@athena.mit.edu>
- Date: 16 Sep 92 02:26:48 GMT
- Sender: daemon@athena.mit.edu (Mr Background)
- Reply-To: tytso@ATHENA.MIT.EDU (Theodore Ts'o)
- Organization: The Internet
- Lines: 46
-
-
- From: kennu@mits.mdata.fi (Kenneth Falck)
- Date: Tue, 15 Sep 1992 16:49:30 GMT
-
- You know, that might be one of the reasons MSDOS has made it so big;
- your applications can have very powerful output when you don't have
- to hassle with some control codes that really belong to the externally
- connected terminals, not to the console screen. Of course the price is
- the lack of multitasking, except with these 80386 memory-redirections
- (of which I know very little)...
-
- No, this has absolutely nothing to do with why MS-DOS made it big. You
- can do the same thing just as easily under Unix; you just have to know
- the right libraries.
-
- How about if the kernel had some special services that would make it
- easy and portable (within Linuces) to use the virtual consoles without
- termcap? I mean something like this:
-
- [ source code that looks remarkably like what you'd use when you
- called the curses library deleted.]
-
- Does this seem like a stupid idea (coming from an MSDOS
- programmer like me...) or would it bring some more power
- into the Linux-applications?
-
- It's not a stupid idea, except you don't need the kernel to do it. You
- just need to use the curses library, which in turn will call the termcap
- routines, but which will do it all in the behind the curtain. If you
- use the curses library, you don't need to use the termcap routines; it
- takes care of all of this automatically so you don't need to worry about
- it.
-
- The advantage of this technique is that you have the easy of programming
- in that you don't need to worry about doing the low-level termcap
- programming, but your program is still portable to different terminals,
- not just the VGA/CGA/EGA screens. AND, you don't need any non-portable
- kernel hacks to do it!
-
- Let me give some advice directed to MS-DOS programmers who are trying to
- learn their way around Linux:
-
- There are always many ways of doing the same thing;
- In nearly all cases, MS-DOS did it the wrong way.
-
- - Ted
-