compose.md

June 19, 2026 · View on GitHub

The Compose key on the DEC LK-201, LK-401 keyboards is pressed sequentially with two other keys to input Latin-1 characters such as £ (ComposeL-) and ¶(ComposeP!).

It cannot be used while held down as Meta.

======================================================================

Newsgroups: comp.sys.dec Path: cs.utk.edu!stc06.CTD.ORNL.GOV!fnnews.fnal.gov!uwm.edu !math.ohio-state.edu!howland.reston.ans.net!agate!news.Stanford.EDU !unixhub!sldb6.slac.stanford.edu!fairfield Message-ID: 1995Feb19.230712.1@sldb6.slac.stanford.edu Sender: news@unixhub.SLAC.Stanford.EDU Organization: Stanford Linear Accelerator Center References: <3i2qnj$83p@cpcw16.uea.ac.uk> Date: Mon, 20 Feb 1995 07:07:12 GMT From: fairfield@sldb6.slac.stanford.edu Subject: Re: Compose key on DEC LK401 keyboard on an Alpha 3000

In article <3i2qnj$83p@cpcw16.uea.ac.uk>, zebra@cpcw16.uea.ac.uk (Julii Brainard#) writes:

I know that people have posted messages about this before, and I have even saved a few, but there seems to be no authoritative guide for how to use the compose key on an Alpha 3000 with an LK401 keyboard to create all of those weird and wacky symbols and characters -- just a few of which may be useful in my work. [...]

    I haven't seen this topic come up very often and it's not in any
FAQ (that I know of).  The fact  is, it seems very difficult to find
this  information; usually, I expect, it's in the User's manual that
_may_ have come with the hardware (terminal), but it's  not  in  the
VMS user's manuals, or even the I/O Reference Guide, etc.  Note that
the  compose  sequences  are  common  to  all  VTxxx  terminals (and
DECterms) from the VT200_Series on  up.   [I  guess that means LK201
and LK401 keyboards, etc.]

    I _finally_ found the  compose  sequences in the Bookreader docs
for  VXT1200  X-terminals, Table 15-4.  I've reformatted the  table,
and omitted some  of  the  compose  sequences  for  characters  that
normally appear on a US keyboard (e.g., <COMPOSE> + + for the number
sign,  #).   Also,  I've omitted the dozen or so characters that you
can only access if you're using  the  ISO Latin 1 character set; the
sequences  I've listed are for the DEC Multinational character  set,
although most of these are also available in ISO Latin 1.

    -Ken

-- Kenneth H. Fairfield | Internet: Fairfield@Slac.Stanford.Edu SLAC, P.O.Box 4349, MS 98 | DECnet: 45537::FAIRFIELD (45537=SLACVX) Stanford, CA 94309 | Voice: 415-926-2924 FAX: 415-926-4335

These opinions are mine, not SLAC's, Stanford's, nor the DOE's...

=============================================================================== Note: Most sequences can also typed in reverse order, but a few must be typed in the order given.

CharacterNameCompose SequenceCharacterNameCompose Sequence
«opening angle brackets<<»closing angle brakets>>
¡inverted !!!°degree sign0^
¿inverted ???¹superscript 11^
¢cent signC/ or C\²superscript 22^
£pound sterling signL- or L=³superscript 33^
¥yen signY- or Y=·middle dot.^
§section signSO or S!¼fraction one-quarter14
¤currency sign**XO½fraction one-half12
©copyright signCO±plus or minus sign+-
ªfeminine ordinalA_µmicro sign/u
ºmasculine ordinalO_paragraph signP!
ßGerman small sharp sss
ÀA grave`Aàa grave`a
ÁA acute'Aáa acute'a
ÂA circumflex^Aâa circumflex^a
ÃA tilde~Aãa tilde~a
ÄA umlaut"Aäa umlaut"a
ÅA ring*Aåa ring*a
ÆA E diphthongAEæa e diphthongae
ÇC cedillaC,çc cedillac,
ÈE grave`Eèe grave`e
ÉE acute'Eée acute'e
ÊE circumflex^Eêe circumflex^e
ËE umlaut"Eëe umlaut"e
ÌI grave`Iìi grave`i
ÍI acute'Iíi acute'i
ÎI circumflex^Iîi circumflex^i
ÏI umlaut"Iïi umlaut"i
ÑN tilde~Nñn tilde~n
ÒO grave`Oòo grave`o
ÓO acute'Oóo acute'o
ÔO circumflex^Oôo circumflex^o
ÕO tilde~Oõo tilde~o
ÖO umlaut"Oöo umlaut"o
ŒO E diphthong*OEœo e diphthong*oe
ØO slashO/øo slasho/
ÙU grave`Uùu grave`u
ÚU acute'Uúu acute'u
ÛU circumflex^Uûu circumflex^u
ÜU umlaut"Uüu umlaut"u
ŸY umlaut*"Yý ÿy umlat**"y
  • * Only available in DEC-MCS
  • ** Available in Latin-1 at a different codepoint

Does Capital Y Umlaut actually work?

The FAQ lists some glyphs which are not Latin-1 characters. Do they work on a VT340 in Latin-1 mode? No. They share the same code-point as Latin-1 glyphs, so they only work in DEC-MCS mode. (Set Up Key -> General -> User Pref Charset). Hackerb9 recommends using Latin-1 mode for modern VT340 usage.

Table of conflicting characters between MCS and Latin-1

The two characters in each row have the same code point.

CodeDEC-MCSNameCompose SequenceLatin-1NameCompose Sequence
0xD7ŒO E diphthongOE×Multiplicationxx
0xF7œo e diphthongoe÷Division-:
0xDDŸY umlaut"YÝY acute'Y
0xDDÿy umlaut"yýy acute'y
0xFFInvalidÿy umlaut"y
0xA8¤Currency signXO¨Diaeresis""
0xA4Undefined¤Currency signXO

Sidenote: Character 0xFF (y umlaut) is invalid when the VT340 is set to MCS and the glyph will be omitted instead of being substituted with the backwards question mark (DEC replacement character).

Latin-1 VT340 compose keys not found in Shufford's DEC FAQ

CodeCharacterNameCompose Sequence
a0" "No-break spaceSpaceSpace
a6¦Broken pipePipePipe
a8¨Diaeresis""
ac¬Not-,
ad­Soft hyphen--
ae®RegisteredRO
af¯Macron^-
b4´Acute accent''
b8¸Cedilla,,
be¾Three quarters34
d0ÐIcelandic Eth-D
d7×Multiplicationxx
ddÝY acute'Y
deÞIcelandic ThornTH
f0ðIcelandic eth-d
f7÷Division-:
fdýy acute'y
feþIcelandic thornth
ffÿy umlaut"y

X11 compose is very similar

X11 uses a near superset of the compose key sequences on the VT340. To use it, one just needs to assign a key to be "Compose" (e.g., setxkbmap -option compose:rctrl). See the file /usr/share/X11/locale/en_US.UTF-8/Compose for all possible compose sequences. Also see /usr/share/X11/locale/iso8859-1/Compose for a much shorter list of keys which more closely fits with the VT340.

Compose keys from X11 Compose

DECHEXOCTCHARNAMEX11 Compose
160a0240 Non-breakable spacespacespace 
166a6246¦Broken bar!^
168a8250¨Diaeresis""
172ac254¬Not-,
173ad255­Soft hyphen--
175af257¯Macron^-X11 adds a space at the end
180b4264´Acute accent''
208d0320ÐIcelandic Eth-DX11 specifies ~ instead of -
215d7327×Multiplyxx
221dd335ÝY-acute'Y
222de336ÞIcelandic ThornTHX11 uses ~ T
240f0360ðIcelandic eth-dX11 uses ~ instead of -
247f7367÷Divide-:
253fd375ýy-acute'y
254fe376þIcelandic thornthX11 uses ~ t

Redundant ASCII

The Compose key on the VT340 (and in X11) allows one to type some ASCII characters that may be difficult to access on some keyboards. Since they merely replace keys that exist on the US keyboard, they were not listed in Shufford's DEC keyboard FAQ.

CharacterNameCompose Sequence
{Left curly brace-(
}Right curly brace)-
[Left square bracket((
]Right square bracket))
#Number sign++
\Backslash//
PipePipe symbol/^

Aliases available in X11, missing on VT340

These additional sequences are listed as aliasses in X11. Do they also work on the VT340? Nope. Just use the standard sequences.

characterNameX11 Compose AliasStandard Compose
°Degreeoo0^
µMicromu/u

X11 UTF-8 Compose

X11 changes the meaning of some compose sequences when LANG=en_US.utf-8 (versus LANG=en_US.iso8859-1).

feminine and masculine ordinals

In X11's UTF-8 encoding, _a is ā (a with macron) and _o is ō (o with macron). Instead X11 requires ^_a and ^_o for ª and º

Degree and superscript zero

In X11, ^0 is ⁰ (superscript zero), use oo for degree.

Many Unicode Characters not possible on VT340

With a Unicode locale, the Compose key in X11 has a much wider repertoire. Do not expect the VT340 to be able to do sequences like:

CharNameCompose sequence
Smile:)
Heart<)3/kbd>

However, DEC APL does somehow allow redefining the compose keys so as to make unusal glyphs. This has been tested with the VWS terminal emulator, but needs to be tested with a VT340.