File: mutt_xtitle

package info (click to toggle)
mutt 2.2.13-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 25,908 kB
  • sloc: ansic: 95,475; sh: 5,169; perl: 2,137; python: 548; makefile: 485; sed: 16
file content (9 lines) | stat: -rwxr-xr-x 311 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
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"