from small one page howto to huge articles all in one place
 

search text in:





Poll
Which kernel version do you use?





poll results

Last additions:
using iotop to find disk usage hogs

using iotop to find disk usage hogs

words:

887

views:

187729

userrating:

average rating: 1.7 (102 votes) (1=very good 6=terrible)


May 25th. 2007:
Words

486

Views

250645

why adblockers are bad


Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

words:

161

views:

138308

userrating:

average rating: 1.4 (42 votes) (1=very good 6=terrible)


April, 26th. 2006:

Druckversion
You are here: manpages





RESIZECONS

Section: Console Support (8)
Updated: 17 Jan 1995
Index Return to Main Contents
 

NAME

resizecons - change kernel idea of the console size  

SYNOPSIS

resizecons COLSxROWS
resizecons -lines ROWS  

DESCRIPTION

The resizecons command tries to change the videomode of the console. There are several aspects to this: (a) the kernel must know about it, (b) the hardware must know about it, (c) user programs must know about it, (d) the console font may have to be adapted.

(a) The kernel is told about the change using the ioctl VT_RESIZE. This causes the kernel to reallocate console screen memory for all virtual consoles, and might fail if there is not enough memory. (In that case, try to disallocate some virtual consoles first.) If this ioctl succeeds, but a later step fails (e.g., because you do not have root permissions), you may be left with a very messy screen.

The most difficult part of this is (b), since it requires detailed knowledge of the video card hardware, and the setting of numerous registers. Only changing the number of rows is slightly easier, and resizecons will try to do that itself, when given the -lines option. (Probably, root permission will be required.) The command resizecons COLSxROWS will execute restoretextmode -r COLSxROWS (and hence requires that you have svgalib installed). Here COLSxROWS is a file that was created earlier by restoretextmode -w COLSxROWS. Again, either root permissions are required, or restoretextmode has to be suid root.

In order to deal with (c), resizecons does a `stty rows ROWS cols COLS' for each active console (in the range tty0..tty15), and sends a SIGWINCH signal to selection if it finds the file /tmp/selection.pid.

Finally, (d) is dealt with by executing a setfont command. Most likely, the wrong font is loaded, and you may want to do another setfont yourself afterwards.

 

BUGS

resizecons does not work on all hardware. This command used to be called resize, but was renamed to avoid conflict with another command with the same name.

 

SEE ALSO

setfont(8), stty(1), selection(1), restoretextmode(8), disalloc(8)


 

Index

NAME
SYNOPSIS
DESCRIPTION
BUGS
SEE ALSO





Support us on Content Nation
rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2020 Sascha Nitsch Unternehmensberatung GmbH
Valid XHTML1.1 : Valid CSS : buttonmaker
- Level Triple-A Conformance to Web Content Accessibility Guidelines 1.0 -
- Copyright and legal notices -
Time to create this page: 16.3 ms