lkml.org 
[lkml]   [2003]   [Sep]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Subject/dev/vcs: stuck with dimensions <255?
From
Date
Hi.

I just realized, that /dev/vcsa behaviour is broken when
used with lines or columns more than 255. I can easily
get this behaviour by using the built-in 4x6 font on a
1024xsomething resolution. That results in 256 columns. However,
the vcs devices expose dimensions and cursor position in the first
4 bytes.

My question is now: Are we stuck with this now? I found that
it is at least possible to use TIOCGWINSZ on the corresponding
/dev/tty%d device to get correct dimensions, but then again, how
would I optain the cursor position?

I am wondering why a char was choosen at all. I see no gain
by "saving" space there...

--
CYa,
Mario
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:49    [W:0.043 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site