Maximus5 / conemu-old-issues

Old issues imported from googlecode. Project was moved to
https://conemu.github.io
6 stars 1 forks source link

Using mouse with cygwin/msys applications #1497

Open Maximus5 opened 9 years ago

Maximus5 commented 9 years ago

Originally reported on Google Code with ID 1497

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

Reported by marble.mabh on 2014-03-05 09:03:54

Maximus5 commented 9 years ago
Cygwin does NOT send any escape sequences to ConEmu. It process all ANSI itself.

Reported by ConEmu.Maximus5 on 2014-03-05 09:06:23

Maximus5 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.

Reported by marble.mabh on 2014-03-05 09:21:19

Maximus5 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).

Reported by ConEmu.Maximus5 on 2014-03-05 10:15:43

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

Reported by marble.mabh on 2014-03-05 10:52:20

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

Reported by ConEmu.Maximus5 on 2014-03-07 13:05:04

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

Reported by ConEmu.Maximus5 on 2014-03-07 13:05:24

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

Reported by ConEmu.Maximus5 on 2014-03-07 13:06:45

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

Reported by ConEmu.Maximus5 on 2014-03-07 13:09:04

Maximus5 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?

Reported by dawid@ferenczy.cz on 2014-04-24 16:46:31

Maximus5 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.

Reported by ConEmu.Maximus5 on 2014-04-24 17:06:36

Maximus5 commented 9 years ago
CygwinMsys wiki rewritten.

Reported by ConEmu.Maximus5 on 2014-04-27 10:17:56

Maximus5 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).

Reported by marble.mabh on 2014-08-19 03:52:17

Maximus5 commented 9 years ago
Rather found it...

Reported by ConEmu.Maximus5 on 2014-08-19 08:26:17