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
Questions tagged [termcap]
33 questions
105
votes
4 answers
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 use more. So any workaround that's better than that…
Steve Bennett
- 2,203
- 6
- 21
- 25
90
votes
8 answers
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?
xenoterracide
- 57,918
- 74
- 184
- 250
64
votes
2 answers
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
anselm
- 743
- 1
- 6
- 5
16
votes
5 answers
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 is cleared, I can just scroll to top, and will be…
Anthony
- 567
- 1
- 5
- 14
12
votes
1 answer
page up in gnu screen with Shift-PageUp
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 questions. 1) Where is this key sequence defined? 2)…
illabout
- 389
- 3
- 10
11
votes
2 answers
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 work either. Can someone help me to get colours in…
Vicfred
- 284
- 4
- 12
10
votes
2 answers
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 keychord is not in terminfo?
$ infocmp -1 | grep…
Igor Liferenko
- 703
- 4
- 16
9
votes
1 answer
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 are here.
But I couldn't get how to change the…
joker
- 574
- 6
- 14
7
votes
1 answer
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 set of capabilities for a Linux console (like,…
user1042840
- 819
- 1
- 7
- 15
6
votes
3 answers
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 fullscreen output just stays there, above the line…
Zedfrigg
- 63
- 4
4
votes
1 answer
How can I make screen go down a line AND start at the beginning when receiving only CR from a serial device?
I am connecting to a serial port using screen: screen /dev/cu.usbserial-A703XAOG. The device on the other end sends only a carriage return to separate lines. Screen only starts at the beginning of the line when receiving a carriage return, and does…
Michiel van Oosterhout
- 175
- 6
4
votes
1 answer
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' | awk -v bold="$bold" -v reset="$reset" -v…
x-yuri
- 3,223
- 10
- 39
- 62
3
votes
2 answers
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, etc).
This works fine:
$ echo $TERMCAP
jwd
- 1,282
- 8
- 12
3
votes
1 answer
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 helpful for searching that. Heck, Google had been less than…
pepoluan
- 1,303
- 2
- 15
- 26
3
votes
6 answers
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.
DDEESSCCRRIIPPTTIIOONN
_L_e_s_s is a program similar to _m_o_r_e…
1.61803
- 1,201
- 2
- 15
- 23