TobiasChe / conemu-maximus5

Automatically exported from code.google.com/p/conemu-maximus5
0 stars 0 forks source link

Using mouse with cygwin/msys applications #1497

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Required information!
OS version: Win7   SP1   x64
ConEmu version: ConEmuPack.140304
Far version (if you are using Far Manager): none

*Bug description*
I use cygwin zsh and ssh to remote Linux server, run GNU screen under remote 
server

*Steps to reproduction*
1. run cygwin zsh, and ssh to remote Linux server
2. run GNU screen under remote server
3. mouse wheel will not scroll content in the screen window, even if I added 
"termcapinfo ansi*|xterm*|rxvt*|kterm*|Eterm*|cygwin* ti@:te@" to .screenrc run 
control file
4. it works fine in mintty under same situation.

the run control file is explained in below link:
http://stackoverflow.com/questions/359109/using-the-scrollwheel-in-gnu-screen

Original issue reported on code.google.com by marble.m...@gmail.com on 5 Mar 2014 at 9:03

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Cygwin does NOT send any escape sequences to ConEmu. It process all ANSI itself.

Original comment by ConEmu.Maximus5 on 5 Mar 2014 at 9:06

GoogleCodeExporter commented 9 years ago
I'm wondering why mintty can workaround this issue? The test environment is 
same as ConEmu. Is it possible for ConEmu to workaround this issue as well?

It's NOT a must, since I can use screen short keys to scroll the window, but 
it's more convenient to have mouse scroll the window and double click to select 
texts.

Original comment by marble.m...@gmail.com on 5 Mar 2014 at 9:21

GoogleCodeExporter commented 9 years ago
Test environment can't be the same. It is completely different.

CygwinAnsi

Well you are taking about mouse control... I'm planning in future if active 
process is "cygwin" - translate correct mouse events to ANSI equivalents. But I 
believe, that is a luck of feature (if not a bug), because cygwin applications 
does not respond to Windows mouse events. Other applications do that perfectly 
(Far Manager, OFFICIAL vim, etc).

Original comment by ConEmu.Maximus5 on 5 Mar 2014 at 10:15

GoogleCodeExporter commented 9 years ago
understood, expecting the new feature, thanks!

Original comment by marble.m...@gmail.com on 5 Mar 2014 at 10:52

GoogleCodeExporter commented 9 years ago
Using mouse with cygwin/msys applications

Original comment by ConEmu.Maximus5 on 7 Mar 2014 at 1:05

GoogleCodeExporter commented 9 years ago
Issue 1500 has been merged into this issue.

Original comment by ConEmu.Maximus5 on 7 Mar 2014 at 1:05

GoogleCodeExporter commented 9 years ago
Issue 1492 has been merged into this issue.

Original comment by ConEmu.Maximus5 on 7 Mar 2014 at 1:06

GoogleCodeExporter commented 9 years ago
Issue 943 has been merged into this issue.

Original comment by ConEmu.Maximus5 on 7 Mar 2014 at 1:09

GoogleCodeExporter commented 9 years ago
Well, are you going to try to implement this feature or should I try to sort it 
out with Cygwin developers?

Is it possible to detect Cygwin process(es) somehow easily? Because it's not 
something like "cygwin.exe". Main process depends on shell you are using, so it 
could be for example "sh.exe", "bash.exe", "zsh.exe" or any other.

What would Cygwin have to do to make this work? It already detects, that 
console emulator uses pipes, right? So if it detects, that console emulator 
doesn't use pipes, it should process ANSI codes internally?

Original comment by da...@ferenczy.cz on 24 Apr 2014 at 4:46

GoogleCodeExporter commented 9 years ago
It is possible to detect cygwin processes, if you are using "Inject ConEmuHk" )

However, I think, you should contact cygwin team, because "console application 
must work properly in the console". But now, cygwin acts properly only under 
certain terminal emulators, which are not real consoles in fact.

Some techinfo. Cygwin doesn't "detect pipes". It detects special environment 
which mintty and others emulates specially for cygwin.
ConEmu, on the other hand, does not do stdin/stdout redirection, but run 
applications in the real console.
And cygwin code had switched to "real console brunch".
That brunch does not implement mouse support in the console (bug described by 
topic starter).

On the other hand, ConEmu is hybrid terminal, supporting ANSI. And it would be 
great, if cygwin will be able to detect that (via $ConEmuANSI). But I don't 
think that they would be (

At last. I'm working on full cygwin-enabled terminal support without loose 
Windows features. But I can't predict when it will be released or even if it 
will be succeeded.

Original comment by ConEmu.Maximus5 on 24 Apr 2014 at 5:06

GoogleCodeExporter commented 9 years ago
CygwinMsys wiki rewritten.

Original comment by ConEmu.Maximus5 on 27 Apr 2014 at 10:17

GoogleCodeExporter commented 9 years ago
Can we consider enable mouse support in ConEmu now that Cygwin 1.7.2 starts to 
report mouse wheel scroll events in mouse reporting mode 1000?

https://cygwin.com/cygwin-ug-net/ov-new1.7.html

What's new and what changed from 1.7.1 to 1.7.2:

Enhanced Windows console support.

The console's backspace keycode can be changed using 'stty erase'.

Function keys send distinguished escape sequences compatible with rxvt. Keypad 
keys send distinguished escape sequences, xterm-style.

Support of combining Alt and AltGr modifiers in console window (compatible with 
xterm and mintty), so that e.g. Alt-@ sends ESC @ also on keyboards where @ is 
mapped to an AltGr combination.

Report mouse wheel scroll events in mouse reporting mode 1000 (note: this 
doesn't seem to work on all systems, assumedly due to driver interworking 
issues). Add mouse reporting mode 1002 to report mouse drag movement. Add mouse 
reporting mode 1003 to report any mouse movement. Add focus event reporting 
(mode 1004), compatible with xterm and mintty.

Add escape sequences for not bold (22), not invisible (28), not blinking (25) 
(compatible with xterm and mintty).

Support VT100 line drawing graphics mode in console window (compatible with 
xterm and mintty).

Original comment by marble.m...@gmail.com on 19 Aug 2014 at 3:52

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Rather found it...

Original comment by ConEmu.Maximus5 on 19 Aug 2014 at 8:26