summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorBrendan Cully <brendan@kublai.com>2007-03-14 14:04:25 -0700
committerBrendan Cully <brendan@kublai.com>2007-03-14 14:04:25 -0700
commit098ec65bbe28eeb540d8dc55cef57bb142022b3d (patch)
treee25daa9a05d7a2c25ff4c9c2fd0c264ec5e99b92 /contrib
parentabe965cfd0bcd06a01135830dcb187555cc8c57b (diff)
Add demo mutt_xtitle script
Diffstat (limited to 'contrib')
-rw-r--r--contrib/Makefile.am2
-rwxr-xr-xcontrib/mutt_xtitle9
2 files changed, 10 insertions, 1 deletions
diff --git a/contrib/Makefile.am b/contrib/Makefile.am
index 363e7928..f6e67d42 100644
--- a/contrib/Makefile.am
+++ b/contrib/Makefile.am
@@ -5,7 +5,7 @@ subdir = contrib
SAMPLES = Mush.rc Pine.rc gpg.rc pgp2.rc pgp5.rc pgp6.rc Tin.rc \
sample.muttrc sample.mailcap sample.muttrc-tlr \
colors.default colors.linux smime.rc \
- ca-bundle.crt smime_keys_test.pl
+ ca-bundle.crt smime_keys_test.pl mutt_xtitle
EXTRA_DIST = language.txt language50.txt \
patch.slang-1.2.2.keypad.1 \
diff --git a/contrib/mutt_xtitle b/contrib/mutt_xtitle
new file mode 100755
index 00000000..f9b8a23f
--- /dev/null
+++ b/contrib/mutt_xtitle
@@ -0,0 +1,9 @@
+#!/bin/sh
+# Demonstration of format string pipes. Sets the xterm title and returns the
+# string unchanged.
+#
+# Example usage:
+# set status_format="mutt_xtitle '%r %f (%L) [Msgs:%?M?%M/?%m%?n? New:%n?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?]'|"
+
+printf "\033]0;$1\007" > /dev/tty
+echo "$1"