X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=init.h;h=5886c786482840c3dcc8ea5a16bda4b23664f914;hb=98ccd0a3050f3dda6c8995e1894b46b8cb7f6ba5;hp=2befb513ac6cb1e452106199d349fde9436e6afe;hpb=b4827293ce79b576beb9550b91e71a198f2f5744;p=apps%2Fmadmutt.git diff --git a/init.h b/init.h index 2befb51..5886c78 100644 --- a/init.h +++ b/init.h @@ -3578,6 +3578,20 @@ struct option_t MuttVars[] = { ** (as long as you're in an appropriate terminal). The default must ** be \fIunset\fP to force in the validity checking. */ + {"xterm_leave", DT_STR, R_BOTH, UL &XtermLeave, UL "" }, + /* + ** .pp + ** If $$xterm_set_titles is \fIset\fP, this string will be used to + ** set the title when leaving mutt-ng. For terminal-based programs, + ** there's no easy and portable way to read the current title so mutt-ng + ** cannot read it upon startup and restore it when exiting. + ** + ** .pp + ** Based on the xterm FAQ, the following might work: + ** + ** .pp + ** \fTset xterm_leave = "`test x$$$DISPLAY != x && xprop -id $$$WINDOWID | grep WM_NAME | cut -d '"' -f 2`"\fP + */ {"xterm_title", DT_STR, R_BOTH, UL &XtermTitle, UL "Mutt-ng with %?m?%m messages&no messages?%?n? [%n New]?"}, /* ** .pp