xref: /freebsd/share/man/man4/vt.4 (revision fb91b9858080143b56ba637ab3c8954f3f94694a)
1de2ab11fSAlexander Ziaee.\"-
2de2ab11fSAlexander Ziaee.\" SPDX-License-Identifier: BSD-2-Clause
3de2ab11fSAlexander Ziaee.\"
4abebc22fSWarren Block.\" Copyright (c) 2014 Warren Block
5abebc22fSWarren Block.\" All rights reserved.
6abebc22fSWarren Block.\"
7abebc22fSWarren Block.\" Redistribution and use in source and binary forms, with or without
8abebc22fSWarren Block.\" modification, are permitted provided that the following conditions
9abebc22fSWarren Block.\" are met:
10abebc22fSWarren Block.\" 1. Redistributions of source code must retain the above copyright
11abebc22fSWarren Block.\"    notice, this list of conditions and the following disclaimer.
12abebc22fSWarren Block.\" 2. Redistributions in binary form must reproduce the above copyright
13abebc22fSWarren Block.\"    notice, this list of conditions and the following disclaimer in the
14abebc22fSWarren Block.\"    documentation and/or other materials provided with the distribution.
15abebc22fSWarren Block.\"
16abebc22fSWarren Block.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND
17abebc22fSWarren Block.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18abebc22fSWarren Block.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19abebc22fSWarren Block.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE
20abebc22fSWarren Block.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21abebc22fSWarren Block.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22abebc22fSWarren Block.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23abebc22fSWarren Block.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24abebc22fSWarren Block.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25abebc22fSWarren Block.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26abebc22fSWarren Block.\" SUCH DAMAGE.
27abebc22fSWarren Block.\"
28de2ab11fSAlexander Ziaee.Dd July 7, 2024
29f21acf08SEdward Tomasz Napierala.Dt "VT" 4
30abebc22fSWarren Block.Os
31abebc22fSWarren Block.Sh NAME
32abebc22fSWarren Block.Nm vt
33de2ab11fSAlexander Ziaee.Nd virtual terminal system video console driver
34abebc22fSWarren Block.Sh SYNOPSIS
357344ee18SMarius Strobl.Cd "options TERMINAL_KERN_ATTR=_attribute_"
367344ee18SMarius Strobl.Cd "options TERMINAL_NORM_ATTR=_attribute_"
37abebc22fSWarren Block.Cd "options VT_MAXWINDOWS=N"
38abebc22fSWarren Block.Cd "options VT_ALT_TO_ESC_HACK=1"
39abebc22fSWarren Block.Cd "options VT_TWOBUTTON_MOUSE"
40f41bde66SConrad Meyer.Cd "options VT_FB_MAX_WIDTH=X"
41f41bde66SConrad Meyer.Cd "options VT_FB_MAX_HEIGHT=Y"
42abebc22fSWarren Block.Cd "options SC_NO_CUTPASTE"
43abebc22fSWarren Block.Cd "device vt"
44abebc22fSWarren Block.Pp
45abebc22fSWarren BlockIn
46abebc22fSWarren Block.Xr loader.conf 5 :
47abebc22fSWarren Block.Cd hw.vga.textmode=1
488f62926eSRoger Pau Monné.Cd hw.vga.acpi_ignore_no_vga=1
4959644098SEd Maste.Cd kern.vty=vt
5029f61a2fSOleksandr Tymoshenko.Cd kern.vt.color.<colornum>.rgb="<colorspec>"
5179c4bda8SJean-Sébastien Pédron.Cd kern.vt.fb.default_mode="<X>x<Y>"
5279c4bda8SJean-Sébastien Pédron.Cd kern.vt.fb.modes.<connector>="<X>x<Y>"
537749de24SPoul-Henning Kamp.Cd kern.vt.slow_down=<delay>"
547bd6cbbfSAlexander Ziaee.Cd screen.font="<X>x<Y>"
55d98ae075SEd Maste.Pp
56d98ae075SEd MasteIn
57d98ae075SEd Maste.Xr loader.conf 5 or
58d98ae075SEd Maste.Xr sysctl.conf 5 :
59*fb91b985SAlexander Ziaee.Cd kern.consmute=1
60d98ae075SEd Maste.Cd kern.vt.kbd_halt=1
61d98ae075SEd Maste.Cd kern.vt.kbd_poweroff=1
62d98ae075SEd Maste.Cd kern.vt.kbd_reboot=1
63d98ae075SEd Maste.Cd kern.vt.kbd_debug=1
64d98ae075SEd Maste.Cd kern.vt.kbd_panic=0
651e37655eSYuri Pankov.Cd kern.vt.enable_altgr=0
665b3078c3SWarren Block.Cd kern.vt.enable_bell=1
67abebc22fSWarren Block.Sh DESCRIPTION
68abebc22fSWarren BlockThe
69abebc22fSWarren Block.Nm
70abebc22fSWarren Blockdevice provides multiple virtual terminals with an extensive feature
71abebc22fSWarren Blockset:
72abebc22fSWarren Block.Bl -item -offset indent
73abebc22fSWarren Block.It
74abebc22fSWarren BlockUnicode UTF-8 text with double-width characters.
75abebc22fSWarren Block.It
76abebc22fSWarren BlockLarge font maps in graphics mode, including support for Asian
77abebc22fSWarren Blockcharacter sets.
78abebc22fSWarren Block.It
79abebc22fSWarren BlockGraphics-mode consoles.
80abebc22fSWarren Block.It
81abebc22fSWarren BlockIntegration with
82abebc22fSWarren BlockKMS
83abebc22fSWarren Block.Pq Kernel Mode Setting
84abebc22fSWarren Blockvideo drivers for switching between the
85abebc22fSWarren Block.Em X Window System
86abebc22fSWarren Blockand virtual terminals.
87abebc22fSWarren Block.El
88abebc22fSWarren Block.Ss Virtual Terminals
89abebc22fSWarren BlockMultiple virtual terminals are provided on a single computer.
90abebc22fSWarren BlockUp to sixteen virtual terminals can be defined.
91abebc22fSWarren BlockA single virtual terminal is connected to the screen and keyboard
92abebc22fSWarren Blockat a time.
93abebc22fSWarren BlockKey combinations are used to select a virtual terminal.
94abebc22fSWarren BlockAlt-F1 through Alt-F12 correspond to the first twelve virtual terminals.
95abebc22fSWarren BlockIf more than twelve virtual terminals are created, Shift-Alt-F1 through
96abebc22fSWarren BlockShift-Alt-F4 are used to switch to the additional terminals.
97abebc22fSWarren Block.Ss Copying and Pasting Text with a Mouse
98abebc22fSWarren BlockCopying and pasting text from the screen with a mouse is supported.
99abebc22fSWarren BlockPress and hold down mouse button 1, usually the left button, while
100abebc22fSWarren Blockmoving the mouse to select text.
101abebc22fSWarren BlockSelected text is highlighted with reversed foreground and background
102abebc22fSWarren Blockcolors.
103abebc22fSWarren BlockTo select more text after releasing mouse button 1, press mouse button
104abebc22fSWarren Block3, usually the right button.
105abebc22fSWarren BlockTo paste text that has been selected, press mouse button 2, usually the
106abebc22fSWarren Blockmiddle button.
107abebc22fSWarren BlockThe text is entered as if it were typed at the keyboard.
108abebc22fSWarren BlockThe
109abebc22fSWarren Block.Dv VT_TWOBUTTON_MOUSE
110abebc22fSWarren Blockkernel option can be used with mice that only have two buttons.
111abebc22fSWarren BlockSetting this option makes the second mouse button into the
112abebc22fSWarren Blockpaste button.
113abebc22fSWarren BlockSee
114abebc22fSWarren Block.Xr moused 8
115abebc22fSWarren Blockfor more information.
116abebc22fSWarren Block.Ss Scrolling Back
117abebc22fSWarren BlockOutput that has scrolled off the screen can be reviewed by pressing the
118abebc22fSWarren BlockScroll Lock key, then scrolling up and down with the arrow keys.
119abebc22fSWarren BlockThe Page Up and Page Down keys scroll up or down a full screen at a
120abebc22fSWarren Blocktime.
121abebc22fSWarren BlockThe Home and End keys jump to the beginning or end of the scrollback
122abebc22fSWarren Blockbuffer.
123abebc22fSWarren BlockWhen finished reviewing, press the Scroll Lock key again to return to
124abebc22fSWarren Blocknormal use.
125f39f8272SEd MasteSome laptop keyboards lack a Scroll Lock key, and use a special function key
126f39f8272SEd Mastesequence (such as Fn + K) to access Scroll Lock.
127abebc22fSWarren Block.Sh DRIVER CONFIGURATION
128abebc22fSWarren Block.Ss Kernel Configuration Options
129abebc22fSWarren BlockThese kernel options control the
130abebc22fSWarren Block.Nm
131abebc22fSWarren Blockdriver.
132abebc22fSWarren Block.Bl -tag -width MAXCONS
1338329214dSWarren Block.It Dv TERMINAL_NORM_ATTR= Ns Pa attribute
1348329214dSWarren Block.It Dv TERMINAL_KERN_ATTR= Ns Pa attribute
1355b3078c3SWarren BlockThese options change the default colors used for normal and kernel
1368329214dSWarren Blocktext.
1377344ee18SMarius StroblAvailable colors are defined in
1387344ee18SMarius Strobl.In sys/terminal.h .
1397344ee18SMarius StroblSee
1407344ee18SMarius Strobl.Sx EXAMPLES
1417344ee18SMarius Stroblbelow.
142abebc22fSWarren Block.It Dv VT_MAXWINDOWS=N
143abebc22fSWarren BlockSet the number of virtual terminals to be created to
144abebc22fSWarren Block.Fa N .
145abebc22fSWarren BlockThe value defaults to 12.
146abebc22fSWarren Block.It Dv VT_ALT_TO_ESC_HACK=1
147abebc22fSWarren BlockWhen the Alt key is held down while pressing another key, send an ESC
148abebc22fSWarren Blocksequence instead of the Alt key.
149abebc22fSWarren Block.It Dv VT_TWOBUTTON_MOUSE
150abebc22fSWarren BlockIf defined, swap the functions of mouse buttons 2 and 3.
151abebc22fSWarren BlockIn effect, this makes the right-hand mouse button perform a paste.
152abebc22fSWarren BlockThese options are checked in the order shown.
153abebc22fSWarren Block.It Dv SC_NO_CUTPASTE
154abebc22fSWarren BlockDisable mouse support.
155e9ee2675SMark Johnston.It VT_FB_MAX_WIDTH=X
156e9ee2675SMark JohnstonSet the maximum width to
157abebc22fSWarren Block.Fa X .
158e9ee2675SMark Johnston.It VT_FB_MAX_HEIGHT=Y
159e9ee2675SMark JohnstonSet the maximum height to
160abebc22fSWarren Block.Fa Y .
161abebc22fSWarren Block.El
162abebc22fSWarren Block.Sh BACKWARDS COMPATIBILITY
163abebc22fSWarren BlockSeveral options are provided for compatibility with the previous
164abebc22fSWarren Blockconsole device,
165abebc22fSWarren Block.Xr sc 4 .
166abebc22fSWarren BlockThese options will be removed in a future
167abebc22fSWarren Block.Fx
168abebc22fSWarren Blockversion.
169abebc22fSWarren Block.Bl -column -offset indent ".Sy vt VT_TWOBUTTON_MOUSE" ".Sy SC_TWOBUTTON_MOUSE"
170abebc22fSWarren Block.It Sy vt Option Name Ta Sy sc Option Name
1717344ee18SMarius Strobl.It Dv TERMINAL_KERN_ATTR Ta Dv SC_KERNEL_CONS_ATTR
1727344ee18SMarius Strobl.It Dv TERMINAL_NORM_ATTR Ta Dv SC_NORM_ATTR
173abebc22fSWarren Block.It Dv VT_TWOBUTTON_MOUSE Ta Dv SC_TWOBUTTON_MOUSE
174abebc22fSWarren Block.It Dv VT_MAXWINDOWS Ta Dv MAXCONS
175abebc22fSWarren Block.It none Ta Dv SC_NO_CUTPASTE
176abebc22fSWarren Block.El
177abebc22fSWarren Block.Sh START-UP OPERATION WITH X86 BIOS SYSTEMS
178abebc22fSWarren BlockThe computer BIOS starts in text mode, and
179abebc22fSWarren Blockthe
180abebc22fSWarren Block.Fx
181abebc22fSWarren Block.Xr loader 8
182abebc22fSWarren Blockruns, loading the kernel.
183abebc22fSWarren BlockIf
184abebc22fSWarren Block.Va hw.vga.textmode
185abebc22fSWarren Blockis set, the system remains in text mode.
186abebc22fSWarren BlockOtherwise,
187abebc22fSWarren Block.Nm
188abebc22fSWarren Blockswitches to 640x480x16 VGA mode using
1898329214dSWarren Block.Cm vt_vga .
190abebc22fSWarren BlockIf a KMS
19179c4bda8SJean-Sébastien Pédron.Pq Kernel Mode Setting
192abebc22fSWarren Blockvideo driver is available, the display is switched to high resolution
193abebc22fSWarren Blockand the KMS driver takes over.
194abebc22fSWarren BlockWhen a KMS driver is not available,
1958329214dSWarren Block.Cm vt_vga
196abebc22fSWarren Blockremains active.
197abebc22fSWarren Block.Sh LOADER TUNABLES
198abebc22fSWarren BlockThese settings can be entered at the
199abebc22fSWarren Block.Xr loader 8
200abebc22fSWarren Blockprompt or in
201abebc22fSWarren Block.Xr loader.conf 5 .
202abebc22fSWarren Block.Bl -tag -width indent
203abebc22fSWarren Block.It Va hw.vga.textmode
204abebc22fSWarren BlockSet to 1 to use virtual terminals in text mode instead of graphics mode.
205abebc22fSWarren BlockFeatures that require graphics mode, like loadable fonts, will be
206abebc22fSWarren Blockdisabled.
207004b0aa8SEd Maste.Pp
208004b0aa8SEd MasteIf a KMS driver is loaded the console will switch to (and remain in)
209004b0aa8SEd Mastegraphics mode.
2108f62926eSRoger Pau Monné.It Va hw.vga.acpi_ignore_no_vga
2118f62926eSRoger Pau MonnéSet to 1 to force the usage of the VGA driver regardless of whether
2128f62926eSRoger Pau MonnéACPI IAPC_BOOT_ARCH signals no VGA support.
2138f62926eSRoger Pau MonnéCan be used to workaround firmware bugs in the ACPI tables.
21405188320SRoger Pau MonnéNote no VGA support is only acknowledged when running virtualized.
21505188320SRoger Pau MonnéThere is too many broken firmware that wrongly reports no VGA support on
21605188320SRoger Pau Monnéphysical hardware.
21759644098SEd Maste.It Va kern.vty
218d98ae075SEd MasteSet this value to
2198329214dSWarren Block.Ql vt
2208329214dSWarren Blockor
221d98ae075SEd Maste.Ql sc
22284e3706cSEd Masteto choose a specific system console, overriding the default.
2236f1f849cSEd MasteThe
22484e3706cSEd Maste.Pa GENERIC
2256f1f849cSEd Mastekernel uses
2266f1f849cSEd Maste.Nm
2276f1f849cSEd Mastewhen this value is not set.
228f52481f3SEd MasteNote that
229f52481f3SEd Maste.Ql sc
230f52481f3SEd Masteis not compatible with
231f52481f3SEd Maste.Xr UEFI 8
232f52481f3SEd Masteboot.
23329f61a2fSOleksandr Tymoshenko.It Va kern.vt.color. Ns Ar colornum Ns Va .rgb
23429f61a2fSOleksandr TymoshenkoSet this value to override default palette entry for color
23529f61a2fSOleksandr Tymoshenko.Pa colornum
23629f61a2fSOleksandr Tymoshenkowhich should be in a range from 0 to 15 inclusive.
23729f61a2fSOleksandr TymoshenkoThe value should be either a comma-separated triplet of
23829f61a2fSOleksandr Tymoshenkored, green, and blue values in a range from 0 to 255 or
23929f61a2fSOleksandr TymoshenkoHTML-like hex triplet.
24029f61a2fSOleksandr TymoshenkoSee
24129f61a2fSOleksandr Tymoshenko.Sx EXAMPLES
24229f61a2fSOleksandr Tymoshenkobelow.
243b126b79bSEd Maste.Pp
244b126b79bSEd MasteNote: The
245b126b79bSEd Maste.Nm
246b126b79bSEd MasteVGA hardware driver does not support palette configuration.
24779c4bda8SJean-Sébastien Pédron.It Va kern.vt.fb.default_mode
24879c4bda8SJean-Sébastien PédronSet this value to a graphic mode to override the default mode picked by the
24979c4bda8SJean-Sébastien Pédron.Nm
2504261dbcfSJean-Sébastien Pédronbackend.
2514261dbcfSJean-Sébastien PédronThe mode is applied to all output connectors.
2524261dbcfSJean-Sébastien PédronThis is currently only supported by the
25379c4bda8SJean-Sébastien Pédron.Cm vt_fb
2545b3078c3SWarren Blockbackend when it is paired with a KMS video driver.
25579c4bda8SJean-Sébastien Pédron.It Va kern.vt.fb.modes. Ns Pa connector_name
25679c4bda8SJean-Sébastien PédronSet this value to a graphic mode to override the default mode picked by the
25779c4bda8SJean-Sébastien Pédron.Nm
2584261dbcfSJean-Sébastien Pédronbackend.
2594261dbcfSJean-Sébastien PédronThis mode is applied to the output connector
26079c4bda8SJean-Sébastien Pédron.Pa connector_name
2615b3078c3SWarren Blockonly.
2625b3078c3SWarren BlockIt has precedence over
26379c4bda8SJean-Sébastien Pédron.Va kern.vt.fb.default_mode .
264a95c4612SJean-Sébastien PédronThe names of available connector names can be found in
265a95c4612SJean-Sébastien Pédron.Xr dmesg 8
2664261dbcfSJean-Sébastien Pédronafter loading the KMS driver.
2674261dbcfSJean-Sébastien PédronIt will contain a list of connectors and their associated tunables.
2684261dbcfSJean-Sébastien PédronThis is currently only supported by the
26979c4bda8SJean-Sébastien Pédron.Cm vt_fb
2705b3078c3SWarren Blockbackend when it is paired with a KMS video driver.
2717749de24SPoul-Henning Kamp.It Va kern.vt.slow_down
2727749de24SPoul-Henning KampWhen debugging the kernel on modern laptops, the screen is often
2737749de24SPoul-Henning Kampthe only available console, and relevant information will scroll
2747749de24SPoul-Henning Kampout of view before it can be captured by eye or camera.
2757749de24SPoul-Henning Kamp.Pp
2767749de24SPoul-Henning KampSetting
2777749de24SPoul-Henning Kamp.Va kern.vt.slow_down
2787749de24SPoul-Henning Kampto a non-zero number will make console output synchronous (ie:
2797749de24SPoul-Henning Kampnot dependent on timers and interrupts) and slow it down in proportion
2807749de24SPoul-Henning Kampto the number.
2817bd6cbbfSAlexander Ziaee.It Va screen.font
2827bd6cbbfSAlexander ZiaeeSet this value to the base name of the desired font file located in
2837bd6cbbfSAlexander Ziaee.Pa /boot/fonts .
2847bd6cbbfSAlexander ZiaeeFonts can be converted for use with
2857bd6cbbfSAlexander Ziaee.Xr vtfontcvt 8 .
28679c4bda8SJean-Sébastien Pédron.El
287d98ae075SEd Maste.Sh KEYBOARD SYSCTL TUNABLES
288d98ae075SEd MasteThese settings control whether certain special key combinations are enabled or
289d98ae075SEd Masteignored.
290d98ae075SEd MasteThe specific key combinations can be configured by using a
291d98ae075SEd Maste.Xr keymap 5
292d98ae075SEd Mastefile.
293d98ae075SEd Maste.Pp
294d98ae075SEd MasteThese settings can be entered at the
295d98ae075SEd Maste.Xr loader 8
296d98ae075SEd Masteprompt or in
297d98ae075SEd Maste.Xr loader.conf 5
298d98ae075SEd Masteand can also be changed at runtime with the
299d98ae075SEd Maste.Xr sysctl 8
300d98ae075SEd Mastecommand.
301d98ae075SEd Maste.Bl -tag -width indent
3021e37655eSYuri Pankov.It Va kern.vt.enable_altgr
3031e37655eSYuri PankovEnable AltGr key (do not assume right Alt key as Alt).
304d98ae075SEd Maste.It Va kern.vt.kbd_halt
305d98ae075SEd MasteEnable halt keyboard combination.
306d98ae075SEd Maste.It Va kern.vt.kbd_poweroff
307d98ae075SEd MasteEnable power off key combination.
308fcb926a7SKevin Lo.It Va kern.vt.kbd_reboot
309d98ae075SEd MasteEnable reboot key combination, usually Ctrl+Alt+Del.
310d98ae075SEd Maste.It Va kern.vt.kbd_debug
311d98ae075SEd MasteEnable debug request key combination, usually Ctrl+Alt+Esc.
312d98ae075SEd Maste.It Va kern.vt.kbd_panic
313d98ae075SEd MasteEnable panic key combination.
314abebc22fSWarren Block.El
3155b3078c3SWarren Block.Sh OTHER SYSCTL TUNABLES
3165b3078c3SWarren BlockThese settings can be entered at the
3175b3078c3SWarren Block.Xr loader 8
3185b3078c3SWarren Blockprompt, set in
3195b3078c3SWarren Block.Xr loader.conf 5 ,
3205b3078c3SWarren Blockor changed at runtime with
3215b3078c3SWarren Block.Xr sysctl 8 .
3225b3078c3SWarren Block.Bl -tag -width indent
323*fb91b985SAlexander Ziaee.It Va kern.consmute
324*fb91b985SAlexander ZiaeeDisable printing kernel messages to the system console.
3255b3078c3SWarren Block.It Va kern.vt.enable_bell
3265b3078c3SWarren BlockEnable the terminal bell.
3275b3078c3SWarren Block.El
328abebc22fSWarren Block.Sh FILES
3294026b17bSAlexander Ziaee.Bl -tag -width "/usr/share/vt/keymaps/*.kbd" -compact
330abebc22fSWarren Block.It Pa /dev/console
331abebc22fSWarren Block.It Pa /dev/consolectl
332abebc22fSWarren Block.It Pa /dev/ttyv*
333abebc22fSWarren Blockvirtual terminals
334abebc22fSWarren Block.It Pa /etc/ttys
335abebc22fSWarren Blockterminal initialization information
336651045d6SStefan Eßer.It Pa /usr/share/vt/fonts/*.fnt
337651045d6SStefan Eßerconsole fonts
338651045d6SStefan Eßer.It Pa /usr/share/vt/keymaps/*.kbd
339651045d6SStefan Eßerkeyboard layouts
340abebc22fSWarren Block.El
3414ac3d08aSWarner Losh.Sh DEVCTL MESSAGES
3424026b17bSAlexander Ziaee.Bl -column "System" "Subsystem" "Type" "Description"
3434ac3d08aSWarner Losh.Sy "System" Ta Sy "Subsystem" Ta Sy "Type" Ta Sy "Description"
3444ac3d08aSWarner Losh.It Li VT Ta BELL Ta RING Ta
34580f21bb0SWarner LoshNotification that the console bell has rung.
3464ac3d08aSWarner Losh.El
3474026b17bSAlexander Ziaee.Bl -column "duration_ms" "Meaning"
3484ac3d08aSWarner Losh.Sy "Variable" Ta Sy "Meaning"
3494ac3d08aSWarner Losh.It Li duration_ms Ta Length of time the bell was requested to ring in milliseconds.
35080f21bb0SWarner Losh.It Li enabled Ta true or false indicating whether or not the bell was administratively enabled when rung.
35180f21bb0SWarner Losh.It Li hushed Ta true or false indicating whether or not the bell was quieted by the user when rung.
3524ac3d08aSWarner Losh.It Li hz Ta Tone that was requested in Hz.
3534ac3d08aSWarner Losh.El
3548329214dSWarren Block.Sh EXAMPLES
3558329214dSWarren BlockThis example changes the default color of normal text to green on a
3568329214dSWarren Blockblack background, or black on a green background when reversed.
3578329214dSWarren BlockNote that white space cannot be used inside the attribute string
3588329214dSWarren Blockbecause of the current implementation of
3598329214dSWarren Block.Xr config 8 .
3608329214dSWarren Block.Pp
3618329214dSWarren Block.Dl "options TERMINAL_NORM_ATTR=(FG_GREEN|BG_BLACK)"
3628329214dSWarren Block.Pp
3638329214dSWarren BlockThis line changes the default color of kernel messages to be bright red
3648329214dSWarren Blockon a black background, or black on a bright red background when reversed.
3658329214dSWarren Block.Pp
3668329214dSWarren Block.Dl "options TERMINAL_KERN_ATTR=(FG_LIGHTRED|BG_BLACK)"
36779c4bda8SJean-Sébastien Pédron.Pp
36879c4bda8SJean-Sébastien PédronTo set a 1024x768 mode on all output connectors, put the following line in
36979c4bda8SJean-Sébastien Pédron.Pa /boot/loader.conf :
37079c4bda8SJean-Sébastien Pédron.Pp
37179c4bda8SJean-Sébastien Pédron.Dl kern.vt.fb.default_mode="1024x768"
37279c4bda8SJean-Sébastien Pédron.Pp
3734026b17bSAlexander ZiaeeTo set a 800x600 only on a laptop builtin screen,
3744026b17bSAlexander Ziaeeuse the following line instead:
37579c4bda8SJean-Sébastien Pédron.Pp
37679c4bda8SJean-Sébastien Pédron.Dl kern.vt.fb.modes.LVDS-1="800x600"
37779c4bda8SJean-Sébastien Pédron.Pp
37879c4bda8SJean-Sébastien PédronThe connector name was found in
37979c4bda8SJean-Sébastien Pédron.Xr dmesg 8 :
38079c4bda8SJean-Sébastien Pédron.Pp
38179c4bda8SJean-Sébastien Pédron.Dl info: [drm] Connector LVDS-1: get mode from tunables:
38279c4bda8SJean-Sébastien Pédron.Dl info: [drm]   - kern.vt.fb.modes.LVDS-1
38379c4bda8SJean-Sébastien Pédron.Dl info: [drm]   - kern.vt.fb.default_mode
38429f61a2fSOleksandr Tymoshenko.Pp
38529f61a2fSOleksandr TymoshenkoTo set black and white colors of console palette
38629f61a2fSOleksandr Tymoshenko.Pp
38729f61a2fSOleksandr Tymoshenko.Dl kern.vt.color.0.rgb="10,10,10"
38829f61a2fSOleksandr Tymoshenko.Dl kern.vt.color.15.rgb="#f0f0f0"
3897bd6cbbfSAlexander Ziaee.Pp
3907bd6cbbfSAlexander ZiaeeLoad the 8x16 font in
3917bd6cbbfSAlexander Ziaee.Xr loader.conf 5
3927bd6cbbfSAlexander Ziaeefrom
3937bd6cbbfSAlexander Ziaee.Pa /boot/fonts/*.fnt[.gz]
3947bd6cbbfSAlexander Ziaeeat boot:
3957bd6cbbfSAlexander Ziaee.Pp
3967bd6cbbfSAlexander Ziaee.Dl screen.font="8x16"
397abebc22fSWarren Block.Sh SEE ALSO
398abebc22fSWarren Block.Xr kbdcontrol 1 ,
399abebc22fSWarren Block.Xr login 1 ,
400abebc22fSWarren Block.Xr vidcontrol 1 ,
401abebc22fSWarren Block.Xr atkbd 4 ,
402abebc22fSWarren Block.Xr atkbdc 4 ,
403345c0478SEdward Tomasz Napierala.Xr kbdmux 4 ,
404abebc22fSWarren Block.Xr keyboard 4 ,
405abebc22fSWarren Block.Xr screen 4 ,
406abebc22fSWarren Block.Xr splash 4 ,
407abebc22fSWarren Block.Xr syscons 4 ,
408abebc22fSWarren Block.Xr ukbd 4 ,
409abebc22fSWarren Block.Xr kbdmap 5 ,
4107bd6cbbfSAlexander Ziaee.Xr loader.conf 5 ,
411abebc22fSWarren Block.Xr rc.conf 5 ,
412abebc22fSWarren Block.Xr ttys 5 ,
413abebc22fSWarren Block.Xr config 8 ,
414abebc22fSWarren Block.Xr getty 8 ,
415abebc22fSWarren Block.Xr kldload 8 ,
4165e819274SEd Maste.Xr moused 8 ,
4175e819274SEd Maste.Xr vtfontcvt 8
418a102d822SMarius Strobl.Sh HISTORY
419a102d822SMarius StroblThe
4203a8794beSJoel Dahl.Nm
421a102d822SMarius Strobldriver first appeared in
422a102d822SMarius Strobl.Fx 9.3 .
423abebc22fSWarren Block.Sh AUTHORS
424abebc22fSWarren Block.An -nosplit
425abebc22fSWarren BlockThe
426abebc22fSWarren Block.Nm
427abebc22fSWarren Blockdevice driver was developed by
428548afe2bSChristian Brueffer.An \&Ed Schouten Aq Mt ed@FreeBSD.org ,
429548afe2bSChristian Brueffer.An \&Ed Maste Aq Mt emaste@FreeBSD.org ,
430abebc22fSWarren Blockand
4316c899950SBaptiste Daroussin.An Aleksandr Rybalko Aq Mt ray@FreeBSD.org ,
432abebc22fSWarren Blockwith sponsorship provided by the
433abebc22fSWarren Block.Fx
434abebc22fSWarren BlockFoundation.
435abebc22fSWarren BlockThis manual page was written by
4366c899950SBaptiste Daroussin.An Warren Block Aq Mt wblock@FreeBSD.org .
437abebc22fSWarren Block.Sh CAVEATS
438abebc22fSWarren BlockPaste buffer size is limited by the system value
439abebc22fSWarren Block.Brq Dv MAX_INPUT ,
440abebc22fSWarren Blockthe number of bytes that can be stored in the terminal
441abebc22fSWarren Blockinput queue, usually 1024 bytes
442abebc22fSWarren Block(see
443abebc22fSWarren Block.Xr termios 4 ) .
444