8000 minix/minix/man/man4/console.4 at v3.3.0 · VasinYO/minix · GitHub
[go: up one dir, main page]

Skip to content

Latest commit

 

History

History
268 lines (268 loc) · 8.79 KB

console.4

File metadata and controls

268 lines (268 loc) · 8.79 KB
\fIs\fP = 0: From cursor to end of line
.br
\fIs\fP = 1: From start of line to cursor
.br
\fIs\fP = 2: Entire line
.ti -30n
^[[\fIn\fPL Insert Lines Insert \fIn\fP blank lines
.ti -30n
^[[\fIn\fPM Delete Lines Delete \fIn\fP lines
.ti -30n
^[[\fIn\fP@ Insert Characters Insert \fIn\fP blank characters
.ti -30n
^[[\fIn\fPP Delete Characters Delete \fIn\fP characters
.ti -30n
^[[\fIn\fPm Character Attribute Set character attribute as follows:
.br
\fIn\fP = 0: Normal (default) attribute
.br
\fIn\fP = 1: Bold (high intensity fg colour)
.br
\fIn\fP = 4: Underline (mono) / Cyan (colour)
.br
\fIn\fP = 5: Blinking
.br
\fIn\fP = 7: Reverse Video
.br
\fIn\fP = 30: Black foreground colour
.br
\fIn\fP = 31: Red
.br
\fIn\fP = 32: Green
.br
\fIn\fP = 33: Brown
.br
\fIn\fP = 34: Blue
.br
\fIn\fP = 35: Magenta
.br
\fIn\fP = 36: Cyan
.br
\fIn\fP = 37: Light Gray
.br
\fIn\fP = 39: Default fg colour (lt gray)
.br
\fIn\fP = 40\-47: Same for background colour
.br
\fIn\fP = 49: Default bg colour (black)
.br
Note: The "bold" versions of black, brown and lt gray become dark gray,
yellow and white.
.in -31n
.PP
The console device implements the following ioctl to copy a font into
font memory on EGA and VGA adapters:
.PP
.RS
.BI "ioctl(" fd ", TIOCSFON, u8_t " font "[256][32]);"
.RE
.PP
Font memory consists of 256 character definitions of 32 lines per character
and 8 pixels per line. The first line is the topmost line of the character.
The leftmost pixel is lit if the most significant bit of a line is set, etc.
How many lines are used depends on the current video mode. The 80x25 video
mode used by MINIX 3 has an 8x16 character cell, 80x28 has 8x14 characters,
and 132x43 or 132x50 has 8x8 characters. The boot variable
.B console
is used by both the Boot Monitor and the console driver to set the video
mode, software scrolling on/off, and VGA screen blank timeout. See
.BR boot (8).
.SS "The Keyboard"
The keyboard produces key codes for each key that is pressed. These keys
are transformed into character codes or sequences according to the current
keyboard translation table. The format of this table is described in
.BR keymap (5).
The character codes can be read from the console device unless they map to
special hotkeys. The hotkeys are as follows:
.PP
.ta +17n
Name Key Function
.in +18n
.ti -17n
CTRL\-ALT\-DEL Send an abort signal to process 1 (init). Init then
halts the system
.ti -17n
CTRL\-ALT\-KP-. Likewise for keypad period
.ti -17n
F1 Process table dump
.ti -17n
F2 Show memory map
.ti -17n
F3 Toggle software/hardware scrolling
.ti -17n
F5 Show network statistics
.ti -17n
CTRL\-F7 Send a quit signal to all processes connected to the console
.ti -17n
CTRL\-F8 Send an interrupt signal
.ti -17n
CTRL\-F9 Send a kill signal. If CTRL\-F8 or CTRL\-F7 don't get 'em,
then this surely will. These keys are for disaster recovery. You would
normally use DEL and CTRL\-\e to send interrupt and quit signals.
.\" .ig VC
.ti -17n
ALT\-F1 Select virtual console 0 (/dev/console)
.ti -17n
ALT\-F2 Select virtual console 1 (/dev/ttyc1)
.ti -17n
ALT\-F(\fIn\fP+1) Select virtual console \fIn\fP
(/dev/ttyc\fIn\fP)
.ti -17n
ALT\-Left Select previous virtual console
.ti -17n
ALT\-Right Select next virtual console
.\" ..
.in -18n
.PP
.\"XXX
The keyboard map is set with the
.B KIOCSMAP
ioctl whose precise details are currently hidden in the
.B loadkeys
utility.
.SS "Log device"
The
.B log
device can be used by processes to print debug messages onto the console.
The console is a terminal type device, so it is taken from processes when a
session leader exits. This does not happen with the log device.
.SH "SEE ALSO"
.BR tty (4),
.BR loadkeys (1),
.BR keymap (5),
.BR boot (8).
.SH NOTES
Output processing turns Line Feeds into CR LF sequences. Don't let this
surprise you. Either turn off output processing or use one of the synonyms
for LF.
.SH AUTHOR
Kees J. Bot (kjb@cs.vu.nl)
.\" minor editing of man page by asw 07.08.96
0