Penguin
Blame: resizecons(8)
EditPageHistoryDiffInfoLikePages
Annotated edit history of resizecons(8) version 1, including all changes. View license author blame.
Rev Author # Line
1 perry 1 RESIZECONS
2 !!!RESIZECONS
3 NAME
4 SYNOPSIS
5 DESCRIPTION
6 BUGS
7 SEE ALSO
8 ----
9 !!NAME
10
11
12 resizecons - change kernel idea of the console size
13 !!SYNOPSIS
14
15
16 __resizecons__ ''COLSxROWS''__
17 resizecons__ ''-lines'' __ROWS__
18 !!DESCRIPTION
19
20
21 The __resizecons__ command tries to change the videomode
22 of the console. There are several aspects to this: (a) the
23 kernel must know about it, (b) the hardware must know about
24 it, (c) user programs must know about it, (d) the console
25 font may have to be adapted.
26
27
28 (a) The kernel is told about the change using the ioctl
29 VT_RESIZE. This causes the kernel to reallocate console
30 screen memory for all virtual consoles, and might fail if
31 there is not enough memory. (In that case, try to
32 disallocate some virtual consoles first.) If this ioctl
33 succeeds, but a later step fails (e.g., because you do not
34 have root permissions), you may be left with a very messy
35 screen.
36
37
38 The most difficult part of this is (b), since it requires
39 detailed knowledge of the video card hardware, and the
40 setting of numerous registers. Only changing the number of
41 rows is slightly easier, and __resizecons__ will try to
42 do that itself, when given the ''-lines'' option.
43 (Probably, root permission will be required.) The command
44 __resizecons COLSxROWS__ will execute __restoretextmode
45 -r COLSxROWS__ (and hence requires that you have svgalib
46 installed). Here COLSxROWS is a file that was created
47 earlier by __restoretextmode -w COLSxROWS.__ Again,
48 either root permissions are required, or
49 restoretextmode(8) has to be suid root.
50
51
52 In order to deal with (c), __resizecons__ does a `__stty
53 rows ROWS cols COLS__' for each active console (in the
54 range tty0..tty15), and sends a SIGWINCH signal to
55 __selection__ if it finds the file
56 ''/tmp/selection.pid''.
57
58
59 Finally, (d) is dealt with by executing a
60 consolechars(8) command. Most likely, the wrong font
61 is loaded, and you may want to call consolechars(8)
62 yourself afterwards.
63 !!BUGS
64
65
66 __resizecons__ does not work on all hardware. This
67 command used to be called __resize,__ but was renamed to
68 avoid conflict with another command with the same
69 name.
70 !!SEE ALSO
71
72
73 consolechars(8), stty(1), selection(1),
74 restoretextmode(8), disalloc(8).
75 ----
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.