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
0
votes
0 answers

Is it possible to configure ncurses to hardcode a terminfo path relative to the executable instead of an absolute path?

I am building ncurses from source (and then linking my application to it) as part of the build process for my application, and I have observed that the built binaries have the absolute path of the custom terminfo hardcoded into them. This absolute…
merlin2011
  • 71,677
  • 44
  • 195
  • 329
0
votes
0 answers

DeleteCriticalSection could not locate dll

I am trying to recompile an old Win32 software package in order to bring small modifications. The package is part of the MT SDK from Xsens and allows to get output from a inertial sensor (available here…
edgar
  • 1
  • 2
0
votes
1 answer

How to get white (or other) color on FBTERM and CURSES without scrambling BOX drawing characters?

My question & current states: I'm writing TUI software that is on fbterm using python-curses library. My objective here is to get some colors, most importantly PURE WHITE color. My current state: Instead of white, I'm getting somewhat gray color…
Garid
  • 105
  • 1
  • 3
0
votes
1 answer

How to get 256 color support for FreeBSD headless console/terminal?

How can I get 256 color support on FreeBSD 13 headless machine using console/terminal? I have an overkill GPU "AMD Radeon PRO WX 2100" installed to the machine. Basically want to avoid a desktop environment since I only need to use the machine…
Max Dax
  • 49
  • 3
0
votes
1 answer

Disabling git colors only when I log in from certain terminals

Question I want git to automatically colorize the output when it is going to a device that can handle color and not colorize it when it cannot. How would one do this? Background I sometimes develop code for older machines using the machines…
hackerb9
  • 1,545
  • 13
  • 14
0
votes
2 answers

What is the meaning of special character sequences like `\027[0K`?

I found this commit from facebook infer, and I have no idea what \027[0K and \027[%iA means. What does these special string mean? And (I think) if there are more strings like this, where can I find the full documentation about this?
sangwoo-joh
  • 127
  • 6
0
votes
1 answer

tmux color profile (-2) when starting in iterm2 or other places

I am using iTerm2 with tmux and invoke it by doing: tmux -CC new -s MySession I was wondering if there is any use in doing something like -2 when invoking tmux in iTerm2, or if that takes care of all of the color-profiles, tmux -2 -CC new -s…
David542
  • 104,438
  • 178
  • 489
  • 842
0
votes
1 answer

SIGWINCH, bash, dash, tput, and terminfo

I'm a little confused about the interaction between tput and terminal sizes. It seems that the behavior of tput depends on the shell under which it is invoked, or perhaps the shell is responsible for changing terminal settings, or.... something. …
William Pursell
  • 204,365
  • 48
  • 270
  • 300
0
votes
2 answers

Get terminal contents

Is it possible to get a snapshot of the text contents of a Linux terminal? Both tput and terminfo support "cup" mode (e.g. tput smcup to start alternate buffer mode) which implies they must save the screen state somewhere. Is it possible to get…
hash-bang
  • 492
  • 1
  • 4
  • 9
0
votes
0 answers

Type conversion `operator` function returning pointer to function

I wanted a means of allowing terminfo escape sequences (esp. resulting from calls to tparm()) to be stored in strings, so I wrote this wrapper class. class tputs_wrapper { private: static string *current; public: using…
Paulo1205
  • 918
  • 4
  • 9
0
votes
1 answer

How to print without loosing current input in linux terminal?

So lets say we have a c program that runs in a linux terminal that continuously needs to print information. Buy also at the same time you have to be able to input text. The program has a prompt that says program> so every time that the program…
Dreamable
  • 1
  • 1
0
votes
1 answer

Print out a terminfo entry including capname descriptions?

What's the most straightforward way to print out a terminfo entry (e.g., for my current terminal: xterm-256color) that includes the short descriptions of each capname from the terminfo man page? I know how to print out the terminfo entry for my…
jomoz
  • 19
  • 4
0
votes
2 answers

How do I fix opening terminal error with c++ ncurses

I'm using CLion 2018.2.6 on MacOS. I'm trying to use ncurses but getting the error "Error opening terminal: unknown." I'm not sure how to fix this. Any help appreciated. Code below. #include #include using namespace…
0
votes
1 answer

Recognize linux distribution in conan

I created a Ncurses conan package for some projects where I use Ncurses. I use a conanfile.py for configuration. Now I have the problem that under Centos terminfo is in /usr/lib and under Debian-based system it is in /lib. Therefor I have to set an…
Thomas Sablik
  • 16,127
  • 7
  • 34
  • 62
0
votes
1 answer

_curses.error: setupterm: could not find terminal, Raspberry Pi

Every time I run this script on my Raspberry Pi: import curses import RPi.GPIO as GPIO GPIO.setwarnings(False) GPIO.setmode(GPIO.BOARD) motor1a = 7 motor1b = 11 motor1e = 22 motor2a = 13 motor2b = 16 motor2e =…
1 2 3
8 9