While investigating using TERM=ansiw for freebsd, I also came across
TERM=ansis which unlike ansiw is present on both linux and freebsd.
Add initial support for TERM=ansi in tuiterm:
- handle ansis in Term::_have_bw
- add Term::_csi_x to support (well, ignore) DECREQTPARM
(Request Terminal Parameters)
This is sufficient to make the TUI testsuite pass on x86_64-freebsd.
# Return 1 if tuiterm has the bw/auto_left_margin enabled.
proc _have_bw {} {
- return [string equal $Term::_TERM "ansiw"]
+ return [expr \
+ [string equal $Term::_TERM "ansiw"] \
+ || [string equal $Term::_TERM "ansis"]]
}
# Backspace.
}
}
+ # Request Terminal Parameters (DECREQTPARM)
+ #
+ # https://invisible-island.net/xterm/ctlseqs/ctlseqs.html
+ # https://vt100.net/docs/vt100-ug/chapter3.html
+ proc _csi_x {} {
+ # Ignore.
+ }
+
# Insert string at the cursor location.
proc _insert {str} {
_log_cur "Inserted string '$str'" {