File: mutt_xtitle

package info (click to toggle)
mutt 2.0.5-4.1%2Bdeb11u3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 26,212 kB
  • sloc: ansic: 97,386; sh: 4,703; perl: 2,018; makefile: 726; python: 547; yacc: 318
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"