This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: save/restore the console buffer.


On Sun, Aug 26, 2001 at 11:27:44AM +0900, Kazuhiro Fujieda wrote:
>>>> On Sat, 25 Aug 2001 21:05:56 -0400
>>>> Christopher Faylor <cgf@redhat.com> said:
>
>>Huh.  Good point.  I think that vim used to do the right thing.  Did
>>something change?  It works fine with less.
>
>Less is compiled not with ncurses but termcap.  The /etc/termcap in the
>current termcap package doesn't has `ti' and `te' capabilities for
>cygwin, so less doesn't use the feature at all.

I just released a new version of termcap with this feature.  I'd built
one of these some time ago when Corinna first added this capability and
forgot to release it.  That's why things work for me.

When I add these to the cygwin entry for terminfo, vim works fine,
too.

I've included the terminfo entry that I used below.

The change the terminfo database, just extract the file
'cygwin-terminfo' and type 'tic cygwin-terminfo'.

cgf
#	Reconstructed via infocmp from file: /usr/share/terminfo/c/cygwin
cygwin|ansi emulation for Cygwin, 
	am, eo, mir, msgr, xon, 
	colors#8, cols#80, it#8, lines#24, ncv#3, pairs#64, 
	acsc=+\020\,\021-\030.^Y0\333`\004a\261f\370g\361h\260j\331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u\264v\301w\302x\263y\363z\362{\343|\330}\234~\376, 
	bel=^G, bold=\E[1m, cbt=\E[Z, clear=\E[H\E[J, 
	cnorm=\E[?25h, cr=^M, cub=\E[%p1%dD, cub1=\E[D, 
	cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C, 
	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A, 
	dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m, dl=\E[%p1%dM, 
	dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K, 
	flash=\E[?5h\E[?5l$<200/>, home=\E[H, hpa=\E[%i%p1%dG, 
	ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, 
	il1=\E[L, ind=^J, invis=\E[8m, kNXT=\E[6$, kPRV=\E[5$, 
	kb2=\E[G, kbs=^H, kcbt=\E[Z, kcub1=\E[D, kcud1=\E[B, 
	kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[3~, kend=\E[4~, kf1=\E[[A, 
	kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, 
	kf14=\E[26~, kf15=\E[28~, kf16=\E[29~, kf17=\E[31~, 
	kf18=\E[32~, kf19=\E[33~, kf2=\E[[B, kf20=\E[34~, 
	kf3=\E[[C, kf4=\E[[D, kf5=\E[[E, kf6=\E[17~, kf7=\E[18~, 
	kf8=\E[19~, kf9=\E[20~, khome=\E[1~, kich1=\E[2~, 
	knp=\E[6~, kpp=\E[5~, kspd=^Z, nel=^M^J, op=\E[39;49m, 
	rc=\E8, rev=\E[7m, ri=\EM, rmacs=\E[10m, 
	rmcup=\E[2J\E[?47l\E8, rmir=\E[4l, rmso=\E[27m, 
	rmul=\E[24m, rs1=\Ec\E]R, sc=\E7, setab=\E[4%p1%dm, 
	setaf=\E[3%p1%dm, 
	sgr=\E[0;10%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;%?%p7%t;8%;%?%p9%t;11%;m, 
	sgr0=\E[0;10m, smacs=\E[11m, smcup=\E7\E[?47h, 
	smir=\E[4h, smso=\E[7m, smul=\E[4m, tbc=\E[2g, 
	u6=\E[%i%d;%dR, u7=\E[6n, u8=\E[?6c, u9=\E[c, 
	vpa=\E[%i%p1%dd, 

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]