Re: console enhancements: mouse events etc

2010-03-30 Thread Thomas Wolff
Andy Koppe schrieb: How can I enforce printing garbage so I can test the reset command? echo $'\e(0' and echo ^N (Control-N) for the other mode, which is more likely to occur by binary output; the enable sequence for it is echo ^[)0 (same as above, with ')' instead of '('). And I f

Re: console enhancements: mouse events etc

2010-03-30 Thread Corinna Vinschen
On Mar 30 17:36, Andy Koppe wrote: > > How can I enforce printing garbage so I > > can test the reset command? > > echo $'\e(0' Thanks, works fine. Just like the reset command now. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader

Re: console enhancements: mouse events etc

2010-03-30 Thread Andy Koppe
> How can I enforce printing garbage so I > can test the reset command? echo $'\e(0'

Re: console enhancements: mouse events etc

2010-03-30 Thread Corinna Vinschen
On Mar 30 17:46, Thomas Wolff wrote: > Corinna Vinschen wrote: > >>>Since you were looking into the Cygwin console code lately, maybe you > >>>could find out why `stty sane' doesn't reset the character set? > >>The tool to use would be 'reset'. So I'll try to find out why > >>'reset' doesn't reset

Re: console enhancements: mouse events etc

2010-03-30 Thread Thomas Wolff
Corinna Vinschen wrote: Since you were looking into the Cygwin console code lately, maybe you could find out why `stty sane' doesn't reset the character set? The tool to use would be 'reset'. So I'll try to find out why 'reset' doesn't reset the character set :-\ . There are two methods to

Re: console enhancements: mouse events etc

2010-03-30 Thread Corinna Vinschen
On Mar 30 12:53, Thomas Wolff wrote: > Hi Corinna, > > On 30.03.2010 11:59, Corinna Vinschen wrote: > >Hi Thomas, > For some reason this mail didn't make it into my cygwin mailbox, so > it's good you sent me a personal CC. Weird. You should really check your mail chain. I never had a problem to

Re: console enhancements: mouse events etc

