# Report bugs and new terminal descriptions to
# bug-ncurses@gnu.org
#
-# $Revision: 1.1001 $
-# $Date: 2022/03/27 19:32:34 $
+# $Revision: 1.1005 $
+# $Date: 2022/06/04 23:14:19 $
#
# The original header is preserved below for reference. It is noted that there
# is a "newer" version which differs in some cosmetic details (but actually
vpa=\E[%i%p1%dd, use=ecma+index,
#### FreeBSD console entries
+
+# Originally from termcap:
#
# From: Andrey Chernov <ache@astral.msk.su> 29 Mar 1996
# Andrey Chernov maintains the FreeBSD termcap distributions.
# I have seen FreeBSD-2.1.5R... The old el1 bug changed, but it is still there.
# Now el1 clears not only to the line beginning, but also a large chunk
# of previous line. But there is another bug - ech does not work at all.
-#
+# syscons, sc - the console driver
+#
# for syscons
# common entry without semigraphics
# Bug: The <op> capability resets attributes.
# Setting colors turns off reverse; we cannot guarantee order, so use ncv.
# Note that this disables standout with color.
#
-# The emulator sends difference strings based on shift- and control-keys,
+# The emulator sends different strings based on shift- and control-keys,
# like scoansi:
# F13-F24 are shifted F1-F12
# F25-F36 are control F1-F12
cons60l1-m|cons60-iso-m|FreeBSD console w/iso 8859-1 chars (60-line mono),
lines#60, use=cons25l1-m,
+# vt - virtual terminal console driver
+#
# Starting with FreeBSD 8, an alternative configuration for syscons is provided,
# which is intended to be xterm-compatible. See for example
# http://svnweb.freebsd.org/base/stable/8/sys/dev/syscons/
# in particular scterm-teken.c
#
+# Some of the documentation refers to this as "vt"; its proper name is "teken".
+#
+# The sc(4) manual page states that it is possible to switch between the two
+# by editing /boot/loader.conf, adding
+# kern.vty=sc
+# Doing that does not change the default TERM variable. That is hard-coded in
+# /etc/ttys, rather than deriving it from the kernel state.
+#
# For FreeBSD 12 and 13:
# ---------------------
# In newer releases, it is no longer possible to boot into a configuration that
-# works with syscons. teken's "cons25" configuration supports only the first
-# 12 function keys. One may switch at runtime between the two flavors of
-# function keys using vidcontrol:
+# works with syscons. According to efi(4),
+# "The vt(4) system console is automatically selected when booting via UEFI."
+# See FreeBSD #264226.
+#
+# FreeBSD 13 supports 64-bit machines which boot with UEFI:
+# https://www.freebsd.org/platforms/
+# The i386 platform does not use UEFI (and modifying the loader configuration
+# does load sysconf); however because no updates (fixes) are available, most
+# developers will regard that as unsupported.
+#
+# With FreeBSD 13, even when syscons is loaded (e.g., with the i386 platform),
+# its function-keys are not configured. Using
+# vidcontrol -T cons25
+# repairs this.
+#
+# When teken is loaded, vidcontrol can switch at runtime between the
+# teken/cons25 function keys:
# vidcontrol -T cons25
# vidcontrol -T xterm
-# But for each, teken implements only about a quarter of the imitated terminal's
-# terminal descriptions.
+# However due to a limitation in the implementation, only the first 12 function
+# keys are available. The real syscons supports 48 function keys (using the
+# shift and control modifiers), while xterm supports more than twice as many.
+#
+# vidcontrol does not change the emulation. As a result, the quarter (17/73) of
+# non-function key capabilities which differ between syscons and teken are
+# unsupported in the UEFI-based configurations.
#
# tack:
# VT100 line-drawing does not work (UTF-8 equivalents do).
kf3=\EOR, kf4=\EOS, kf5=\E[15~, kf6=\E[17~, kf7=\E[18~,
kf8=\E[19~, kf9=\E[20~, khome=\E[H, kich1=\E[2~, knp=\E[6~,
kpp=\E[5~, rmir=\E[4l, smir=\E[4h, tbc=\E[3g,
- u6=\E[%i%d;%dR, u7=\E[6n, u8=\E[?1;2c, u9=\E[c,
vpa=\E[%i%p1%dd, use=vt220+cvis, use=cons25,
teken-2022|teken as of 2022,
use=ansi+rep, use=ecma+strikeout, use=xterm+pcfkeys,
use=xterm+nofkeys,
+xterm-p371|xterm patch #371,
+ use=dec+sl, use=xterm-p370,
+
# This version reflects the current xterm features.
xterm-new|modern xterm terminal emulator,
- use=dec+sl, use=xterm-p370,
+ use=xterm-p370,
# This fragment is for people who cannot agree on what the backspace key
# should send.
# xterm patch #83 (1998/10/7), added Jason Bacon's changes to provide an
# "any-event" mouse mode.
-xterm+sm+1002|xterm any-event mouse (building-block),
- kmous=\E[M, XM=\E[?1002%?%p1%{1}%=%th%el%;,
-xterm-1002|xterm any-event mouse,
- use=xterm+sm+1002, use=xterm,
+#
+# These building blocks incorporate later features as well:
+# xterm patch #224 (2007/2/11 added private mode 1004, for enabling/disabling
+# focus in/out event reporting.
+# xterm patch #277 (2012/01/07 added private mode 1006
-xterm+sm+1003|xterm any-button mouse (building-block),
- kmous=\E[M, XM=\E[?1003%?%p1%{1}%=%th%el%;,
+xterm+sm+1002|xterm any-button mouse,
+ kmous=\E[<, XM=\E[?1006;1004;1002%?%p1%{1}%=%th%el%;,
+ xm=\E[<%i%p3%d;%p1%d;%p2%d;%?%p4%tM%em%;,
+ use=xterm+focus,
+xterm-1002|example of xterm any-button mouse,
+ use=xterm+sm+1002, use=xterm,
-xterm-1003|xterm any-button mouse,
+xterm+sm+1003|xterm any-event mouse,
+ XM=\E[?1006;1004;1003%?%p1%{1}%=%th%el%;,
+ use=xterm+sm+1002,
+xterm-1003|example of xterm any-event mouse,
use=xterm+sm+1003, use=xterm,
+xterm+focus|xterm focus-in/out event "keys",
+ kxIN=\E[I, kxOUT=\E[O,
+
# xterm patch #116 (1999/9/25) added Stephen P Wall's changes to support DEC
# locator mode.
# 2022-03-27
# + make description-fields distinct -TD
#
+# 2022-04-30
+# + modify samples for xterm mouse 1002/1003 modes to use 1006 mode, and
+# also provide for focus in/out responses -TD
+#
+# 2022-05-28
+# + expanded notes for teken/syscons -TD
+#
+# 2022-06-04
+# + remove u6-u9 from teken-2018 -TD
+# + set "xterm-new" to "xterm-p370", add "xterm-p371" -TD
+#
######## SHANTIH! SHANTIH! SHANTIH!