You are not logged in.
Pages: 1
I am curious to know what I can actually do with the x1b shell escapes. I tried seeking with google but I did not found an exaustive site,
Only pieces of info about colors, clearing screen ect.
Do you know a good informative place?
Offline
Please explain what these x1b escapes do. Searching by some arbitrary code never works... as such, I have no idea what you're talking about, so cannot comment until I have further info.
Offline
x1b appears to be the the escape character, which is more commonly referred to as e or E.
I recommend infocmp -1L for the instructions your current terminal is likely to understand. Use curses for anything serious.
Offline
Thanks Leffe, infocmp is nice. But actually not much human readable.
The line
set_foreground=E[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
lemme guess I can set the foreground of shell lines. But it does not say much...
Offline
man bash
then enter
/-e
and press Enter.
For ANSI codes:
http://www.bluesock.org/~willg/dev/ansi.html
http://www.fh-jena.de/~gmueller/Kurs_ha … vt100.html
to live is to die
Offline
better:
man console_codes
man 7 urxvt
There's probably alot more - mostly escape codes beyond colors and simple things are terminal specific.
Offline
Thanks Leffe, infocmp is nice. But actually not much human readable.
The line
set_foreground=E[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
lemme guess I can set the foreground of shell lines. But it does not say much...
The setf command (listed above) translates to the setaf command, which is defined as thus: setaf=E[3%p1%dm Consider the %p1%d the color number and the rest is to be copied verbatim.
The long setf command switches two colors, and the terminfo manpage has the reason.
I wonder why it is possible to do something like E[33;44m, which switches both foreground and background. Perhaps it's like that for all commands...?
Offline
Those are the kind of answers I love.
Thanks a lot guys!
Offline
Pages: 1