2010-03-30 Thread Thomas Wolff
Hi Corinna, On 30.03.2010 11:59, Corinna Vinschen wrote: Hi Thomas, For some reason this mail didn't make it into my cygwin mailbox, so it's good you sent me a personal CC. ... Since you were looking into the Cygwin console code lately, maybe you could find out why `stty sane' doesn't re

Re: console enhancements: mouse events etc

2010-03-30 Thread Corinna Vinschen
Hi Thomas, On Jan 26 16:08, Thomas Wolff wrote: > On 25.01.2010 20:08, Corinna Vinschen wrote: > >Hi Thomas, > >... > >can you please create a patch to add some words to the "What's new and > >what changed from 1.7.1 to 1.7.2" section in the User's Guide > >(winsup/doc/new-features.sgml), in terms

Re: terminfo [Re: console enhancements: mouse events etc]

2010-02-23 Thread Christopher Faylor
On Tue, Feb 23, 2010 at 11:00:28AM +0100, Thomas Wolff 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? >>> >> http://mirrors.kernel.org/sources.redhat.com/cygwin/release/t

terminfo [Re: console enhancements: mouse events etc]

2010-02-23 Thread Thomas Wolff
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? http://mirrors.kernel.org/sources.redhat.com/cygwin/release/terminfo/terminfo-5.7_20091114-13-src.tar.bz2 That -src package is basically just

Re: console enhancements: mouse events etc

2010-02-09 Thread Charles Wilson
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? http://mirrors.kernel.org/sources.redhat.com/cygwin/release/terminfo/terminfo-5.7_20091114-13-src.tar.bz2 That -src package is basically just a wrapper

Re: console enhancements: mouse events etc

2010-02-09 Thread Corinna Vinschen
On Feb 9 17:26, 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? Upstream. Charles is the Cygwin maintainer. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cy

Re: console enhancements: mouse events etc

2010-02-09 Thread Thomas Wolff
On 25.01.2010 20:08, Corinna Vinschen wrote: Hi Thomas, ... can you please create a patch to add some words to the "What's new and what changed from 1.7.1 to 1.7.2" section in the User's Guide (winsup/doc/new-features.sgml), in terms of your console enhancements? Hi, changelog an

Re: console enhancements: mouse events etc

2010-01-26 Thread Corinna Vinschen
On Jan 26 16:08, Thomas Wolff wrote: > On 25.01.2010 20:08, Corinna Vinschen wrote: > >Hi Thomas, > >... > >can you please create a patch to add some words to the "What's new and > >what changed from 1.7.1 to 1.7.2" section in the User's Guide > >(winsup/doc/new-features.sgml), in terms of your con

Re: console enhancements: mouse events etc

2010-01-26 Thread Thomas Wolff
On 25.01.2010 20:08, Corinna Vinschen wrote: Hi Thomas, ... can you please create a patch to add some words to the "What's new and what changed from 1.7.1 to 1.7.2" section in the User's Guide (winsup/doc/new-features.sgml), in terms of your console enhancements? Hi, changelog and patch attac

Re: console enhancements: mouse events etc

2010-01-25 Thread Corinna Vinschen
Hi Thomas, On Dec 21 11:12, Corinna Vinschen wrote: > On Dec 18 23:49, Thomas Wolff wrote: > > Now this is my patch # 3, enhancing / distinguishing escape > > sequences for function keys and keypad keys with modifiers Ctrl, > > Shift, Alt and their various combinations. > > Thanks, applied. can

Re: console enhancements: mouse events etc

2009-12-21 Thread Corinna Vinschen
On Dec 18 23:49, Thomas Wolff wrote: > Now this is my patch # 3, enhancing / distinguishing escape > sequences for function keys and keypad keys with modifiers Ctrl, > Shift, Alt and their various combinations. Thanks, applied. Corinna -- Corinna Vinschen Please, send mails re

Re: console enhancements: mouse events etc

2009-12-19 Thread Corinna Vinschen
On Dec 17 03:11, Thomas Wolff wrote: > Hi, > here is my VT100 graphics mode patch, plus the one-liner I forgot to > mention in the change log last time, I hope that's OK. > Thomas > * fhandler_console.cc (write_console): Check for VT100 > graphics mode and transform wide characters in

Re: console enhancements: mouse events etc

2009-12-18 Thread Thomas Wolff
Thomas Wolff schrieb: Hi, here is my VT100 graphics mode patch, plus the one-liner I forgot to mention in the change log last time, I hope that's OK. Thomas Now this is my patch # 3, enhancing / distinguishing escape sequences for function keys and keypad keys with modifiers Ctrl, Shift, Alt a

Re: console enhancements: mouse events etc

2009-12-16 Thread Thomas Wolff
Hi, here is my VT100 graphics mode patch, plus the one-liner I forgot to mention in the change log last time, I hope that's OK. Thomas 2009-12-17 Thomas Wolff * fhandler_console.cc (write_console): Check for VT100 graphics mode and transform wide characters in ASCII small

Re: console enhancements: mouse events etc

2009-12-16 Thread Thomas Wolff
Corinna Vinschen wrote: On Dec 16 10:48, Thomas Wolff wrote: * fhandler_console.cc (read): Detect and handle mouse wheel scrolling ... Thank you. Applied with two changes: @@ -362,9 +405,12 @@ fhandler_console::read (void *pv, size_t /* Determine if the keystroke i

Re: console enhancements: mouse events etc

2009-12-16 Thread Corinna Vinschen
On Dec 16 10:48, Thomas Wolff wrote: > * fhandler_console.cc (read): Detect and handle mouse wheel scrolling > events (for completion of mouse reporting mode 1000) and mouse > movement events (for additional mouse reporting modes 1002 and 1003). > Use mouse_aware() as a gu

Re: console enhancements: mouse events etc

2009-12-16 Thread Thomas Wolff
Corinna Vinschen schrieb: I've applied the first part of the patch: * fhandler_console.cc (char_command): Fix code to select dim mode to 2 rather than 9. Add entries for mode 22 (normal, not bold) 28 (visible, not invisible), 25 (not blinking). Thanks. So here is the n

VCS and changelogs (was: console enhancements: mouse events etc)

2009-12-15 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Corinna Vinschen on 12/15/2009 6:00 AM: > Btw., please don't add the ChangeLog entries to the patch, just add > them as plain text to your mail. Patches to ChangeLogs almost always > don't apply cleanly. Unless we were to move to git, in

Re: console enhancements: mouse events etc

2009-12-15 Thread Corinna Vinschen
On Dec 14 18:13, Corinna Vinschen wrote: > On Dec 14 18:02, Thomas Wolff wrote: > > Do you maintain two checkouts, an unpatched one to base on? > > Of course not. What's a source code control system good for if you do > everything manually? You should really start RTF cvs M. `info cvs' for > a

Re: console enhancements: mouse events etc

