]> git.llucax.com Git - software/mutt-debian.git/blob - contrib/mutt_xtitle
Imported Upstream version 1.5.20
[software/mutt-debian.git] / contrib / mutt_xtitle
1 #!/bin/sh
2 # Demonstration of format string pipes. Sets the xterm title and returns the
3 # string unchanged.
4 #
5 # Example usage:
6 # 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?]'|"
7
8 printf "\033]0;$1\007" > /dev/tty
9 echo "$1"