LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to dynamically send status_format from mutt to xterm title? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-dynamically-send-status_format-from-mutt-to-xterm-title-4175530535/)

iwtbf 01-09-2015 09:51 AM

How to dynamically send status_format from mutt to xterm title?
 
When I use X I most often run mutt in xterm and I thought it might be nice to send mutt's status_format to the xterm title.

It is set as
Code:

set status_format="Mailbox is %f with %M messages [%v]  You have %n new messages."
in my .muttrc.

Is this possible and if so how to do it? Any help would really be appreciated.

I use bash btw.

joe_2000 01-09-2015 07:20 PM

Quote:

Originally Posted by iwtbf (Post 5298223)
When I use X I most often run mutt in xterm and I thought it might be nice to send mutt's status_format to the xterm title.

It is set as
Code:

set status_format="Mailbox is %f with %M messages [%v]  You have %n new messages."
in my .muttrc.

Is this possible and if so how to do it? Any help would really be appreciated.

I use bash btw.

Use your favorite search engine. One of the first results that came up for "bash set xterm title" was:

http://unix.stackexchange.com/questi...xterm-titlebar

Which seems to work just fine.

igadoter 01-10-2015 12:15 AM

Quote:
Quote:

Originally Posted by joe_2000
Use your favorite search engine.
I think it is dicouraging for OP. LQ is very good place to ask such question as OP's and to look for help. Have a nice day!

iwtbf 01-10-2015 03:09 AM

Quote:

Originally Posted by joe_2000 (Post 5298466)
Use your favorite search engine. One of the first results that came up for "bash set xterm title" was:

http://unix.stackexchange.com/questi...xterm-titlebar

Which seems to work just fine.

Thank you. But I don't really get how I should send the information from mutt to bash, I thinks that's the harder(ish) problem for me.

I found this in http://www.mutt.org/news.html

Quote:

Mutt 1.5.15 was released on April 6, 2007. This version has several new and long-standing feature patches applied in anticipation of a feature freeze toward 1.6. These include built-in SMTP, flowed mail support improvements, xterm title updating, charset improvements, GPG PKA support, etc. See the ChangeLog for full details.
But I can't find anything about it in the doc.

joe_2000 01-10-2015 05:28 AM

Quote:

Originally Posted by iwtbf (Post 5298546)
Thank you. But I don't really get how I should send the information from mutt to bash, I thinks that's the harder(ish) problem for me.

I found this in http://www.mutt.org/news.html



But I can't find anything about it in the doc.

Ah ok, sorry, missed that part. I am not using mutt myself, but there seems to be some discussion in this direction here:

http://vim.wikia.com/wiki/Automatica...t_screen_title

Maybe that helps?

The page you linked to is not very specific as to how far this new feature actually goes...

joe_2000 01-10-2015 05:30 AM

Quote:

Originally Posted by igadoter (Post 5298514)
Quote:

I think it is dicouraging for OP. LQ is very good place to ask such question as OP's and to look for help. Have a nice day!

Thanks for the comment, always good to know how one comes across. I did not mean to be discouring. That said, I also think that LQ should help people helping themselves. And sometimes this involves encouring them to use search engines...

iwtbf 01-10-2015 08:55 AM

I solved the problem. I was particularly stupid by only reading the stable version documentation of mutt. I found the solution by ctrl+f "xterm".

For other people with the same "problem";
http://www.mutt.org/doc/devel/manual...trings-filters





(I did search before starting this topic though)


All times are GMT -5. The time now is 10:24 AM.