Bug 247447

Summary: Add blink/dim/invis attributes to base termcap(5)
Product: Base System Reporter: Jan Beich <jbeich>
Component: confAssignee: freebsd-bugs (Nobody) <bugs>
Status: New ---    
Severity: Affects Only Me CC: dickey, grahamperrin
Priority: --- Keywords: patch
Version: CURRENT   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
v1 none

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`