Questions tagged [terminfo]

Terminfo is a database of terminal capabilities use by applications that require information about the terminal's features.

Terminfo is a data base describing terminals, used by screen-oriented programs such as nvi(1) and rogue(1).

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.

127 questions
4
votes
2 answers

Rails 7 IRB console inserts escape key instead of execute delete command

I am using Mac OS and since latest rails version the delete key does not work anymore. ❯ rails -v Rails 7.0.4 ❯ ruby -v ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [arm64-darwin21] When I hit delete instead of removing the char and the current…
YvesR
  • 5,922
  • 6
  • 43
  • 70
4
votes
1 answer

Screen truecolor Ubuntu 18.04 broke

One of the few pieces of software that I compile myself is screen. I've found it tends to support some modern features of terminals better than the version in the repositories. I've been doing this for some time now without too much of an issue.…
James
  • 630
  • 1
  • 6
  • 15
4
votes
1 answer

Read screen character from terminal

As far I researched, terminfo/termcap and ioctl don't allow to query character at (x,y) position on terminal's screen. This is rather unexpected, because: one can read e.g. screen dimensions from terminal (e.g. tput co, tput li), one can read input…
Rob Luca
  • 153
  • 10
4
votes
2 answers

directly using terminal capabilities

Does anyone use terminfo capabilities functions like tputs(), tparm(), tigetstr(), tigetnum() directly anymore? I can't find any practical examples online with these low-level terminal functions. Does everyone uses ncurses library to control…
lychee
  • 1,771
  • 3
  • 21
  • 31
4
votes
3 answers

How to remove terminal control escape sequences in the file?

I got a log from remote linux computer. It looks like: 2013-10-23T08:19:05+0300 Last login: Wed Oct 23 08:17:38 EEST 2013 from 10.9.167.55 on pts/0 2013-10-23T08:19:05+0300 Last login: Wed Oct 23 08:19:05 2013 from 10.9.167.55^M …
Jeff7566
  • 432
  • 1
  • 5
  • 20
3
votes
0 answers

Mercurial: no terminfo entry for setab/setaf

I am SSHing from macOS into Windows and using Mercurial remotely. Whenever I run any hg command, I'm getting a bunch of warnings, starting with no terminfo entry for setab/setaf: reverting to ECMA-48 color warning: failed to set color mode to…
Deling Ren
  • 87
  • 4
3
votes
1 answer

Termcaps for log-like terminals such as github/gitlab CI environments

GitLab and GitHub both support coloring their output with escape sequences. But GitLab (I didn't test the default TERM value in GitHub) sets TERM=dumb which is a good default, but techincally incorrect, I guess, as it is misleading about the…
nponeccop
  • 13,527
  • 1
  • 44
  • 106
3
votes
3 answers

Get terminal position from Ruby

There has absolutely got to be a better way to do this. temp_file ||= Tempfile.new() system("stty -echo; tput u7; read -d R x; stty echo; echo ${x#??} > #{temp_file.path}") temp_file.gets.chomp.split(';').map(&:to_i) Basically, I'm running the bash…
prater
  • 2,330
  • 1
  • 17
  • 15
3
votes
1 answer

Color codes for tput setf

I am sourcing a file with this content export fgBlack8="$(tput setf 0)"; export fgRed8="$(tput setf 1)"; export fgGreen8="$(tput setf 2)"; export fgYellow8="$(tput setf 3)"; export fgBlue8="$(tput setf 4)"; export fgMagenta8="$(tput setf 5)"; export…
Benj
  • 889
  • 1
  • 14
  • 31
3
votes
3 answers

Strange problems with TERM=Apple_Terminal on macOS Sierra 10.12.3

I upgraded my MacBookPro to macOS Sierra and experienced a very odd behavior. First, I used brew to install sbt as suggested in the doc: http://www.scala-sbt.org/download.html Here's a simple test: cd /tmp; echo $TERM; mkdir AT; cd AT; sbt -no-share…
3
votes
1 answer

read little endian 16 bit unsigned integer

I'm looking into parsing terminfo database files, which are a type of binary files. You can read about its storage format by your own and confirm the problem I'm facing. The manual says - The header section begins the file. This section contains …
Abhinav Gauniyal
  • 7,034
  • 7
  • 50
  • 93
3
votes
1 answer

terminfo seems to not work in csh

I want to use screen-256color term and my system does not have one, so I compiled it in my home dir. Following is my problem xxxx: ~/.terminfo > tree . |-- s | `-- screen-256color `-- x `-- xterm-256color 2 directories, 2 files xxxx:…
3
votes
3 answers

determining terminal's ability to format output?

Hullo - If I want to determine the # of colours a terminal can display I simply read the output of tput colors ... however I cannot figure out how to determine if the terminal I'm writing to can support other formatting requests such as bold,…
Dave Carpeneto
  • 1,042
  • 2
  • 12
  • 23
2
votes
1 answer

Why terminfo breaks my build on lack of versioned symbols in libtinfo.so?

terminfo-0.4.1.4 breaks a build of hls not finding a specific version of some symbols from libtinfo.so, one of them being tigetnum. There is also this warning, which I see when building other programs: /lib64/libtinfo.so.5: no version information…
Kamil
  • 23
  • 4
2
votes
1 answer

CMake error in FindTerminfo with clang-15 on MacOS

I'm using llvm in my project and find it with cmake's find_package(LLVM REQUIRED CONFIG). Configuration fails with message: [cmake] CMake Error at /Applications/CMake.app/Contents/share/cmake-3.23/Modules/Internal/CheckSourceCompiles.cmake:44…
gavrilikhin.d
  • 554
  • 1
  • 7
  • 20
1 2
3
8 9