terminfo definitions are too old, hinder use of Terminal.app features
| Originator: | me | ||
| Number: | rdar://27624224 | Date Originated: | 30-Jul-2016 |
| Status: | open | Resolved: | |
| Product: | OS X | Product Version: | 10.12 Beta (16A254g) |
| Classification: | Reproducible: | Always |
Please update the terminfo definitions that ship with OS X. This can be done by bringing in a newer ncurses package or selectively updating the definitions. Steps to Reproduce: Terminal.app supports the "dim" capability for half-bright text output. Terminal.app identifies itself by default as "xterm-256color". The "xterm-256color" definition shipped with current MacOS Sierra betas, however, does not allow that capability to be used: 1. Type into the terminal under a profile with system defaults (terminal declared as xterm-256color): echo this text is normal; tput dim; echo this text is dimmed 2. Launch a new terminal after modifying Terminal.app settings under Advanced -> Terminfo -> Declare terminal as to "dtterm" 3. Type into a new terminal window under the profile with the modified settings above: echo this text is normal; tput dim; echo this text is dimmed Expected Results: The output in both cases should consist of one line with normal intensity text followed by a line with half-intensity text. Actual Results: Only the TERM=dtterm Terminal window will behave correctly. This is because in the particular version of ncurses shipped with OS X, the xterm profiles are not blessed with a "dim" capability. Version: 10.12 Beta (16A254g) Notes: # Notes regarding TERM/Terminfo on MacOS It is not the case that dtterm is a better TERM default for Terminal.app. However, it likely is the case that another option present, nsterm, is a better default. This is a terminfo ruleset that is tailored specifically to terminal.app (which the terminfo author believes to derive in lineage back to NSTerm). With a newer version of ncurses installed (e.g. through Homebrew: `brew install ncurses; brew link --force ncurses`) nsterm provides a better experience than even xterm-256color because it contains a newer nsterm terminfo which attempts to define the exact capabilities that exist in Terminal.app as of El Capitan, a better match than xterm-256color. The terminfo that ships with MacOS is today too moldy as of present to yield a good experience here, unfortunately. Configuration: Attachments:
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!