aboutsummaryrefslogtreecommitdiffstats
path: root/bin/make_css_watch
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2015-09-11 13:10:44 +0100
committerMatthew Somerville <matthew@mysociety.org>2015-09-17 11:13:33 +0100
commit9bebe5261a3aee29c55e5e3d0bcf4c8dd561537b (patch)
treed11ea3b7f996a4bb8e28a63a81853bc998d5449f /bin/make_css_watch
parent89529c8907c9c6e8edff3e8a0a75827a1e65f502 (diff)
Update terminal title with CSS writing progress.
Diffstat (limited to 'bin/make_css_watch')
-rwxr-xr-xbin/make_css_watch4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/make_css_watch b/bin/make_css_watch
index 2ae287429..d15fa3a81 100755
--- a/bin/make_css_watch
+++ b/bin/make_css_watch
@@ -45,8 +45,7 @@ if (-f "$gem_bin/compass") {
sub title {
my $what = shift;
- # TODO, check if xtitle is installed and if so, run following command:
- # system 'xtitle', $what;
+ print "\033]2;$what\007\n";
}
say sprintf "Watching [%s] for %s", (join ',' => @dirs), $filter;
@@ -92,6 +91,7 @@ while ( my @events = $watcher->wait_for_events() ) {
'--style' => 'compressed',
$dir;
}
+ title "$dir updated";
}
title 'watching';
}