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 [termcap]

The termcap database is an obsolete facility for describing the capabilities of character-cell terminals and printers. It is retained only for capability with old programs and new programs are supposed to use terminfo

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 ...
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' | ...
0
votes
1answer
200 views

Bright background in termcap

I'm trying to get a program I'm running to display a bright colored background, but the program won't apply the brightness increase, it instead shows a 'normal' colored background. Let me add some ...
-2
votes
1answer
102 views

Is there a difference between declaring a terminal (e.g. xterm-256colors) via $TERM vs. from terminal program?

By default, Putty identifies itself as "xterm" terminal type, but it's possible to change its settings so it identifies itself as "xterm-256colors". As far as I understand, this is done by setting "$...
3
votes
0answers
387 views

Change Search Highlight Color In Less

I am a bit lost here on customizing the search/find highlight color or font format if you will. I understand that using LESS_TERMCAP_* we can alter the font format of less display. Full capabilities ...
2
votes
1answer
971 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 ...
8
votes
2answers
902 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 ...
4
votes
2answers
363 views

How to hide fullscreen CLI program output in xterm on FreeBSD?

When I use a fullscreen CLI program on Ubuntu (like less or vim) in xterm and then quit it, the fullscreen output of that program is not visible anymore. However, when I do the same on FreeBSD, the ...
1
vote
1answer
158 views

openSuSE termcap settings

For some reason under openSuSE Tumbleweed I am unable to use different termcap entries. To be specific, I'm trying to use the pcansi-25 termcap entry. Anyone know why it's behaving like this?
6
votes
1answer
912 views

Origin of /etc/termcap linux entry

Why is there a type of $TERM called linux described in /etc/termcap? Why and when was it created and what's the point of it? Couldn't we just stay with vt-generic? Is linux just a customary name and a ...
2
votes
2answers
600 views

Alternate screen on FreeBSD's sc and vt

By default, FreeBSD's virtual terminals (sc and vt) don't restore previous terminal content when exiting from a full screen app. Is there a support for this functionality? I've tried following ...
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. ...
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 ...
12
votes
1answer
3k views

page up in gnu screen with Shift-PageUp [duplicate]

In the Linux terminal the key sequence Shift-PageUp can often be used to scroll up. However, this key sequence doesn't seem to work in gnu screen when ssh'ing to particular machines. I have two ...
3
votes
1answer
435 views

Cursor movement related tput commands under zsh: can the 'clear' behavior be configured?

Using the zsh shell, I've noticed a difference in the behavior of the tput command compared to bash. For instance With zsh, if you have many things output to a terminal emulator window and you're at ...
35
votes
2answers
9k views

Documentation on LESS_TERMCAP_* variables?

I see these pretty colors in manpages viewed with less when setting a bunch of these variables. What do they mean, where is the documentation? Is this interpreted by less or termcap? screenshot
3
votes
2answers
674 views

GNU Screen: Strange TERMCAP when using -d -m

Depending on how I run screen, it either does or does not have the right TERMCAP info. The symptom of this is that colors don't always show up in my terminal correctly (eg: ls, vim syntax highlighting,...
64
votes
3answers
9k views

Is there any way to exit “less” without clearing the screen?

Relatively often, I find myself wanting to quit less but leave what I was viewing on the screen, to refer back to. Is there any way to do this? Workarounds? (My current workaround is to quit, then ...
8
votes
2answers
3k views

Colored man pages not working on gentoo

I have a problem using these methods to get colors in my man pages in gentoo. I've asked already in the gentoo forums but it still doesn't work, and the comments in a bug report (Bug 184604) don't ...
3
votes
1answer
357 views

vi mode doesn't display correctly on new term

This is a continuation of my previous questions. I currently have the following in ~/.zsh.d/functions.sh function zle-line-init zle-keymap-select { psvar[1]="${${KEYMAP/vicmd/}/(main|viins)/-- ...
62
votes
7answers
24k views

Colors in Man Pages

When I look at a man page in my 'console' (not an xterm) I see some coloration, but I don't get this in my xterm's (e.g. konsole) is there any way I can enable this? hopefully a fairly simple solution?...