]> git.baikalelectronics.ru Git - kernel.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)
commita90439befeee567a6f70a29ce335954f76e966a1
treea7d8418dc0355da6e37ba5d4bdd2b86240003b14
parent1d12e1b8af590ad0ce558f06cd6ec00f1546d1e1
[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