X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Message-ID: <4B854C3C.1020204@towo.net> Date: Wed, 24 Feb 2010 16:56:44 +0100 From: Thomas Wolff User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.7) Gecko/20100111 Lightning/1.0b1 Thunderbird/3.0.1 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: terminfo [Re: console enhancements: mouse events etc] References: <4B266F9B DOT 6070204 AT towo DOT net> <20091214171323 DOT GS8059 AT calimero DOT vinschen DOT de> <20091215130036 DOT GA19394 AT calimero DOT vinschen DOT de> <4B28ACE8 DOT 1050305 AT towo DOT net> <20091216145627 DOT GM8059 AT calimero DOT vinschen DOT de> <4B29934A DOT 80902 AT towo DOT net> <4B2C0715 DOT 8090108 AT towo DOT net> <20091221101216 DOT GA5632 AT calimero DOT vinschen DOT de> <20100125190806 DOT GA9166 AT calimero DOT vinschen DOT de> <4B5F0585 DOT 9070903 AT towo DOT net> <20100126161036 DOT GA31281 AT calimero DOT vinschen DOT de> <4B718CB8 DOT 7070308 AT towo DOT net> <4B72083C DOT 2090205 AT cwilson DOT fastmail DOT fm> <4B83A73C DOT 1000208 AT towo DOT net> <4B847943 DOT 9030907 AT cwilson DOT fastmail DOT fm> In-Reply-To: <4B847943.9030907@cwilson.fastmail.fm> Content-Type: multipart/mixed; boundary="------------060306040906080903080604" X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 --------------060306040906080903080604 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 24.02.2010 01:56, Charles Wilson wrote: > Thomas Wolff wrote: > >> Charles Wilson wrote: >> >>> Thomas Wolff wrote: >>> >>> >>>> Actually, I just remember again that I though I should change the >>>> terminfo entry too. Just - where's the source to patch? >>>> >>> So, send me patches against terminfo.src from that -src tarball, and >>> once we've got it figured out, I'll push it upstream to the ncurses >>> maintainer. >>> >>> >>> >> Sorry for the slightly late response. Attached is a small patch. >> Two notes: >> * I used the occasion to add PC graphics mode to the linux console, too, >> which have always been missing there. >> > I'm not sure about this. The only situation where you'd be using the > cygwin terminfo database while interacting with a linux console is if > you were running a cygwin shell, under WINE, from a console mode linux > login. Or maybe if you were remotely accessing a cygwin box from a > console mode linux session. However, in both cases, the terminal > description would DIFFER from the one the actual linux box, the one > you'd be sitting in front of, uses. This sounds like trouble to me. > > I think the better approach -- doomed to rejection, unfortunately (*) -- > is to submit this change directly upstream to ncurses (Thomas Dickey). > If it's picked up there, then it will filter down thru the linux > distributions, AND we'll get it. > > (*) Thomas (Dickey) has a policy of accepting terminal description > changes ONLY from the maintainers of the emulator/console code: e.g. > konsole from the KDE devs, linux from lkml only, etc. > Quite understandable. However, I already sent a bug report to linux-kernel AT vger DOT kernel DOT org some months ago and there doesn't seem to be anyone behind that mail address who would even care to respond..., so > He's unlikely to accept a patch to the linux terminfo description from > us. But, give it a try anyway... > so I had just hoped to get this upstream this way. Anyway, my updated patch (attached) is now without the linux detail. >> * I patched "cygwinDBG" only for now, because if the patch goes >> upstream, the new VT100 graphics mode will not be available for remote >> login from an older cygwin console for a while. Feel free to modify the >> entry "cygwin" accordingly if you feel confident with it. >> > No, I think it would be best to update cygwin itself (and maybe > cygwinDBG. Anybody use that?) If we want to add cygwin-old (cygwin-1p5? > suggestion for a better name?) for backwards compatibility, we can. But > the current cygwin terminal description should describe the current > cygwin terminal capabilities. > OK, updated. > BTW, does this "fix" 'pstree -G'? > Unfortunately not. I checked pstree and it is obviously quite buggy about terminal handling. I also checked the source and it does the wrong thing. There are different methods to embed VT100 graphics codes, for short let me call them G1 and G0. What pstree sends is: G0-on G1-off code G0-off Obviously terminals handle this differently. xterm and mintty seem to still apply VT100 graphics within G0-on...G0-off despite the stray G1-off, while my cygwin console patch doesn't, it just switches it off when it's told "off" by one method and I thought that would be OK. So there is two options: - I could amend my patch with a workaround - I/We could get pstree fixed, probably upstream? > I'll adapt and release an update relatively soon. ... > I'm guessing that these terminfo changes need to wait until 1.7.2, right? > Yes, please. Thomas --------------060306040906080903080604 Content-Type: text/plain; name="terminfo-diff.1.7.2-a" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="terminfo-diff.1.7.2-a" --- terminfo.src.orig 2010-02-10 10:39:34.000000000 +0100 +++ terminfo.src 2010-02-24 11:47:50.280232000 +0100 @@ -5268,10 +5268,13 @@ cygwinB19|ansi emulation for cygwin32, # 2005/11/12 -TD # Remove cbt since it does not work in current cygwin # Add 'mir' and 'in' flags based on tack +# 2010/02/24 Thomas Wolff +# Update smacs, rmacs to new VT100 compatible mode in cygwin 1.7.2, +# remove acsc +# Add ech which was missing cygwin|ansi emulation for Cygwin, am, hs, mir, 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, 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, @@ -5287,13 +5290,15 @@ cygwin|ansi emulation for Cygwin, 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, + 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, smpch=\E[11m, smso=\E[7m, smul=\E[4m, tsl=\E];, - vpa=\E[%i%p1%dd, use=vt102+enq, + sgr0=\E[0;10m, smcup=\E7\E[?47h, + smir=\E[4h, smso=\E[7m, smul=\E[4m, tsl=\E];, + vpa=\E[%i%p1%dd, + smpch=\E[11m, rmpch=\E[10m, smacs=\E(0, rmacs=\E(B, ech=\E[%p1%dX, + use=vt102+enq, # I've supplied this so that you can help test new values and add other # features. Cheers, earnie_boyd AT yahoo DOT com. @@ -5304,7 +5309,6 @@ cygwin|ansi emulation for Cygwin, cygwinDBG|Debug Version 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, blink=\E[5m, 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, @@ -5322,12 +5326,14 @@ cygwinDBG|Debug Version for Cygwin, 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, rmir=\E[4l, + rc=\E8, rev=\E[7m, ri=\EM, rmir=\E[4l, rmso=\E[m, rmul=\E[m, 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;12%;m, - sgr0=\E[0;10m, smacs=\E[11m, smir=\E[4h, smso=\E[7m, - smul=\E[4m, tbc=\E[3g, vpa=\E[%i%p1%dd, use=vt102+enq, + sgr0=\E[0;10m, smir=\E[4h, smso=\E[7m, + smul=\E[4m, tbc=\E[3g, vpa=\E[%i%p1%dd, + smpch=\E[11m, rmpch=\E[10m, smacs=\E(0, rmacs=\E(B, ech=\E[%p1%dX, + use=vt102+enq, # Key definitions: # The encodings for unshifted arrow keys, F1-F12, Home, Insert, etc. match the --------------060306040906080903080604 Content-Type: text/plain; charset=us-ascii -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple --------------060306040906080903080604--