|
NAMEvt —
virtual terminal console driver
SYNOPSISoptions TERMINAL_KERN_ATTR=_attribute_
options TERMINAL_NORM_ATTR=_attribute_
options VT_MAXWINDOWS=N
options VT_ALT_TO_ESC_HACK=1
options VT_TWOBUTTON_MOUSE
options VT_FB_MAX_WIDTH=X
options VT_FB_MAX_HEIGHT=Y
options SC_NO_CUTPASTE
device vt
In
loader.conf(5):
In
loader.conf(5)
or
sysctl.conf(5):
DESCRIPTIONThevt device provides multiple virtual terminals with
an extensive feature set:
Virtual TerminalsMultiple virtual terminals are provided on a single computer. Up to sixteen virtual terminals can be defined. A single virtual terminal is connected to the screen and keyboard at a time. Key combinations are used to select a virtual terminal. Alt-F1 through Alt-F12 correspond to the first twelve virtual terminals. If more than twelve virtual terminals are created, Shift-Alt-F1 through Shift-Alt-F4 are used to switch to the additional terminals.Copying and Pasting Text with a MouseCopying and pasting text from the screen with a mouse is supported. Press and hold down mouse button 1, usually the left button, while moving the mouse to select text. Selected text is highlighted with reversed foreground and background colors. To select more text after releasing mouse button 1, press mouse button 3, usually the right button. To paste text that has been selected, press mouse button 2, usually the middle button. The text is entered as if it were typed at the keyboard. TheVT_TWOBUTTON_MOUSE kernel option can be used with mice
that only have two buttons. Setting this option makes the second mouse button
into the paste button. See
moused(8)
for more information.
Scrolling BackOutput that has scrolled off the screen can be reviewed by pressing the Scroll Lock key, then scrolling up and down with the arrow keys. The Page Up and Page Down keys scroll up or down a full screen at a time. The Home and End keys jump to the beginning or end of the scrollback buffer. When finished reviewing, press the Scroll Lock key again to return to normal use.DRIVER CONFIGURATIONKernel Configuration OptionsThese kernel options control thevt driver.
BACKWARDS COMPATIBILITYSeveral options are provided for compatibility with the previous console device, sc(4). These options will be removed in a future FreeBSD version.
START-UP OPERATION WITH X86 BIOS SYSTEMSThe computer BIOS starts in text mode, and the FreeBSD loader(8) runs, loading the kernel. If hw.vga.textmode is set, the system remains in text mode. Otherwise,vt switches to
640x480x16 VGA mode using vt_vga . If a KMS (Kernel
Mode Setting) video driver is available, the display is switched to high
resolution and the KMS driver takes over. When a KMS driver is not available,
vt_vga remains active.
LOADER TUNABLESThese settings can be entered at the loader(8) prompt or in loader.conf(5).
KEYBOARD SYSCTL TUNABLESThese settings control whether certain special key combinations are enabled or ignored. The specific key combinations can be configured by using a keymap(5) file.These settings can be entered at the loader(8) prompt or in loader.conf(5) and can also be changed at runtime with the sysctl(8) command.
OTHER SYSCTL TUNABLESThese settings can be entered at the loader(8) prompt, set in loader.conf(5), or changed at runtime with sysctl(8).
FILES
DEVCTL MESSAGES
EXAMPLESThis example changes the default color of normal text to green on a black background, or black on a green background when reversed. Note that white space cannot be used inside the attribute string because of the current implementation of config(8).options
TERMINAL_NORM_ATTR=(FG_GREEN|BG_BLACK) This line changes the default color of kernel messages to be bright red on a black background, or black on a bright red background when reversed. options
TERMINAL_KERN_ATTR=(FG_LIGHTRED|BG_BLACK) To set a 1024x768 mode on all output connectors, put the following line in /boot/loader.conf: kern.vt.fb.default_mode="1024x768" To set a 800x600 only on a laptop builtin screen, use the following line instead: kern.vt.fb.modes.LVDS-1="800x600" The connector name was found in dmesg(8): info: [drm] Connector LVDS-1: get
mode from tunables: info: [drm] -
kern.vt.fb.modes.LVDS-1 info: [drm] -
kern.vt.fb.default_mode To set black and white colors of console palette kern.vt.color.0.rgb="10,10,10" kern.vt.color.15.rgb="#f0f0f0" SEE ALSOkbdcontrol(1), login(1), vidcontrol(1), atkbd(4), atkbdc(4), kbdmux(4), keyboard(4), screen(4), splash(4), syscons(4), ukbd(4), kbdmap(5), rc.conf(5), ttys(5), config(8), getty(8), kldload(8), moused(8), vtfontcvt(8)HISTORYThevt driver first appeared in FreeBSD
9.3.
AUTHORSThevt device driver was developed by
Ed Schouten
<ed@FreeBSD.org>,
Ed Maste
<emaste@FreeBSD.org>,
and Aleksandr Rybalko
<ray@FreeBSD.org>, with
sponsorship provided by the FreeBSD Foundation. This
manual page was written by Warren Block
<wblock@FreeBSD.org>.
CAVEATSPaste buffer size is limited by the system value {MAX_INPUT }, the number of bytes that can be stored in
the terminal input queue, usually 1024 bytes (see
termios(4)).
Visit the GSP FreeBSD Man Page Interface. |