"Shawn Walker" <[EMAIL PROTECTED]> wrote:

> On 18/11/2007, Thommy M. Malmström <[EMAIL PROTECTED]> wrote:
> > > Thommy M. Malmström wrote:
> > > > Seems as if there was a change in default behaviour
> > > of the less command between b72 and b76. It now
> > > clears the screen at exit which I find most annoying.
> > > Or is it the GNOME terminal that has changed???
> > > >
> > > > Anyway, why have the behaviour changed???
> > >
> > > The terminfo data for terminal type "xterm" changed.
> > > 6569261 xterm, xtermc, xterm-color: smcup/rmcup
> > > definitions are incorrect/missing
> >
> > Looks like someone has tried to fix something that wasn't broken... :-(
>
> Why do you assume this?

Maybe you do not know how terminfo/termcap works.

Let me add the output of my "cap" program that disaccembles termcap (terminfo 
is pretty much the same). Look at the init and reset strings to understand that
it is the decision of the creator what to put into the reset string.

tbuf: 'x1|xterm|vs100|xterm terminal emulator (X Window System)'
'am' -> TRUE            terminal has automatic margins
'xn' -> TRUE            newline ignored after 80 cols (concept)
'km' -> TRUE            Has a meta key, sets msb high
'mi' -> TRUE            safe to move while in insert mode
'ms' -> TRUE            safe to move while in standout mode
'co' -> 80              number of columns in a line
'li' -> 65              number of lines on screen or page
'cs' -> '\E[%i%d;%dr'           change region to line #1 to line #2 (P)
'ct' -> '\E[3k'         clear all tab stops (P)
'cl' -> '\E[H\E[2J'             clear screen and home cursor (P*)
'ce' -> '\E[K'          clear to end of line (P)
'cd' -> '\E[J'          clear to end of screen (P*)
'cm' -> '\E[%i%d;%dH'           move to row #1 columns #2
'ho' -> '\E[H'          home cursor
'nd' -> '\E[C'          move right one space
'up' -> '\E[A'          up one line
'dc' -> '\E[P'          delete character (P*)
'dl' -> '\E[M'          delete line (P*)
'md' -> '\E[1m'         turn on bold (extra bright) mode
'ti' -> '\E7\E[?47h'            string to start programs using cursor_address
'im' -> '\E[4h'         enter insert mode
'mr' -> '\E[7m'         turn on reverse video mode
'so' -> '\E[7m'         begin standout mode
'us' -> '\E[4m'         begin underline mode
'me' -> '\E[m'          turn off all attributes
'te' -> '\E[2J\E[?47l\E8'               strings to end programs using cup
'ei' -> '\E[4l'         exit insert mode
'se' -> '\E[m'          exit standout mode
'ue' -> '\E[m'          exit underline mode
'is' -> '\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l'              initialization 
string
'al' -> '\E[L'          insert line (P*)
'kb' -> '\b'            backspace key
'kd' -> '\EOB'          down-arrow key
'k1' -> '\EOP'          F1 function key
'k2' -> '\EOQ'          F2 function key
'k3' -> '\EOR'          F3 function key
'k4' -> '\EOS'          F4 function key
'kl' -> '\EOD'          left-arrow key
'kr' -> '\EOC'          right-arrow key
'ku' -> '\EOA'          up-arrow key
'ke' -> '\E[?1l\E>'             leave 'keyboard_transmit' mode
'ks' -> '\E[?1h\E='             enter 'keyboard_transmit' mode
'DC' -> '\E[%dP'                delete #1 chars (P*)
'DL' -> '\E[%dM'                delete #1 lines (P*)
'DO' -> '\E[%dB'                down #1 lines (P*)
'IC' -> '\E[%d@'                insert #1 chars (P*)
'AL' -> '\E[%dL'                insert #1 lines (P*)
'UP' -> '\E[%dA'                up #1 lines (P*)
'rc' -> '\E8'           restore cursor to last position of save_cursor
'sc' -> '\E7'           save current cursor position (P)
'sf' -> '\n'            scroll text up (P)
'sr' -> '\EM'           scroll text down (P)
'rs' -> '\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l\E<'           terminal reset 
string
OBSOLETE 'pt' -> TRUE           has 8-char tabs invoked with ^I
OBSOLETE 'bs' -> TRUE           uses ^H to move left
OBSOLETE 'kn' -> 4              count of function keys
Jörg

-- 
 EMail:[EMAIL PROTECTED] (home) Jörg Schilling D-13353 Berlin
       [EMAIL PROTECTED]                (uni)  
       [EMAIL PROTECTED]     (work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily
_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to