[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: LYNX-DEV What is the difference?
From: |
T.E.Dickey |
Subject: |
Re: LYNX-DEV What is the difference? |
Date: |
Mon, 14 Jul 1997 05:40:52 -0400 (EDT) |
> Have pity I guess is what I'm saying, but let me ask a question whose
> answer might be useful to others on the list. Is there a document on
> the web somewhere of the take-your-hand and guide-you-through-step-by-
> step cookbook type that shows how to write custom terminfo descriptions?
> The man documentation I've found to be too cryptic.
Actually, I've had no particular problem with the SVr4 man pages - though
they don't go into much detail on color, there're enough working descriptions
in the terminfo database that it's not difficult to look at those, paste
the pertinent expressions into a new description and go from there. Since
there's only a couple of flavors for ANSI- and ANSI-like terminals that are
interesting, there's not a lot to look at (no more than a few dozen terminal
types, in fact, have color in their descriptions).
The disadvantage of a set of hardcoded tables (to fill in the gaps) is that
the table is almost as frequently applied incorrectly as it is used properly.
The O'Reilly book "Termcap & Terminfo" covers the whole topic - again, except
for color.
Use 'infocmp' to see what is in a description. This is "infocmp -1 -L xtermc"
on Solaris. (The reverse program, tic, compiles descriptions from source).
# Reconstructed via infocmp from file: /usr/share/lib/terminfo/x/xtermc
Terminal type xtermc
xtermc|xterm terminal emulator (color) @(#)xterm.ti 1.3
flags
auto_right_margin
eat_newline_glitch
has_meta_key
move_insert_mode
move_standout_mode
numbers
buttons = 3
columns = 80
init_tabs = 8
lines = 24
max_colors = 8
max_pairs = 64
no_color_video = 7
strings
acs_chars = '``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~'
bell = '^G'
carriage_return = '\r'
change_scroll_region = '\E[%i%p1%d;%p2%dr'
clear_all_tabs = '\E[3g'
clear_screen = '\E[H\E[2J'
clr_bol = '\E[1K$<3>'
clr_eol = '\E[K'
clr_eos = '\E[J'
cursor_address = '\E[%i%p1%d;%p2%dH'
cursor_down = '\n'
cursor_home = '\E[H'
cursor_left = '\E[1D'
cursor_right = '\E[C'
cursor_up = '\E[A'
delete_character = '\E[P'
delete_line = '\E[M'
ena_acs = '\E(B\E)0'
enter_alt_charset_mode = '^N'
enter_blink_mode = '@'
enter_bold_mode = '\E[1m'
enter_ca_mode = 'address@hidden@1'
enter_reverse_mode = '\E[7m'
enter_standout_mode = '\E[7m'
exit_alt_charset_mode = '^O'
exit_attribute_mode = '\E[m^O'
exit_ca_mode = 'address@hidden'
exit_standout_mode = '\E[m'
get_mouse = '\E[%p1%dY'
insert_character = '\E[@'
insert_line = '\E[L'
key_a1 = '\EOq'
key_a3 = '\EOs'
key_b2 = '\EOr'
key_backspace = '\b'
key_c1 = '\EOp'
key_c3 = '\EOn'
key_down = '\EOB'
key_end = '\E[Y'
key_enter = '\EOM'
key_f0 = '\EOy'
key_f1 = '\EOP'
key_f10 = '\EOY'
key_f11 = '\EOZ'
key_f12 = '\EOA'
key_f2 = '\EOQ'
key_f3 = '\EOR'
key_f4 = '\EOS'
key_f5 = '\EOT'
key_f6 = '\EOU'
key_f7 = '\EOV'
key_f8 = '\EOW'
key_f9 = '\EOX'
key_home = '\E[H'
key_left = '\EOD'
key_mouse = '\E[^_'
key_npage = '\E[U'
key_ppage = '\E[V'
key_right = '\EOC'
key_up = '\EOA'
orig_pair = '\E[100m'
parm_dch = '\E[%p1%dP'
parm_delete_line = '\E[%p1%dM'
parm_down_cursor = '\E[%p1%dB'
parm_ich = '\E[%p1%d@'
parm_insert_line = '\E[%p1%dL'
parm_left_cursor = '\E[%p1%dD'
parm_right_cursor = '\E[%p1%dC'
parm_up_cursor = '\E[%p1%dA'
req_mouse_pos = '\E[492Z'
reset_1string = '\E>\E[1;3;4;5;6l\E[?7h\E[m\E[r\E[2J\E[H'
reset_2string = '\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h'
restore_cursor = '\E8'
save_cursor = '\E7'
scroll_forward = '\n'
scroll_reverse = '\EM'
set_a_background = '\E[4%p1%dm'
set_a_foreground = '\E[3%p1%dm'
set_attributes =
'\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t^N%e^O%;'
set_background =
'\E[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m'
set_foreground =
'\E[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m'
set_tab = '\EH'
tab = '\t'
end of strings
--
Thomas E. Dickey
address@hidden
http://www.clark.net/pub/dickey
;
; To UNSUBSCRIBE: Send a mail message to address@hidden
; with "unsubscribe lynx-dev" (without the
; quotation marks) on a line by itself.
;
- Re: LYNX-DEV What is the difference?, (continued)
- Re: LYNX-DEV What is the difference?, Laura Eaves, 1997/07/11
- Re: LYNX-DEV What is the difference?, Nelson Henry Eric, 1997/07/11
- Re: LYNX-DEV What is the difference?, John E. Davis, 1997/07/11
- Re: LYNX-DEV What is the difference?, Nelson Henry Eric, 1997/07/12
- Re: LYNX-DEV What is the difference?, John E. Davis, 1997/07/12
- Re: LYNX-DEV What is the difference?, Nelson Henry Eric, 1997/07/13