Commit Graph

19 Commits

Author SHA1 Message Date
christos df11da68ff merge 20200606: resolve conflict by adding kb2 and rin entries to putty 2020-10-10 12:57:39 +00:00
christos 3958d16a96 As described in tech-userlevel:
- Modify the writing code to only write entries in the new
  format for the terminal descriptions that require it.
- Store new format entries as <name>@v3
- Store old format entries with clamped values as <name> for
  backwards compatibility
- Lookup first <name>@v3 and then <name> if that is not found.
- Don't create terminfo2 anymore; old programs keep working with
  clamped entries, and new programs be able to use the wide
  fields with using the original db file.
2020-03-27 15:11:57 +00:00
roy aadfdb111b terminfo: promote numeric parameters from short to int
POSIX mandates implementations must support upto a short but may exceed it.
When NetBSD terminfo was implemented, no terminfo description used over
a short, but because ncurses has supported ints for some time, some now do.

Infact, such a terminfo description was imported where colour pairs for
screen-256color went up to 65536 which exposed a bug in the existing
implementation where it set to zero. Because the number might mean
something more than a range, we need to be able to store it accurately.

This requires a version bump because whilst the API hasn't changed thanks
to C int promotion, the ABI has. Also the underlying database structure
has changed as well - we now store the numeric paramter inside a uint32_t
field rather than a uint16_t one.
Whilst this change can still read the old style database, the old one
cannot read the new one and thus we now maintain the database as
terminfo2.cdb, leaving the old library and database alone so old programs
still work fine.

libcurses, libfrom, libmenu and libpanel have also been bumped to
accomoate this change.
2020-03-13 15:19:24 +00:00
christos 8dc6c738dd simple import script 2019-11-27 19:00:25 +00:00
christos bd9bf8b634 merge our changes 2019-11-27 18:58:57 +00:00
rin 981581a5b2 For wsvt25, stop disabling color attributes for underlined text.
With this change, underlined text is drawn in correct colors if
MD backend of wscons is underline-capable.

As the removed comment said, we render underlined text in red, if
MD backend of wscons does not support underline. However, this is
done regardless of original color attributes; foreground color is
forcibly changed to red. So, we don't need to disable original
colors for underlined.
2019-07-28 02:37:54 +00:00
roy 7457a06fbb Remove kLFT and kRIT from putty.
This allows left and right cursor key movement inside tmux on putty.
See https://github.com/tmux/tmux/issues/708.
2017-02-23 13:22:53 +00:00
roy ab5b5415b7 Sync our changes. 2017-02-11 09:15:38 +00:00
roy 2887869ac5 Import terminfo-20170128.src 2017-02-11 09:12:32 +00:00
isaki e95d7bfcc6 Correct the x68k's Backspace key behavior.
With this fix, the Backspace key on x68k keyboard erases
previous one character, instead of outputting '^?' character.
Reported by Yasushi Oshima (two months ago..)
2015-11-15 06:43:17 +00:00
roy c0fcd471d9 Import terminfo-20130607.src + mbalmers typo patch
All our prior patches have been incorporated.
2013-10-01 09:17:41 +00:00
uwe 1b269329ba Pull in fix for PR misc/47674 from ncurses:
# 2013-03-23
#	* change initialization for vt220, similar entries for consistency
#	  with cursor-key strings (NetBSD #47674) -TD
2013-03-29 14:31:48 +00:00
joerg fc67b0cd11 Switch terminfo(3) to cdb(5). 2012-06-03 23:19:09 +00:00
jdc 6d16a86832 Add a delete key capability to our wsvt25 entry. Fixes a problem noted by
David Lord on netbsd-users.
2012-06-01 14:47:06 +00:00
mbalmer 631d5867a0 According to the Oxford Dictionary of Etymology, a wether is a male sheep
or ram.
2011-08-01 12:28:53 +00:00
roy 45a3ef0c73 Add civis and cnorm to our wsvt25 entry thanks to Onno van der Linden. 2011-06-19 16:27:23 +00:00
roy cab1506d89 Import a newer terminfo.src from upstream. 2011-06-19 15:58:28 +00:00
roy 2a23b85c5f Retain commented out capabilities by default. 2010-02-05 16:34:04 +00:00
roy 4ca00e00d8 Import my terminfo implementation.
This uses the ncurses terminal definitions.

OK: core@, jdc@
2010-02-03 15:16:32 +00:00