home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Path: sparky!uunet!mcsun!fuug!mits!kennu
- From: kennu@mits.mdata.fi (Kenneth Falck)
- Subject: Re: Can you access a virtual console directly?
- Message-ID: <1992Sep15.164930.11353@mits.mdata.fi>
- Organization: Microdata Oy, Helsinki, Finland
- References: <1992Sep14.164729.28907@mits.mdata.fi> <1992Sep14.220800.12868@klaava.Helsinki.FI>
- Date: Tue, 15 Sep 1992 16:49:30 GMT
- Lines: 58
-
- In article <1992Sep14.220800.12868@klaava.Helsinki.FI> wirzeniu@klaava.Helsinki.FI (Lars Wirzenius) writes:
-
- >kennu@mits.mdata.fi (Kenneth Falck) writes:
- >>It feels a bit dumb to use termcap-codes to handle the local output, if
- >>you know you'll be using this terminal from the virtual consoles only.
-
- >[stuff deleted...]
- >[ Does anybody else get tired of MS-DOS programmers whose first (and
- >often enough only) thought is: ``How do I write directly to video
- >memory?'' Perhaps we'll see requests for adding TSR support into Linux
- >next. Urgh. ]
-
- 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)...
-
- 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:
-
- int main (void)
- {
- int curvt;
- int cols, rows;
- unsigned char *vtbuf;
-
- cols = vt_get_columns ();
- rows = vt_get_rows ();
- curvt = vt_get_current ();
- vtbuf = vt_get_address (curvt);
- vtbuf [0] = 'L'; vtbuf [1] = 0x07;
- vtbuf [2] = 'i'; vtbuf [3] = 0x07;
- vtbuf [4] = 'n'; vtbuf [5] = 0x07;
- vtbuf [6] = 'u'; vtbuf [7] = 0x07;
- vtbuf [8] = 'x'; vtbuf [9] = 0x07;
- vt_update_buffers (curvt);
- return 0;
- }
-
- (That code isn't probably the most effective way to do it
- but I just wanted to propose my idea briefly...)
-
- 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? I think it's a fact that
- 386 is a personal computer, and many people would like
- to use Linux as a multitasking OS only, and have no need
- to run programs remotely. Of course, if something like this
- is implemented, there is the potential danger of all programs
- becoming menu-driven and unrunnable from remote connections,
- and then someone has to write PC-Anywhere for Linux :-)
-
- --
- kennu@mits.mdata.fi
-
-