Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ibmemul(4) — AOS 4.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

cons(4)

ibm5151(4)

ibm5154(4)

ibm6153(4)

ibm6154(4)

ibm6155(4)

ibmaed(4)

kbdemul(4)

stdemul(4)

IBMEMUL(4)  —  

NAME

ibmemul − IBM 3101 emulator

SYNOPSIS

pseudo-device apasixteen
pseudo-device apaeightc
pseudo-device apaeight
pseudo-device ega
pseudo-device mono
pseudo-device mpel
pseudo-device vga

DESCRIPTION

Ibmemul is an output emulator which interprets a superset of escape sequences recognized by the IBM 3101 ASCII terminal.  This emulator is the default emulator for the IBM 5151 Monochrome Display (mono), IBM 5154 Enhanced Graphics display (ega), IBM 6153 Advanced Monochrome Graphics Display (apa8), IBM 6154 Advanced Color Graphics Display (apa8c), and the IBM 6155 Extended Monochrome Graphics Display (apa16).  If none of these devices is configured, ibmemul is not included. 

Below is a list of the recognized escape sequences:

 
<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 Reverse on
<Esc> q Reverse off
<Esc> s Status line on/off
<Esc> w Stop underline
<Esc> z Low intensity
<Esc> VIncrement the color table value of the current background color
<Esc> UIncrement the color table value of the current foreground color
<Esc> vDecrement the color table value of the current background color
<Esc> uDecrement the color table value of the current foreground color
<Esc> PReverse the current foreground and background colors
<Esc> GStart blink
<Esc> EEnd blink
<Esc> fhex;Select color table entry hex for the foreground
<Esc> bhex;Select color table entry hex for the background
<Esc> FSave the current foreground and background entries; set by <Esc> f and <Esc> b. (Note: this
does not save the color table values associated with these entries, set by <Esc> T.)
<Esc> BRestore saved foreground and background entries
<Esc> Tentry;red;green;blue;
Set the color table entry entry (specified in hex) to the color
specified by red, green, and blue (also specified in hex)

Oversize values for color table entries are ignored when specified in the <Esc> T command.  Only the significant low order bytes are used for oversize values specified by the <Esc> f and <Esc> b commands.  All values for red, green, and blue are normalized to the 32-bit hex value (i.e. 1 becomes 10000000, f becomes f0000000, 3f becomes 3f0000000, and 001 becomes 00100000).  Only the high order bits are significant (the number of bits depends on the number of colors the display may use.) 

Monochrome displays have two color table entries which may not be set to the same color.  Thus <Esc> V, <Esc> U, <Esc> v, and <Esc> u may all be used to toggle the foreground and background colors.  The foreground and background may be set to the same color table entry. 

To return to ibmemul after switching to another emulator, or if the open console device does not use ibmemul as a default, do the following:

 
#include <machinecons/screen_conf.h>
.
.
.
int fd, output_emul;
char ∗console;/∗ set to some console device ∗/
.
.
.
fd = open (console, O_RDWR);
.
.
.
output_emul=E_IBMOUTPUT;
ioctl(fd,EOSETD,&output_emul);

NOTES

<Esc> s changes the screen size and issues a SIGWINCH to indicate the new screen size. 

FILES

/dev/console
/dev/ttyap16
/dev/ttyap8c
/dev/ttyapa8
/dev/ttyega
/dev/ttymono

SEE ALSO

cons(4), ibm5151(4), ibm5154(4), ibm6153(4), ibm6154(4), ibm6155(4), ibmaed(4), kbdemul(4), stdemul(4)
“IBM/4.3 Console Emulators” in Volume II, Supplementary Documents

DIAGNOSTICS

None. 

BUGS

There are not separate escape sequences to turn the status line on and off. 

PRPQs 5799-WZQ/5799-PFF: IBM/4.3  —  Sept 1988

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026