The terminfo entries used for X and for the console by a default install,
are broken for keyboards with function keys beyond F12, and for keyboards
with five cursor movement keys instead of the more common four.

In addition, the VGA console supports colour, but the terminfo entry used
by default does not define the necessary escape sequences.

Please find attached a patch against -current which defines three new
terminfo entries to fix these problems.

--- termtypes.master.1.55.dist  Sun Nov  8 11:40:24 2015
+++ termtypes.master.1.55.custom        Sun Nov  8 11:43:06 2015
@@ -291,6 +291,51 @@
# There are no guarantees anywhere.  Svaha!
#

+######## CUSTOM ENTRIES FOR OPENBSD-5.8
+#
+# Three entries to allow the use of F1-F5, F13-F24 and colour on the
+# OpenBSD VGA framebuffer console, and the use of F13-F24 with the default
+# X config.
+#
+# In addition, the, 'home', key on a PC-122 keyboard is defined as, 'home',
+# on the console, to match the definition in X:
+#
+# On a standard PC keyboard, there are four cursor keys in an inverted, 'T',
+# whereas on a PC-122 keyboard there are five cursor keys:
+#
+#      ---             ---                 Legend
+#      |^|             |^|                 ------
+#      ---             ---
+#  --- --- ---     --- --- ---             ^ - UP
+#  |<| |V| |>|     |<| |H| |>|             V - DOWN
+#  --- --- ---     --- --- ---             < - LEFT
+#                      ---                 > - RIGHT
+#                      |V|                 H - HOME
+#                      ---
+#
+#  PC Keyboard   PC-122 Keyboard
+#
+# The new entries in this file are as follows:
+# tati - OpenBSD console with F1-F24, 5-key cursor-key block, and colour.
+# tatimono - As above, but without colour support
+# tatiX - X11 xterm with F1-F24, (colour and 5-key cursor-key block were
+#         already supported by the existing xterm entry.
+
+tatimono|OpenBSD console with F1-F24 without colour support,
+       kf1=\E[11~, kf2=\E[12~, kf3=\E[13~, kf4=\E[14~, kf5=\E[15~,
+       kf15=\E[28~, kf16=\E[29~, kf21=\E[35~, kf22=\E[36~,
+       kf23=\E[37~, kf24=\E[38~, khome=\E[7~, khlp=, krdo=, use=vt220,
+
+tati|OpenBSD console with F1-F24 and colour,
+       use=tatimono, use=ecma+color,
+
+tatiX|vt220-like entry that fixes behaviour of F13-F24 in X on OpenBSD,
+       kf13=\E[25~, kf14=\E[26~,
+       kf15=\E[28~, kf16=\E[29~, kf17=\E[31~, kf18=\E[32~,
+       kf19=\E[33~, kf20=\E[34~, kf21=\E[42~, kf22=\E[43~,
+       kf23=\E[44~, kf24=\E[45~, khlp=, krdo=, use=xterm,
+
+
######## ANSI, UNIX CONSOLE, AND SPECIAL TYPES
#
# This section describes terminal classes and brands that are still

--
Tati Chevron
Perl and FORTRAN specialist.
SWABSIT development and migration department.
http://www.swabsit.com

Reply via email to