Bug 247447 - Add blink/dim/invis attributes to base termcap(5)
Summary: Add blink/dim/invis attributes to base termcap(5)
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: conf (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2020-06-20 19:52 UTC by Jan Beich
Modified: 2022-10-02 06:49 UTC (History)
2 users (show)

See Also:


Attachments
v1 (2.97 KB, patch)
2020-06-20 19:52 UTC, Jan Beich
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Beich freebsd_committer freebsd_triage 2020-06-20 19:52:21 UTC
Created attachment 215828 [details]
v1

Some ports support dim colors on terminal but base termcap(5) doesn't define "mh" for TERM=xterm. Let's port it from terminfo(5) along with some other attributes.

- editors/emacs (-nw)
- editors/ne
- shells/fish
- sysutils/smenu

https://codesearch.debian.net/search?q=enter_dim_mode

Test case:
$ pkg install xterm
$ xterm
$ echo `tput mb`blink`tput me` `tput mh`dim`tput me` `tput mk`invis`tput me`

$ pkg install tmux
$ tmux
$ tmux server-info | fgrep -e blink -e dim -e invis
$ echo `tput mb`blink`tput me` `tput mh`dim`tput me` `tput mk`invis`tput me`
Comment 1 Jan Beich freebsd_committer freebsd_triage 2020-06-20 20:14:30 UTC
I'd like to *avoid* a new entry a la xterm-clear. Each of the new caps is trivial to disable e.g.,

  $ export TERMCAP="${TERM}:mb@:mh@:mk@:tc=${TERM}:"
  $ echo `tput mb`blink`tput me` `tput mh`dim`tput me` `tput mk`invis`tput me`