Questions tagged [terminfo]
Terminfo is a data base describing terminals, used by screen-oriented programs such as nvi(1), rogue(1) and libraries such as ncurses(3NCURSES). Terminfo describes terminals by giving a set of capabilities which they have, by specifying how to perform screen operations, and by specifying padding requirements and initialization sequences. - taken from the manpage.
50 questions
2
votes
2
answers
253
views
Vim over SSH problem when connecting from a RHEL 8 to a remote macOS Sonoma
When I connect to a remote macOS Sonoma from a Linux RHEL 8 with ssh -J user@portal user@mac and, once connected, I run vim somefile, I get some extraneous characters at the top-left of the "page&...
2
votes
1
answer
1k
views
How to generate a termcap string from a compiled terminfo file?
The thread's title pretty much says it all.
When I googled this question, I found mentions of a program called untic that supposedly does what I want to do, but this program does not seem to be ...
2
votes
0
answers
173
views
How to systematically troubleshoot a broken gnu-screen installation?
I recently started to work in a shared Linux cluster that a version of gnu-screen that I consider unacceptably old (4.01, from 2006).
I was not able to convince the system's administrators to install ...
0
votes
1
answer
503
views
How does `tput` detect color support
I am trying to make my shell script supporting as much terminals as possible, that is, adding ANSI colors, bold and dim only when supported. However, I want to detect the number of colors supported. ...
0
votes
3
answers
455
views
Linux 9 commands send ANSI/color sequences to monochrome terminal
I'm using a Wyse50 Terminal emulation on Rocky Linux 9. Man pages, help screens, etc., are unusable because the system outputs attribute and color codes that the terminal emulator doesn't understand;...
0
votes
1
answer
454
views
Ask a terminal whether a glyph is defined by a font vs. directly in its own source code?
Many modern terminal emulators include definitions for box drawing glyphs directly in their own source code, and disregard the versions provided by the font when rendering the display. Is there a ...
1
vote
0
answers
186
views
is there a list of minimum term capabilities for dialog(ncurses)?
I'm trying to write some code using the ncurses dialog library (available everywhere, source mirror is here) and I'm trying to decide dynamically in code whether to use dialog or just print to stderr ...
0
votes
1
answer
594
views
in tmux bind MENU key to prefix but it is giving me "bad key bind error"
i just started using tmux and have been trying to bind my MENU key to prefix but it is giving me "bad key bind error", it would be nice to know what keys are valid or what to write in the ...
1
vote
1
answer
390
views
What is the closest xterm-like $TERM setting that does not have an alternate screen? [duplicate]
Some terminal applications (e.g. mosh) use the terminal in the alternate screen, thereby disabling the terminal emulator's local scrolling. mosh does not allow overriding its terminal settings (as far ...
-1
votes
2
answers
388
views
terminal-emulator settings controlling the rendering of bold typeface
The effect of bold typeface (ANSI: CSI 1 m) seems to depend on the terminal emulator. For example, running the following script on different terminal emulators
#!/bin/sh
echo "TERM = $TERM"
...
1
vote
1
answer
455
views
terminfo/termcap `tput bold`/`tput md`: portability of bold text
Suppose I have the following color support in one of my portable shell scripts:
#!/bin/sh
set -o nounset
tput_init_linux () { set_fg_color='tput setaf'; reset_color=$(tput sgr0 2>/dev/null); }
...
6
votes
1
answer
7k
views
TERM=tmux-256color causes "Error opening terminal"
I want to enable italics in tmux (inside iTerm2 on macOS Big Sur 11.3). I have achieved this by setting this in .tmux.conf
set -g default-terminal "tmux-256color"
And I have installed ...
5
votes
1
answer
4k
views
How to list and delete terminfo?
I have installed some custom terminfo with tic command. How do I list all terminfo in the database (e.g. with infocmp) and how to delete specific terminfo?
Here's my idea as of right now:
On Linux, ...
1
vote
2
answers
395
views
Get terminal status for termcap capabilities
How can one retrieve status of terminal settings like smam and rmam ?
Reason is that I set rmam by:
tput rmam
in script, then proceed to set smam on exit:
tput smam
But if terminal has rmam set when ...
6
votes
1
answer
3k
views
What is the difference between "xterm-256color" and "putty-256color"
As the title asked, what's the difference?
When should I use one or the other?
Also, anyone got a "canonical" definition of putty-256color's termcap/terminfo? Google had been less than ...