IBM5151(4)

NAME
ibm5151, mono - IBM 5151 Monochrome Display interface

SYNOPSIS
pseudo-device mono

DESCRIPTION
The monochrome display is a standard IBM Personal Computer AT Monochrome Display and display adapter. The display adapter is accessed through a memory-mapped I/O address space. The display buffer is at address 0xf40b0000. Opening /dev/mono grants direct access to the display buffer and the monochrome registers in the I/O map. The registers are at the addresses given in the IBM PC/AT Technical Reference Manual, offset by 0xf0000000.

Each character on the display has two bytes in the buffer; one contains the character, the other the attributes. The attributes available are reverse video, intense mode, blink mode and underline mode. These are available through escape sequences sent to the display (see below). All other functions are provided through software terminal emulation, including either 24-line (plus status) mode or 25-line mode, forward and reverse scrolling and cursor positioning.

The escape sequences recognized by the display software, from the termcap entry (in /etc/termcap) for ``ibmmono'', are as follows:
	<Esc>-<A>		Cursor up
	<Esc>-<C>		Non-destructive space
	<Esc>-<H>		Home cursor
	<Esc>-<I>		Clear to end of line
	<Esc>-<J>		Clear to end of screen
	<Esc>-<K>		Clear screen
	<Esc>-<L>		Insert line
	<Esc>-<M>		Delete line
	<Esc>-<W>		Start underline
	<Esc>-<Y>		X Y position cursor
	<Esc>-<Z>		High intensity
	<Esc>-<j>		Save cursor position
	<Esc>-<k>		Restore cursor position
	<Esc>-<p>		Stand out
	<Esc>-<q>		Stand out end
	<Esc>-<s>		Status line on/off
	<Esc>-<w>		Stop underline
	<Esc>-<z>		Low intensity

These escape sequences are a superset of the ones recognized by IBM 3101 display.

FILES
/dev/console
/dev/mono

SEE ALSO
cons(4), ibm6153(4), ibm6155(4), ibmaed(4), keyboard(4), tty(4)

DIAGNOSTICS
None.

BUGS
Access to the PC/AT I/O and memory busses through /dev/mono is not limited to the monochrome addresses.

There should be separate escape sequences to turn the status line on and off.