Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

-1
votes
1answer
41 views

Emacs with 24bit terminal support on FreeBSD

I'm trying to enable 24bit support on the terminal (via SSH) on my FreeBSD 12 installation without success. I tried to create a terminfo file with the contents: xterm-24bit|xterm with 24-bit direct ...
0
votes
2answers
54 views

How to hide text cursor without shell?

I am curious, is there a way to hide the cursor right before it will be placed at the top left corner of the terminal emulator? And do it independently of terminal emulator (not modifying the source ...
1
vote
2answers
97 views

Can you interactively modify the terminal reset in 'less'?

I usually do not want to reset the terminal when I exit less (that is, I want the screen to continue displaying what I was looking at). Usually, when I'm on a new box and haven't configured it yet, I ...
2
votes
1answer
109 views

Logging into remote shells from Konsole on Debian 9 results in “‘screen.xterm-256color’: unknown terminal type”,

Before I go into the detail of my problem there is a debian mailing list which seem to explain the cause- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=854414 After installing Debian 9, logging ...
0
votes
1answer
2k views

How to set the background color of the Linux console screen?

Note: I reworked the question to clarify the issues. This is a trivial question that can be answered in several parts because the question has several attributes. Unfortunately, the question may be ...
0
votes
0answers
106 views

Custom cl termcap causes vim freeze inside gnu screen

I was concerned about the terminal scroll inside screen, besides I have configured altscreen on it only affects some programs, not taking any effect when switching between windows. I know printf '\...
2
votes
1answer
78 views

Why do I not need to reset text attributes with less?

This script outputs 5 lines with the third one being underlined: #!/usr/bin/env bash set -eu bold=$(tput bold) reset=$(tput sgr0) underline=$(tput smul) echo 'line 1 line 2 line 3 line 4 line 5' | ...
2
votes
1answer
970 views

The easiest way to clear scrollback buffer of terminal + some deeper explanation?

Why bother? Clearing scrollback buffer is handy in many ways, for example, when I wish to run some command with long output, and want to quickly scroll to start of this output. When scrollback buffer ...
1
vote
2answers
826 views

Why isn't screen on macOS picking up my ~/.terminfo?

I'd like to get Terminfo for my terminal (rxvt-unicode) working, so that when I ssh from Linux to macOS, the Home/End and other keys work properly. Usually, to accomplish this with a Linux remote ...
6
votes
2answers
1k views

Terminal escape sequences: why don't terminals report what features they support, instead of relying on terminfo?

I've been looking into escape sequences lately, and I'm surprised of what they can do. You can even move an xterm X11 window with them (try printf '\e[3;0;0t'), wow! The most common way to know what ...
1
vote
1answer
63 views

Why terminfo entries do not follow convention?

terminfo database contains entries, describing "application mode". By convention, entries which correspond to buttons, pressed on keyboard, start with \EO (this is done so that applications which do ...
2
votes
2answers
113 views

Comparing current terminfo database against a terminfo source file

How can we compare all available terminfo entries (full current compiled database) against a terminfo source file ? The infocmp utility has the -F option but it needs two files to be compared, but ...
8
votes
2answers
901 views

Why END key does not have terminfo entry?

On a Debian system pressing END key generates ^[[F: $ showkey -a Press any keys - Ctrl-D will terminate this program ^[[F 27 0033 0x1b 91 0133 0x5b 70 0106 0x46 But why this ...
2
votes
1answer
174 views

Solaris 11 and vim F instead of end

I'm on Solaris 11 This is My .vimrc set nohlsearch set mouse="" set paste set showmode set ruler set clipboard=unnamedplus setlocal cm=blowfish2 set nocompatible set backspace=indent,eol,start set ...
3
votes
1answer
730 views

terminfo disable XON/XOFF

I can disable XON/XOFF flow control: stty -ixon So I put this in my "~/.profile". However I have started making my own terminal with "terminfo" and "tic", and I noticed these options: xon_xoff ...
0
votes
3answers
832 views

get all file names in subdirectories

I need to get all file names, not including the paths eg file1 is correct and ./folder/file1 is incorrect, from subdirectories. My use case is retrieving all available terminfo file names which are ...
0
votes
1answer
694 views

How to use terminfo to set colors for man and less?

I saw this question where the answerer uses termcap to define colors for less which then could be used for how man could be displayed. It said while termcap is obsolete, it's easier while terminfo is ...
2
votes
3answers
1k views

How to determine the character encoding that a terminal uses in a C/C++ program?

I've noticed that SyncTERM uses a different character encoding than the default MacOS terminal emulator, and they're incompatible with one another. For example, say you want to print a block ...
2
votes
1answer
609 views

Is there a way to provide “overrides” to a terminfo entry?

At least in Linux, on RedHat, the provided xterm terminfo entry is buggy: for whatever reason, they use an initialization sequence via is2 capability that forces an 80-column screen (See CSI ? n l). ...
6
votes
2answers
2k views

How can I use terminfo entries on FreeBSD?

On my local Linux machine, I'm using termite (VTE-based). It comes with its own terminfo file (xterm-termite), which is not distributed with ncurses by default. I try to connect to a remote FreeBSD ...
3
votes
1answer
2k views

Save cursor position and restore it in terminal

I am playing with some terminal capabilities to create async prompt output on bash. I want to get something like this: while outputting string in PROMPT_COMMAND, save terminal cursor position, print ...
5
votes
2answers
339 views

Parse terminfo u6 string

Looking at terminfo and Parameterized Strings. Some examples from infocmp -1 xterm: cud=\E[%p1%dB, given argument 13: \E =><ESC> [ => [ %p1 PUSH parameter 1 (13) onto stack %d POP and print ...
3
votes
5answers
4k views

How can I get the raw formatting output of commands?

I'd like to know which control sequences are sent to bash by programs to format their outputs. For example, if I dump man less I can discern which parts are bold or underlined. ...
8
votes
1answer
2k views

How can I pass function keys to htop in a tty?

I'm trying to use htop in tty1. However, some of the function keys don't appear to work as normal. F1 and F2 do nothing, and F3 seems to trigger setup (which should normally be triggered by F2). In ...
1
vote
1answer
488 views

How can I see if termcap or terminfo was used and how to change between them?

When I login to a remote machine (Debian Wheezy in my case) using SSH with Putty (in my case with default xterm), how can I check if the terminal defintion from termcap or from terminfo was used? What ...
0
votes
1answer
75 views

term definitions not found

I am trying to select best term for UNIX terminal , checked the term information post , but when I try to get information about ls /lib/term* its not defined. However I did find ls /lib/libtermcap....
0
votes
2answers
4k views

A set of libraries like ncurses in a shell script

Supose you present the following TUI in the shell: I need a set of libraries that can be used in the shell to do it. Being sure, ncurses has not been used, because it make a dependecy. Question: How ...