daragan / mintty

Automatically exported from code.google.com/p/mintty
GNU General Public License v3.0
0 stars 0 forks source link

"--hold" should show that the program has been exited #437

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I'm using mintty to run sh scripts with double-click like:

mintty.exe [...] --hold always [...] /bin/bash -li "%1" %*

I need `--hold always` as some scripts print important info about what they 
did. Problem is, for scripts that don't print something right before they exit 
successfully, you can't tell if the script is still running, or it's only the 
`--hold` that keeps the window open and you could close it.

I think when the program has exited and Mintty "holds" the window, there should 
be prominent indication of that. Maybe it should print a line with green 
backround that says "Execution finished successfully - press Enter to close" or 
with red backround "Execution terminated with error code 123 - press Enter to 
close". (It would be even better if the tray icon gets a little green or red 
dot, so just be looking at the tray you know if the script has finished in the 
background.)

Original issue reported on code.google.com by daniel.d...@gmail.com on 12 Nov 2014 at 2:03

GoogleCodeExporter commented 8 years ago
Neither xterm nor urxvt provides any indication with their -hold option either.
Suggest to change the script to provide indication.

Original comment by towom...@googlemail.com on 5 Mar 2015 at 9:44

GoogleCodeExporter commented 8 years ago
Why's it relevant what xterm or urxvt don't do? Does that have any technical 
implications on mintty?

Original comment by daniel.d...@gmail.com on 5 Mar 2015 at 8:47

GoogleCodeExporter commented 8 years ago
See https://github.com/mintty/mintty/issues/437

Original comment by towom...@googlemail.com on 16 Jul 2015 at 5:49