Finding the last foreground command in the current session

2015-02-05 Thread Debarshi Ray
Hey, I work on gnome-terminal. I am trying to add support for notifying the user when a long-running command finishes in an inactive tab or window. I am currently emitting a custom escape sequence [1] from PROMPT_COMMAND, with the command parsed from $(history 1) as an argument. However, we are

Finding the last foreground command in the current session

2015-02-05 Thread Debarshi Ray
Hey, I work on gnome-terminal. I am trying to add support for notifying the user when a long-running command finishes in an inactive tab or window. I am currently emitting a custom escape sequence [1] from PROMPT_COMMAND, with the command parsed from $(history 1) as an argument. However, we are

Re: Finding the last foreground command in the current session

2015-05-22 Thread Debarshi Ray
Hey, Any further comments / questions / progress regarding this? Can I help in some way? Thanks, Debarshi pgpeO2RToXVkn.pgp Description: PGP signature

Re: Finding the last foreground command in the current session

2015-06-09 Thread Debarshi Ray
Hey Stephane, On Fri, May 22, 2015 at 02:38:31PM +0100, Stephane Chazelas wrote: > Can you not just do a tcgetpgrp() periodically If by "periodically" you mean "polling", then no, I don't want to do that. I know a few terminal emulators do that, but it is bad for power consumption and battery li