Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Injected-Via-Gmane: http://gmane.org/ To: cygwin AT cygwin DOT com From: Charles Wilson Subject: Re: vim quits and cygwin window contents not restored Date: Wed, 02 Apr 2003 03:29:02 -0500 Lines: 213 Message-ID: <3E8A9F4E.3090402@ece.gatech.edu> References: <5 DOT 2 DOT 0 DOT 9 DOT 2 DOT 20030324161421 DOT 02364528 AT pop3 DOT cris DOT com> <024301c2f25a$363fe250$ab474e51 AT ellixia> <5 DOT 2 DOT 0 DOT 9 DOT 2 DOT 20030324161421 DOT 02364528 AT pop3 DOT cris DOT com> <5 DOT 2 DOT 0 DOT 9 DOT 2 DOT 20030324201123 DOT 029927a8 AT pop3 DOT cris DOT com> <3E7FE6AB DOT 5070305 AT ece DOT gatech DOT edu> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------030209010905080105030009" X-Complaints-To: usenet AT main DOT gmane DOT org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 X-Accept-Language: en-us, en --------------030209010905080105030009 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Charles Wilson wrote: > Sorry, I haven't been following this thread. See below. > I'll try to figure out which parts are missing, and reinstate them -- > look for a new release (of terminfo-) sometime in the next week. Try the following. First, save /usr/share/terminfo/c/cygwin somewhere handy. Then, download and save the attached file cygwin.terminfo, and run 'tic cygwin.terminfo' which will compile it and install it into your terminfo database. You can also hand edit /etc/termcap (back it up, first) and paste the attached cygwin.termcap file into it, deleting the current definition. Anyway, give that a shot. You'll note there are a lot of question marks in the comments in the cygwin.terminfo file. If anyone's feeling really ambitious and likes digging thru terminfo documentation, the fhandler_console.cc source code in cygwin, and playing with /usr/bin/tack.exe... --Chuck --------------030209010905080105030009 Content-Type: text/plain; name="cygwin.terminfo" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="cygwin.terminfo" # Use this for cygwin (tested with version 1.1.0). # I've combined pcansi and linux. Some values of course were different and # I've indicated which of these were and which I used. # Cheers, earnie_boyd AT yahoo DOT com # several changes based on running with tack and comparing with older entry -TD # csw: # add cbt [backtab] # remove eo [erase overstrike with blank] # change clear was \E[H\E[J now \E[2J (faster?) # remove cols # remove lines # remove ncv#3 [colors collide with highlights, bitmask] not applicable # to MSDOS box? # add cub [cursor back param] # add cuf [cursor forward param] # add cuu [cursor up param] # add cud [cursor down param] # add hs [has status line] # add fsl [return from status line] # add tsl [go to status line] # add smacs [Start alt charset] (not sure if this works) # add rmacs [End alt charset] (ditto) # add smcup [enter_ca_mode] (save console; thanks Corinna) # add rmcup [exit_ca_mode] (restore console; thanks Corinna) # add kb2 [center of keypad] # add u8 [user string 8] \E[?6c # Notes: # cnorm [make cursor normal] not implemented # flash [flash] not implemented # blink [blink] not implemented very usefully in cygwin? \E[5m # dim [dim] not implemented very usefully in cygwin? \E[2m # cub1 [cursor back 1] typically \E[D, but ^H is faster? # kNXT [shifted next key] not implemented # kPRV [shifted prev key] not implemented # khome [home key] really is \E[1~ NOT \E[H # tbc [clear tab stops] not implemented # xenl [newline ignnored after 80 cols] messes up last line? Ehud Karni # smpch [Start PC charset] is \E[11m, same as smacs # rmpch [End PC charset] is \E[10m, same as rmacs # mir [move in insert mode] fails in tack? # bce [back color erase] causes problems with change background color? # cvvis [make cursor very visible] causes a stackdump when testing with # testcurs using the output option? \E[?25h\E[?8c # civis [make cursor invisible] causes everything to stackdump? \E[?25l\E[?1c # ech [erase characters param] broken \E[%p1%dX # kcbt [back-tab key] not implemented in cygwin? \E[Z cygwin|ansi emulation for Cygwin, am, in, msgr, xon, colors#8, it#8, 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, cr=^M, cub=\E[%p1%dD, cub1=^H, 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, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el1=\E[1K, fsl=^G, home=\E[H, hpa=\E[%i%p1%dG, hs, ht=^I, ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=^J, invis=\E[8m, kb2=\E[G, kbs=^H, 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, rmpch=\E[10m, 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=\E11m, smcup=\E7\E[?47h, smir=\E[4h, smpch=\E[11m, smso=\E[7m, smul=\E[4m, tsl=\E];, u6=\E[%i%d;%dR, u7=\E[6n, u8=\E[?6c, u9=\E[c, vpa=\E[%i%p1%dd, --------------030209010905080105030009 Content-Type: text/plain; name="cygwin.termcap" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="cygwin.termcap" cygwin|ansi emulation for Cygwin:\ :am:hs:in:ms:xo:\ :Co#8:it#8:pa#64:\ :&7=^Z:@7=\E[4~:AB=\E[4%dm:AF=\E[3%dm:AL=\E[%dL:DC=\E[%dP:\ :DL=\E[%dM:DO=\E[%dB:F1=\E[23~:F2=\E[24~:F3=\E[25~:\ :F4=\E[26~:F5=\E[28~:F6=\E[29~:F7=\E[31~:F8=\E[32~:\ :F9=\E[33~:FA=\E[34~:IC=\E[%d@:K2=\E[G:LE=\E[%dD:\ :RI=\E[%dC:S2=\E[11m:S3=\E[10m:UP=\E[%dA:ae=\E[10m:\ :al=\E[L:as=\E11m:bl=^G:bt=\E[Z:cb=\E[1K:cd=\E[J:\ :ch=\E[%i%dG:cl=\E[H\E[J:cm=\E[%i%d;%dH:cr=^M:\ :cv=\E[%i%dd:dc=\E[P:dl=\E[M:do=\E[B:ei=\E[4l:fs=^G:\ :ho=\E[H:ic=\E[@:im=\E[4h:k1=\E[[A:k2=\E[[B:k3=\E[[C:\ :k4=\E[[D:k5=\E[[E:k6=\E[17~:k7=\E[18~:k8=\E[19~:\ :k9=\E[20~:k;=\E[21~:kD=\E[3~:kI=\E[2~:kN=\E[6~:kP=\E[5~:\ :kb=^H:kd=\E[B:kh=\E[1~:kl=\E[D:kr=\E[C:ku=\E[A:le=^H:\ :md=\E[1m:me=\E[0;10m:mk=\E[8m:mr=\E[7m:nd=\E[C:nw=^M^J:\ :op=\E[39;49m:r1=\Ec\E]R:rc=\E8:sc=\E7:se=\E[27m:sf=^J:\ :so=\E[7m:sr=\EM:ta=^I:te=\E[2J\E[?47l\E8:ti=\E7\E[?47h:\ :ts=\E];:u6=\E[%i%d;%dR:u7=\E[6n:u8=\E[?6c:u9=\E[c:\ :ue=\E[24m:up=\E[A:us=\E[4m: --------------030209010905080105030009 Content-Type: text/plain; charset=us-ascii -- 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/ --------------030209010905080105030009--