2009-12-14 Thread Charles Wilson
On Mon, 14 Dec 2009 18:02 +0100, "Thomas Wolff" wrote: > Hi, please excuse some basic questions about CVS best practice: > > Corinna Vinschen wrote: > > ... Patches are supposed to be against > > the latest from CVS. And it's also not cumbersome, it's rather quite > > simple. CVS is doing that

Re: console enhancements: mouse events etc

2009-12-14 Thread Corinna Vinschen
On Dec 14 18:02, Thomas Wolff wrote: > Hi, please excuse some basic questions about CVS best practice: > > Corinna Vinschen wrote: > >... Patches are supposed to be against > >the latest from CVS. And it's also not cumbersome, it's rather quite > >simple. CVS is doing that for you usually anywa

Re: console enhancements: mouse events etc

2009-12-14 Thread Thomas Wolff
Hi, please excuse some basic questions about CVS best practice: Corinna Vinschen wrote: ... Patches are supposed to be against the latest from CVS. And it's also not cumbersome, it's rather quite simple. CVS is doing that for you usually anyway. If you have a patched CVS source tree, just ca

Re: console enhancements: mouse events etc

2009-12-14 Thread Corinna Vinschen
On Dec 14 17:17, Thomas Wolff wrote: > Corinna Vinschen wrote: > >Hi Tom, > Hi Cori, > > >On Dec 6 20:24, Thomas Wolff wrote: > >>This is my updated and extended patch for a number of console enhancements. > >>... > >>If you want a subset of the features sooner than others, I may split > >>the pa

Re: console enhancements: mouse events etc

2009-12-14 Thread Thomas Wolff
Corinna Vinschen wrote: Hi Tom, Hi Cori, On Dec 6 20:24, Thomas Wolff wrote: This is my updated and extended patch for a number of console enhancements. ... If you want a subset of the features sooner than others, I may split the patch. Thanks for the offer. It would

Re: console enhancements: mouse events etc

2009-12-14 Thread Corinna Vinschen
Hi Tom, On Dec 6 20:24, Thomas Wolff wrote: > Corinna Vinschen wrote: > >Could you please resend the latest version of your patch so we > >can have another look into it? > This is my updated and extended patch for a number of console enhancements. > >Christopher Faylor wrote: > >>Can we hold of o

Re: console enhancements: mouse events etc

2009-12-06 Thread Thomas Wolff
Corinna Vinschen wrote: Could you please resend the latest version of your patch so we can have another look into it? This is my updated and extended patch for a number of console enhancements. Christopher Faylor wrote: Can we hold of on applying this until after 1.7 is released? Sure,

Re: console enhancements: mouse events

2009-11-19 Thread Corinna Vinschen
On Nov 19 11:00, Christopher Faylor wrote: > On Thu, Nov 19, 2009 at 04:26:32PM +0100, Corinna Vinschen wrote: > >Tom, > > > >On Nov 8 23:02, t...@towo.net wrote: > >> Corinna Vinschen schrieb: > >> >On Nov 6 09:20, Thomas Wolff wrote: > >> >>Hi, > >> >>About enhancements of cygwin console featur

Re: console enhancements: mouse events

2009-11-19 Thread Christopher Faylor
On Thu, Nov 19, 2009 at 04:26:32PM +0100, Corinna Vinschen wrote: >Tom, > >On Nov 8 23:02, t...@towo.net wrote: >> Corinna Vinschen schrieb: >> >On Nov 6 09:20, Thomas Wolff wrote: >> >>Hi, >> >>About enhancements of cygwin console features, I've now worked >> >>out a patch which does the followi

Re: console enhancements: mouse events

2009-11-19 Thread Corinna Vinschen
Tom, On Nov 8 23:02, t...@towo.net wrote: > Corinna Vinschen schrieb: > >On Nov 6 09:20, Thomas Wolff wrote: > >>Hi, > >>About enhancements of cygwin console features, I've now worked > >>out a patch which does the following: > > > >Thanks for the patch, it looks like a nice addition. > > > >How

Re: console enhancements: mouse events

2009-11-11 Thread Thomas Wolff
Corinna Vinschen wrote: * Maybe the escape sequences of shifted function keys should be modified to comply with those of the Linux console? Aren't they compatible with xterm? I don't think it's a terrible good idea to change that. No, they are not: Linux console F1..F12

Re: console enhancements: mouse events

