5

I'm using Cygwin with ConEmu in Windows 7. I can't suspend programs in bash using CtrlZ unless I'm using GNU/Screen.

I've seen suggestions to use mintty, and that works, but I'm not sure why it makes a difference. Is there a way to get CtrlZ to work while using ConEmu?

2
  • What do you want to do with Ctrl+Z?
    – Maximus
    Apr 10, 2013 at 11:02
  • I want to suspend Unix programs running in Cygwin (I know it won't work with Windows programs).
    – Morgan May
    Apr 11, 2013 at 21:17

2 Answers 2

2

I have a similar setup -- Cygwin bash + screen in ConEmu. Ctrl-Z works in both bash and in screen itself. Perhaps you need to upgrade to the latest Cygwin version or maybe you have already gotten past this problem.

I did notice what you were talking about, though, specifically when testing with /bin/sleep.exe. I can't suspend that with Ctrl-Z in bash, but I can inside of screen. Further, I can suspend it in bash by using kill -17 [pid of running sleep.exe] from another screen window (Ctrl-Z sends a SIGSTOP, which kill -l shows as #17). So, ya got me... something about Cygwin's sleep.exe is funky.

Sorry to reply to an old thread on here, but I was searching for answers on a similar topic -- that of suspended processes in ConEmu in general. I'll post in another thread on that subject.

1

ConEmu does not process Ctrl+Z keycombo at all. It is your console application (shell) responsibility.

But you may "pause" console output switching Conemu to alternative buffer, Win+A keycombo by default.

8
  • That’s not surprising, since ConEmu is a Windows console emulator, and (Ctrl+Z) –– and process suspension, for that matter –– are alien to Windows. Apr 10, 2013 at 23:16
  • @Scott don't know how exactly "suspension" works in *nix platforms, but ConEmu can pause console output.
    – Maximus
    Apr 11, 2013 at 9:46
  • Pausing the output with Win+A doesn't seem to let me issue new commands, which is part of what I want to do. I want Unix-style job control (which already works partially - Ctrl-C works as expected).
    – Morgan May
    Apr 11, 2013 at 21:21
  • Here's where I'm confused: with bash running on Linux, Ctrl-Z works fine. On Windows (using Cygwin), it seems to vary based on console - it works in mintty, but not in ConEmu (or a few others I've tried, like Console2). But (and here's the really confusing part) if I run screen within bash, it seems to work regardless of which console I'm using. So if it always works in screen, why doesn't it always work in bash?
    – Morgan May
    Apr 11, 2013 at 21:25
  • Why? Obviously, screen supports Ctrl+Z, bash do not supports Ctrl+Z. You may fill new issue on ConEmu project website with feature request (thorough description is required).
    – Maximus
    Apr 11, 2013 at 21:29

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .