Ben Liblit 5c4acc8ee1 Notify vte-based terminals when a command completes.
Notification is sent using an OSC 777 escape sequence as described at
http://known.phyks.me/2014/local-notifications-for-weechat-and-urxvt.
The specific notification is crafted to match that emitted by bash
when running under Fedora 22 with the "vte-profile" RPM installed.
See the code for "__vte_prompt_command" starting at
http://pkgs.fedoraproject.org/cgit/vte291.git/tree/vte291-command-notify.patch#n307
to see exactly what bash produces.  My approach is, however, a bit
more paranoid about control characters embedded in commands.

Gnome-terminal 3.16 responds to this escape sequence by posting a
desktop notification if the containing terminal window does not have
focus.  This lets the user know that a long-running background command
has completed.  Job notification is promoted as a Fedora 22 feature
(http://fedoramagazine.org/terminal-job-notifications-in-fedora-22-workstation/),
so it would be good for fish users to be benefit from it.

Conversely, anyone who does not want this feature can use "functions
--erase __notify_vte_command_completed" to turn it off.
2015-05-28 03:10:56 -05:00
..
2010-09-18 10:18:26 +08:00
2013-07-18 21:26:32 +05:30
2013-09-12 11:46:31 +02:00
2014-01-20 21:28:54 +04:00
2014-01-20 17:12:32 +04:00
2010-09-18 10:18:26 +08:00
2012-09-22 23:49:26 -07:00
2015-01-17 15:36:30 -08:00
2014-01-20 21:28:54 +04:00
2014-08-29 13:15:13 -07:00
2014-10-17 11:50:09 -07:00
2014-11-25 08:48:16 +08:00
2013-02-17 12:56:56 -08:00
2010-09-19 13:56:30 +08:00
2013-04-28 16:31:25 -07:00
2014-07-29 01:43:18 -04:00
2014-11-09 16:43:14 -08:00