rheostat2718 / conemu-maximus5

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

Support stty tool #1589

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
OS version: Win7 x64
ConEmu version: 140523

*Bug description*
Please forward/handle appropriately Ctrl+Z for bash.
Seems to be related to stty which is not supported by cmd.exe. Mintty supports 
it: https://code.google.com/p/mintty/wiki/Tips#Terminal_line_settings

More info:
Bash Handles CTRL+Z shortcut by stopping the current running process(by sending 
it a stop signal) and putting it to the background. User has then the choice to 
let the application interrupted, or make it run again in the backgroud using 
"bg %1" (%1 means last running job, %2 for previous one, etc...) or bring it 
back to foreground with "fg %1" or terminate it with "kill %1".
A list of current jobs running/suspended can be displayed using the "jobs" 
command.

All this job handling is not possible if you cannot suspend a process in the 
first time.
http://www.gnu.org/software/bash/manual/bashref.html#Job-Control-Basics

Original issue reported on code.google.com by amy...@gmail.com on 26 May 2014 at 2:51

GoogleCodeExporter commented 9 years ago
Interesting feature. But full cygterm emulation is not in my nearest plans. May 
be interesting reading: CygwinMsys
However, if you can't live without that feature - may run mintty in ConEmu tab.

Original comment by ConEmu.Maximus5 on 26 May 2014 at 5:46

GoogleCodeExporter commented 9 years ago
Actually, in a POSIX environment, it is the terminal line driver (not bash) 
that intercepts the SUSP character (^Z by default) and sends a TSTP signal to 
the foreground process group, which (unless caught or ignored) effectively 
returns control to the shell (e.g. bash).  The shell can send SIGCONT to resume 
the suspended process(es).

I don't think it's possible to make bash's job control work with executables 
that have not been linked with the cygwin library (which, presumably, emulates 
POSIX signal facilities).

Original comment by mb97...@gmail.com on 29 May 2014 at 7:08

GoogleCodeExporter commented 9 years ago
Actually it works with the Cygwin task (the one invoking mintty). So there is 
no more issue. The fault was on the Git bash that uses Msys bash version 3.1.

Thanks.

Original comment by amy...@gmail.com on 31 May 2014 at 1:24