2009-11-10 Thread Corinna Vinschen
On Nov 10 17:47, Thomas Wolff wrote: > Corinna Vinschen schrieb: > I had not expected you to take action on this issue so soon: > >- Don't create ESC sequences for ALT-key keypresses if key translates > > into a multibyte sequence. This avoids stray bytes in input when > > pressing for instance

Re: console enhancements: mouse events

2009-11-10 Thread Thomas Wolff
Corinna Vinschen schrieb: - Pressing something like Alt-ö on a German keyboard leaves an illegal UTF-8 sequence (the second byte of the respective sequence) in input, apparently because Alt-0xC3 is handled somehow. Don't know, though, whether this is a cygwin console issue or maybe a

Re: console enhancements: mouse events

2009-11-09 Thread Thomas Wolff
Corinna Vinschen schrieb: On Nov 9 09:54, Christopher Faylor wrote: On Mon, Nov 09, 2009 at 02:35:51PM +0100, Corinna Vinschen wrote: On Nov 8 23:02, t...@towo.net wrote: Corinna Vinschen schrieb: Ooookey, if they aren't listed in terminfo anyway, I have no problems t

Re: console enhancements: mouse events

2009-11-09 Thread Corinna Vinschen
On Nov 9 09:54, Christopher Faylor wrote: > On Mon, Nov 09, 2009 at 02:35:51PM +0100, Corinna Vinschen wrote: > >On Nov 8 23:02, t...@towo.net wrote: > >>Corinna Vinschen schrieb: > >Ooookey, if they aren't listed in terminfo anyway, I have no problems > >to change them. But we should stick to fo

Re: console enhancements: mouse events

2009-11-09 Thread Christopher Faylor
On Mon, Nov 09, 2009 at 02:35:51PM +0100, Corinna Vinschen wrote: >On Nov 8 23:02, t...@towo.net wrote: >>Corinna Vinschen schrieb: >Ooookey, if they aren't listed in terminfo anyway, I have no problems >to change them. But we should stick to following the Linux console, I >guess. I agree. I'm s

Re: console enhancements: mouse events

2009-11-09 Thread Corinna Vinschen
On Nov 8 23:02, t...@towo.net wrote: > Corinna Vinschen schrieb: > >signed copyright assignment form (http://cygwin.com/assign.txt) in place. > It's in the envelope. Cool. > >Open the console properties dialog and disable QuickEdit. > I had checked the properties and nothing worked. QuickEdit en

Re: console enhancements: mouse events

2009-11-08 Thread Andy Koppe
Thomas Wolff: >>>  Note: This works on my home PC (Windows XP Home) but it's not effective >>>  on my work PC (Windows XP Professional) where the mouse wheel scrolls the >>>  Windows console (which it doesn't on the other machine); I don't know  how >>> to disable or configure this. I've come acro

Re: console enhancements: mouse events

2009-11-08 Thread towo
Corinna Vinschen schrieb: On Nov 6 09:20, Thomas Wolff wrote: Hi, About enhancements of cygwin console features, I've now worked out a patch which does the following: Thanks for the patch, it looks like a nice addition. However, there's the problem of the copyright assignment. As d

Re: console enhancements: mouse events

2009-11-07 Thread Andy Koppe
2009/11/7 Corinna Vinschen: >> Mintty roughly does the following for Ctrl(+Shift)+symbol combinations: >> - obtain the keymap using GetKeyboardState() >> - set the state of the Ctrl key to released >> - invoke ToUnicode() to get the character code according to the keyboard >> layout >> - if the ch

Re: console enhancements: mouse events

2009-11-07 Thread Corinna Vinschen
On Nov 6 21:55, Andy Koppe wrote: > 2009/11/6 Thomas Wolff: > > * I would like to fix some key assignments: > >  - Control-(Shift-)6 inputs Control-^ which is not proper on international > >    keyboards if Shift-6 is not "^", Control-^ (the key) does not input > >    Control-^ (the character) on

Re: console enhancements: mouse events

2009-11-06 Thread Corinna Vinschen
On Nov 6 09:20, Thomas Wolff wrote: > Hi, > About enhancements of cygwin console features, I've now worked out a > patch which does the following: Thanks for the patch, it looks like a nice addition. However, there's the problem of the copyright assignment. As described on the http://cygwin.co

console enhancements: mouse events

2009-11-06 Thread Thomas Wolff
Hi, About enhancements of cygwin console features, I've now worked out a patch which does the following: * Implement additional mouse reporting modes 1002 and 1003 as known from xterm and mintty; they report mouse move events. * Add detection and reporting of mouse scroll events to mouse repor