]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[PATCH] vga text console and stty cols/rows
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Fri, 9 Sep 2005 20:01:58 +0000 (13:01 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 9 Sep 2005 20:57:31 +0000 (13:57 -0700)
commit28254d439b8c65f93cb331f5aa741efa6a8ec62f
treea7d8418dc0355da6e37ba5d4bdd2b86240003b14
parentff55fe2075e3901db4dbdc00e0b44a71bef97afd
[PATCH] vga text console and stty cols/rows

Some people use 66-cells braille devices for reading the console, and hence
would like to reduce the width of the screen by using:

stty cols 66

However, the vga text console doesn't behave correctly: the 14 first
characters of the second line are put on the right of the first line and so
forth.

Here is a patch to correct that.  It corrects the disp_end and offset
registers of the vga board on console resize and console switch.

On usual screens, you then correctly get a right and/or bottom blank
margin.  On some laptop panels, the output is resized so that text actually
gets magnified, which can be great for some people (see
http://dept-info.labri.fr/~thibault/ls.jpg ).

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/video/console/vgacon.c