LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-09-2015, 10:51 AM   #1
iwtbf
Member
 
Registered: Apr 2009
Location: cybernetic space
Distribution: debian
Posts: 40

Rep: Reputation: 1
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.

Last edited by iwtbf; 01-10-2015 at 09:55 AM. Reason: added bash note
 
Old 01-09-2015, 08:20 PM   #2
joe_2000
Member
 
Registered: Jul 2012
Location: Aachen, Germany
Distribution: Void, Debian
Posts: 808

Rep: Reputation: 216Reputation: 216Reputation: 216
Quote:
Originally Posted by iwtbf View Post
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.
 
Old 01-10-2015, 01:15 AM   #3
igadoter
Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: slackware 12.2, scientific linux 6.4, knoppix 7.2, salix 14.1
Posts: 854

Rep: Reputation: 79
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!
 
1 members found this post helpful.
Old 01-10-2015, 04:09 AM   #4
iwtbf
Member
 
Registered: Apr 2009
Location: cybernetic space
Distribution: debian
Posts: 40

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by joe_2000 View Post
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.

Last edited by iwtbf; 01-10-2015 at 04:42 AM.
 
Old 01-10-2015, 06:28 AM   #5
joe_2000
Member
 
Registered: Jul 2012
Location: Aachen, Germany
Distribution: Void, Debian
Posts: 808

Rep: Reputation: 216Reputation: 216Reputation: 216
Quote:
Originally Posted by iwtbf View Post
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...
 
Old 01-10-2015, 06:30 AM   #6
joe_2000
Member
 
Registered: Jul 2012
Location: Aachen, Germany
Distribution: Void, Debian
Posts: 808

Rep: Reputation: 216Reputation: 216Reputation: 216
Quote:
Originally Posted by igadoter View Post
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...
 
Old 01-10-2015, 09:55 AM   #7
iwtbf
Member
 
Registered: Apr 2009
Location: cybernetic space
Distribution: debian
Posts: 40

Original Poster
Rep: Reputation: 1
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)
 
1 members found this post helpful.
  


Reply

Tags
mutt, xterm


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Terminal xterm Title is too dynamic (title doesn't change manually) ZeroDaHero Slackware 4 11-04-2012 01:16 PM
set terminal-title dynamically clifan Linux - Server 2 04-22-2010 07:07 AM
Can you dynamically set the title of new tabs in gnome terminal? hroit Linux - General 9 08-23-2007 04:22 PM
Can you dynamically set the title of new tabs in gnome terminal? hroit Linux - General 1 08-13-2007 05:24 AM
How to set the window title for Eterm dynamically? MiscGeek Linux - Software 4 09-29-2003 10:33 PM


All times are GMT -5. The time now is 08:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration