Re: Colors and... nano or native pager??
On Sun, Sep 16, 2007 at 06:31:12PM -0700, [EMAIL PROTECTED] wrote: The way I see it is... if I could get rid of these bright white characters over deep black background that bother my eyes so much whenever getting a nano screen to compose a message within mutt, thus making my experience with mutt so much more pleasant for the next few months (before switching to vim) - and it should take a couple of minutes to make such change when someone who has done it tells me how - then it's well worth doing. Just put: set editor=/usr/bin/vim in your .muttrc Personalise your colours for vim in your .vimrc (Obviously, this is the wrong mailing list for discussions on vim as would discussions on mutt be on a vim mailing list.) And secondly, just for the sake of being capable of doing so... Isn't this what being a linux user and a mutt user is all about? :) Not quite all, :-). Helps avoid malware. -- Chris. ==
Re: Colors and... nano or native pager??
On Mon, Sep 17, 2007 at 07:42:55AM -0700, [EMAIL PROTECTED] wrote: OK, this is what I found out from experimentation and further inquiry... What I initially wanted to achieve with nano (that is, to make the whole screen background white while in console - the same as with mutt) is impossible: nano allows only for color *highlighting*, and that's all. The color background feature works only in the context of *syntax highlighting*, which is what I did not quite grasp at first. For background colors in the console: man setterm -- Chris. ==
Re: Colors and... nano or native pager??
On Mon, Sep 24, 2007 at 10:23:48AM -0400, Chris Bannister wrote: Just put: set editor=/usr/bin/vim in your .muttrc Personalise your colours for vim in your .vimrc (Obviously, this is the wrong mailing list for discussions on vim as would discussions on mutt be on a vim mailing list.) Well, I can do that now, having dropped nano and installed vim, following the advice I got here at the time... You are right, this is probably not the right place to discuss vim. Franz pgpdPVS3IsgKJ.pgp Description: PGP signature
Re: Colors and... nano or native pager??
--- cga2000 [EMAIL PROTECTED] schrieb: (1) http://www.viemu.com/a_vi_vim_graphical_cheat_sheet_tutorial.html (2) http://www.cs.cmu.edu/~maverick/VimColorSchemeTest/ Thanks!!! Franz Die etwas anderen Infos rund um das Thema Reisen. BE A BETTER WELTENBUMMLER! www.yahoo.de/clever
Re: Colors and... nano or native pager??
Hallo Franz, So, are you a lot of you guys using external textmode editors in the place of Mutt's primitive one? What are the intelligent Yes, I use joe. alternatives? Is it feasible, then, to make your external textmode editor match mutt's colors? I went the other way round and configured mutt to match the color settings coming with joe: http://www.lespocky.de/lheismut.htm#mutt (the color config is almost at the bottom of the screen in section Farben in mutt) Greets Alex -- * http://www.lespocky.de *** GnuPG-FP: 02C8 A590 7FE5 CA5F 3601 D1D5 8FBA 7744 CC87 10D0 pgpGCOC9BqDj9.pgp Description: PGP signature
Re: Colors and... nano or native pager??
* Alexander Dahl [EMAIL PROTECTED] wrote: So, are you a lot of you guys using external textmode editors in the place of Mutt's primitive one? What are the intelligent Yes, I use joe. Me too, but I didn't adapt the color config. It's an editor, not a painter ;p -- left blank, right bald pgpnYvYWpevs0.pgp Description: PGP signature
Re: Colors and... nano or native pager??
OK, this is what I found out from experimentation and further inquiry... What I initially wanted to achieve with nano (that is, to make the whole screen background white while in console - the same as with mutt) is impossible: nano allows only for color *highlighting*, and that's all. The color background feature works only in the context of *syntax highlighting*, which is what I did not quite grasp at first. Of course, you can have the whole background white (or any other color) when nanoing within an X terminal... As far as making nano exhibit the same color patterns as mutt (when in an X terminal), here is the syntax of a rudimentary mutt colors .nanorc configuration I made:: ### # MUTT COLORS # ### syntax default color black,white . color blue,white ^From:.* color blue,white ^To:.* color blue,white ^Date:.* color blue,white ^Reply-To:.* color blue,white ^Cc:.* color blue,white ^Bcc:.* color red,white ^Subject:.* color blue,white ^X-Spam-Status:.* color blue,white (https?|ftp)://[\-\.,/%~_:?=3D\#a-zA-Z0-9]+.* color blue,white ^.* color magenta,white ^ .* color red,white ^ .* color green,white ^ .* color black,cyan ^gpg: Signature made.* color black,green ^gpg: Good signature from +.* color black,yellow^gpg: Can't check signature +.* color black,yellow^gpg: WARNING: .* color white,red ^gpg: BAD signature from.* END OF MUTT COLORS ## I am posting this information should someone following this thread find it useful. Franz
Re: Colors and... nano or native pager??
On Sun, Sep 16, 2007 at 11:03:05AM -0700, Gary Johnson wrote: I don't know what you mean by mutt's editor/pager. Mutt uses: o a line editor for editing the command line, which is built-in; o a pager, which can be built-in or external; o a line editor for editing messages in mailx mode, which is built-in; o a text editor for editing messages in any other mode, which is external. What if editor=builtin? Is that what you mean by mailx mode? -- Darren Dunham [EMAIL PROTECTED] Senior Technical Consultant TAOShttp://www.taos.com/ Got some Dr Pepper? San Francisco, CA bay area This line left intentionally blank to confuse you.
Re: Colors and... nano or native pager??
On 2007-09-17, A Darren Dunham [EMAIL PROTECTED] wrote: On Sun, Sep 16, 2007 at 11:03:05AM -0700, Gary Johnson wrote: I don't know what you mean by mutt's editor/pager. Mutt uses: o a line editor for editing the command line, which is built-in; o a pager, which can be built-in or external; o a line editor for editing messages in mailx mode, which is built-in; o a text editor for editing messages in any other mode, which is external. What if editor=builtin? Is that what you mean by mailx mode? What I meant by mailx mode is this from the man page: OPTIONS ... -x Emulate the mailx compose mode. That is the only way I've ever seen mutt use its built-in editor for editing messages. Before I wrote that reply I checked to see if setting 'editor' to builtin would really work. I tested it by trying to edit ('e') a message, which failed because mutt tried to invoke builtin as an external command. That was not the smartest test I could have run. I concluded that setting 'editor' to builtin did not work. Just now I set 'editor' to builtin again to verify my earlier results, but tested it by replying to a message. It worked! So I stand corrected: Mutt does have an internal editor that can be invoked from the normal UI. Thanks, Darren, for asking the question. I learned something new about mutt. I apologize for leading anyone astray with my earlier reply. Regards, Gary
Colors and... nano or native pager??
Hello everyone, this is my first message and I am new to Mutt... installed 1.4.2.3 a few days ago... so far the learning curve seems to be pretty steep, but at last I got to the point where I am actually emailing with it. :) I use it from console most of the time and tried a couple of color combinations, but the bright colors coupled with the traditional black background get to fatigue my eyes very quickly. My preference would be a white/light gray background and not-too- bright colors that are easy on the eyes. I do not know enough to create my own, so can someone suggest where some good code to that extent for my .muttrc can be found? Also, I am debating whether to keep nano as editor (which makes it much easier for me at this time) or force myself to revert to the editor/pager that comes with Mutt and force myself to use that instead from the very start... Advantages/disadvantages of using an external editor? Thanks, Franz
Re: Colors and... nano or native pager??
=- [EMAIL PROTECTED] wrote on Sun 16.Sep'07 at 6:30:04 -0700 -= { color config } I do not know enough to create my own, so can someone suggest where some good code to that extent for my .muttrc can be found? See ConfigList on wiki. Advantages/disadvantages of using an external editor? External editor (which need not be GUI like nano!) is always better than mutt's built-in (if you really meant that rather than merely a _textmode_ editor like vi), because built-in is too primitive to be happy with it all the time. Then you choose between GUI (nano) and TUI (vi or the like). GUI needs X, which you sometimes don't have when you use mutt, so a TUI would be better to get used to if you expect non-X setups. As for pager: stick with mutt's as long as possible, it's powerful enough. -- © Rado S. -- You must provide YOUR effort for your goal! EVERY effort counts: at least to show your attitude. You're responsible for ALL you do: you get what you give.
Re: Colors and... nano or native pager??
On (16/09/07 06:30), [EMAIL PROTECTED] wrote: ... I use it from console most of the time and tried a couple of color combinations, but the bright colors coupled with the traditional black background get to fatigue my eyes very quickly. My preference would be a white/light gray background and not-too- bright colors that are easy on the eyes. I do not know enough to create my own, so can someone suggest where some good code to that extent for my .muttrc can be found? ... Here's one way of doing it, mostly lifted from the efforts of others. You can fiddle with colors to suit yourself, of course. ## MUTT COLORS # valid colors : white, black, green, magenta, #blue, cyan, yellow, red, # Each color comes in plain (red) and bright (brightred) # color thisthing foreground background [arguments] color normalblack default color attachment black cyan color hdrdefault cyan white color indicator black green color markers red white color index green default ~N # New color index magenta yellow ~T # Tagged color index black white ~D # Deleted color index blue default ~O# Old color index red default '~f cron' color index red default '~f Anacron' color index brightyellow black ~b '\ name.{0,9}\=.{2,30}\.zip' color index red yellow '~f root' color quoted blue white color quoted1 green white color quoted2 magenta white color quoted3 yellow white color signature red cyan color status yellow blue color tilde blue white color tree red white color header blue white ^From: color header blue white ^To: color header blue white ^Date: color header blue white ^Reply-To: color header blue white ^Cc: color header red white ^Subject: color header blue white ^X-Spam-Status: color body red white [EMAIL PROTECTED] color body blue white (https?|ftp)://[\-\.,/%~_:?=\#a-zA-Z0-9]+ # Errors will be printed in red: color error brightred brightdefault Additionally, if you are deploying gpg, you can color the messages thus: # GPG/PGP related color directives: mono bodybold^gpg: Good signature mono bodyreverse ^gpg: Bad signature from.* color bodybrightblack cyan ^gpg: Signature made.* color bodybrightblack green ^gpg: Good signature from.* color bodybrightblack yellow^gpg: Can't check signature .* color bodybrightblack yellow^gpg: WARNING: .* color bodybrightwhite red ^gpg: BAD signature from.* HTH -- [EMAIL PROTECTED] GPG key 1024D/99421A63 2005-01-05 EE51 79E9 F244 D734 A012 1CEC 7813 9FE9 9942 1A63 gpg --keyserver subkeys.pgp.net --recv-keys 99421A63 signature.asc Description: Digital signature
Re: Colors and... nano or native pager??
On 2007-09-16, [EMAIL PROTECTED] wrote: I use it from console most of the time and tried a couple of color combinations, but the bright colors coupled with the traditional black background get to fatigue my eyes very quickly. My preference would be a white/light gray background and not-too- bright colors that are easy on the eyes. I do not know enough to create my own, so can someone suggest where some good code to that extent for my .muttrc can be found? The color settings in your .muttrc allow you to choose from the palette provided by your terminal program. That is, for example, you can choose the terminal's red, the terminal's blue or the terminal's brightred, but if you want a different shade of red you'll have to change the color(s) used by the terminal and that is typically done in ~/.Xdefaults, if you're using an X terminal. Also, I am debating whether to keep nano as editor (which makes it much easier for me at this time) or force myself to revert to the editor/pager that comes with Mutt and force myself to use that instead from the very start... Advantages/disadvantages of using an external editor? I don't know what you mean by mutt's editor/pager. Mutt uses: o a line editor for editing the command line, which is built-in; o a pager, which can be built-in or external; o a line editor for editing messages in mailx mode, which is built-in; o a text editor for editing messages in any other mode, which is external. Other than when in mailx mode, and I doubt you're using that, mutt has no internal text editor. It always uses an external editor for editing messages and defaults to using $EDITOR, $VISUAL or vi. So your choices are nano or some other external editor. If you're happy using nano, keep using it. I'd recommend using mutt's internal pager. It has all the features you need for reading e-mail and you can execute mutt commands while in the pager, which you can't do from an external pager. HTH, Gary
Re: Colors and... nano or native pager??
On Sun, Sep 16, 2007 at 03:44:42PM +0200, Rado S wrote: External editor (which need not be GUI like nano!) is always better than mutt's built-in (if you really meant that rather than merely a _textmode_ editor like vi), because built-in is too primitive to be happy with it all the time. Then you choose between GUI (nano) and TUI (vi or the like). GUI needs X, which you sometimes don't have when you use mutt, so a TUI would be better to get used to if you expect non-X setups. As for pager: stick with mutt's as long as possible, it's powerful enough. Actually nano is a tiny textmode console editor, very much like pico and vi, and does not need X. So, are you a lot of you guys using external textmode editors in the place of Mutt's primitive one? What are the intelligent alternatives? Is it feasible, then, to make your external textmode editor match mutt's colors? Franz
Re: Colors and... nano or native pager??
On 2007-09-16, [EMAIL PROTECTED] wrote: On Sun, Sep 16, 2007 at 11:03:05AM -0700, Gary Johnson wrote: HTH, Gary HTH, Franz (what's HTH?) Hope That Helps or Hope This Helps. Regards, Gary
Re: Colors and... nano or native pager??
On (16/09/07 12:28), [EMAIL PROTECTED] wrote: ... So, are you a lot of you guys using external textmode editors in the place of Mutt's primitive one? What are the intelligent alternatives? Is it feasible, then, to make your external textmode editor match mutt's colors? I flinch at the thought of the flame-wars that may result from this simple factual statement: my .muttrc reads # set my choice for editor set editor=/usr/bin/emacs-snapshot -geometry 75x39 Substitute the emacs or other editor of your choice. By the way, emacs-snapshot is available by adding to your /etc/apt/sources.list: deb http://emacs.orebokech.com sid main -- [EMAIL PROTECTED] GPG key 1024D/99421A63 2005-01-05 EE51 79E9 F244 D734 A012 1CEC 7813 9FE9 9942 1A63 gpg --keyserver subkeys.pgp.net --recv-keys 99421A63 signature.asc Description: Digital signature
Re: Colors and... nano or native pager??
On Sun, Sep 16, 2007 at 03:21:29PM EDT, [EMAIL PROTECTED] wrote: On Sun, Sep 16, 2007 at 11:25:05AM -0400, John wrote: Here's one way of doing it, mostly lifted from the efforts of others. You can fiddle with colors to suit yourself, of course. Thank you so very much, John. Actually, right after looking at your code I started fiddling with it as suggested, and I came up with something quite satisfactory to my taste. The only thing, at this line: color normalblack default I had to change default to white in order to get a white background. Also changed a few others things... and this totally takes care of my first question. Thanks again! It's been very much appreciated. As to the other question, mutt's vs. an external text editor, if I were to keep nano for the time being, how would I go about making nano display the same color pattern I have already achieved in mutt? Dunno about nano but you certainly could do it with vim. http://www.geocities.com/fcky1000/fcky/pager.png http://www.geocities.com/fcky1000/fcky/editor.png Time to switch?
Re: Colors and... nano or native pager??
On Sun, Sep 16, 2007 at 01:14:59PM -0700, Gary Johnson wrote: On 2007-09-16, [EMAIL PROTECTED] wrote: (what's HTH?) Hope That Helps or Hope This Helps. Yes, very much, thanks. You guys have been very much helpful... What I still would like to know is, do I have to accept using nano (as Mutt's email editor) in black white, or is it possible to make nano display the same colors (as mutt displays based on the .muttrc configuration file?) I built nano 2.0.6 configured with color and .nanorc (the nano configuration file) enabled. Can some of you who are using the nano editor with colors kindly let me know how to do it, or where to learn more about it? The nano manual and instructions for the .nanorc don't seem to help at all... Franz
Re: Colors and... nano or native pager??
On Sun, Sep 16, 2007 at 06:16:31PM -0400, John wrote: I flinch at the thought of the flame-wars that may result from this simple factual statement: my .muttrc reads # set my choice for editor set editor=/usr/bin/emacs-snapshot -geometry 75x39 Substitute the emacs or other editor of your choice. By the way, emacs-snapshot is available by adding to your /etc/apt/sources.list: deb http://emacs.orebokech.com sid main Using nano (a tiny 100 KB editor), the color configuration needs to be done in the .nanorc config file in the home directory. It features complex regex rules (at least to me, that is)... I don't think nano would be capable of using what you pointed out... then, again, I might be wrong. There's got to be someone here who is an expert on mutt and nano... Franz
Re: Colors and... nano or native pager??
On 16.09.2007 (15:36), [EMAIL PROTECTED] wrote: What I still would like to know is, do I have to accept using nano (as Mutt's email editor) in black white, or is it possible to make nano display the same colors (as mutt displays based on the .muttrc configuration file?) Is this perhaps the place to suggest a switch to vim...? Not only is it the best editor in existence, it also has any color scheme imaginable (and then some). For nano, you could google nanorc. At dotfiles, there are some. I don't know how they work, though. Try them out: http://www.dotfiles.com/index.php?cat_id=9 -- Our timetable will achieve the stature of a natural phenomenon. A planet's life is a vast, tightly interwoven fabric. Vegetation and animal changes will be determined at first by the raw physical forces we manipulate. As they establish themselves, though, our changes will become controlling influences in their own right -- and we will have to deal with them, too. Keep in mind, though, that we need control only three percent of the energy surface -- only three percent -- to tip the entire structure over into our self-sustaining system. -- PARDOT KYNES, Arrakis Dreams
Re: Colors and... nano or native pager??
On Mon, Sep 17, 2007 at 12:59:26AM +0200, Eyolf ?strem wrote: Is this perhaps the place to suggest a switch to vim...? Not only is it the best editor in existence, it also has any color scheme imaginable (and then some). For nano, you could google nanorc. At dotfiles, there are some. I don't know how they work, though. Try them out: http://www.dotfiles.com/index.php?cat_id=9 Learning vim, as I just said in my previous message, is one of my future plans... At this time I would like to concentrate on learning mutt, and doing it well. Those .nanorc files on the web basically deviate very little to not at all from the .nanorc included with the nano distribution. The only reference to mutt (email) colors I was able to find so far is: syntax mutt color green .* That's all... There must be someone here who has used nano with mutt... and hopefully they'll read this thread sooner or later... Franz
Re: Colors and... nano or native pager??
On Sun, Sep 16, 2007 at 07:19:11PM EDT, [EMAIL PROTECTED] wrote: On Mon, Sep 17, 2007 at 12:59:26AM +0200, Eyolf ?strem wrote: Is this perhaps the place to suggest a switch to vim...? Not only is it the best editor in existence, it also has any color scheme imaginable (and then some). For nano, you could google nanorc. At dotfiles, there are some. I don't know how they work, though. Try them out: http://www.dotfiles.com/index.php?cat_id=9 Learning vim, as I just said in my previous message, is one of my future plans... At this time I would like to concentrate on learning mutt, and doing it well. If you plan to switch to vim at some point in the future, why would you want to bother about such trivial aspects as nano coloring? Don't waste time fine-tuning a car that's headed for the junkyard.
Re: Colors and... nano or native pager??
On Sun, Sep 16, 2007 at 09:15:12PM -0400, cga2000 wrote: If you plan to switch to vim at some point in the future, why would you want to bother about such trivial aspects as nano coloring? Don't waste time fine-tuning a car that's headed for the junkyard. I do appreciate your perspective... and in a sense you are right. The way I see it is... if I could get rid of these bright white characters over deep black background that bother my eyes so much whenever getting a nano screen to compose a message within mutt, thus making my experience with mutt so much more pleasant for the next few months (before switching to vim) - and it should take a couple of minutes to make such change when someone who has done it tells me how - then it's well worth doing. And secondly, just for the sake of being capable of doing so... Isn't this what being a linux user and a mutt user is all about? :)