DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 28th November 2014
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default [Solved]Mutt Colors

As a neophyte mutt user, I have been tweaking my muttrc file and had added colors. I also use
Code:
set editor="gvim -f"                            # Use gvim editor
with this ~/gvimrc
Code:
colo shep
set encoding=utf8
set guifont=Liberation\ Mono\ 11
au BufRead /tmp/mutt-* set tw=72
set nomodeline
In most configurations I use a black background and a white foreground

I trialed FreeBSD 10.1 and copied over the same configuration files. There was a marked difference the composition window for Mutt - I had more than black and white. A web search indicated that FreeBSD terminals have color by default while OpenBSD terminals (VT220) do not. I use x11/rxvt-unicode with the following ~/.Xdefaults
Code:
XTerm*loginShell:true
XTerm*background: black
XTerm*foreground: white
XTerm*scrollBar: false
XTerm*locale: utf8
XTerm*faceName: Liberation Mono:pixelsize=12:antialias=true:hinting=true
XTerm*eightBitInput: true
XTerm*pointerShape: left_ptr
XTerm*termName: rxvt-256color
! URxvt
URxvt*termName: rxvt-256color
URxvt*transparent: false
URxvt*background: black
URxvt*foreground: white
URxvt*loginShell: true
URxvt*scrollstyle: rxvt
URxvt*scrollBar: true
URxvt*scrollBar_right: true
! URxvt*scrollBar_floating: true
URxvt*scrollTtyOutput: false
URxvt*scrollWithBuffer: true
URxvt*scrollTtyKeypress: true
URxvt*scrollColor: #4c4c4c
URxvt*troughColor: #d3d3d3
URxvt*thickness: 10
URxvt*secondaryScroll: true
URxvt*saveLines: 700
URxvt*mouseWheelScrollPage: true
URxvt*cursorBlink: false
URxvt*tripleclickwords: true
URxvt*hold: false
URxvt*urlLauncher: firefox-esr
URxvt*imLocale: en_US.UTF-8
URxvt*font: xft:Liberation Mono:pixelsize=14:antialias=true:hinting=true
URxvt*boldFont: xft:Liberation Mono:pixelsize=14:antialias=true:hinting=true
! Xcalc
I have found some dated guides and while $ ls provided a colored output, gvim and the mutt composition window did not have the colors.

I am mainly interested in getting the colors in the mutt composition windows. Can anyone point me in the right direction?

Last edited by shep; 1st December 2014 at 04:02 PM.
Reply With Quote
  #2   (View Single Post)  
Old 28th November 2014
scottro's Avatar
scottro scottro is offline
Real Name: Scott Robbins
ISO Quartermaster
 
Join Date: Apr 2008
Location: NYC
Posts: 652
Default

I'm not familiar with gvim, but if the g is Gnome, there's probably some other configuration file or a GUI menu where you can provide colors.

http://vim.wikia.com/wiki/Use_the_co...colors_in_gvim

Indicates that you would set your gvim colors elsewhere than .Xdefaults Urxvt settings, but to be honest, I'm not at all familiar with gvim and hope I'm not wasting your time.

EDIT. And if I missed something and it's more a mutt issue than console issue, check your /etc/mutt/Muttrc (at least, last time I asked on this forum, many years, ago, that's where OpenBSD kept it) to make sure that there aren't colors you forgot to set that are set by default.

Meh, may as well spam my own mutt page at http://srobb.net/mutt.html

Last edited by scottro; 28th November 2014 at 06:57 PM.
Reply With Quote
  #3   (View Single Post)  
Old 28th November 2014
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

Thanks for the mutt reference. I did try your colors. One challenge is that I use csh and most of the on-line guides for setting .termcap use bash and I am trying to enable this with csh.

Quote:
EDIT. And if I missed something and it's more a mutt issue than console issue, check your /etc/mutt/Muttrc (at least, last time I asked on this forum, many years, ago, that's where OpenBSD kept it to make sure that there aren't colors you forgot to set that are set by default.
I have been centralizing most of my configuration files in ~/.config. It makes it easier when installing a new release or trying another BSD.

I invoke mutt with
$ urxvt -g 120x40 +sb -icon /usr/local/share/pixmaps/mail.png -T "Mutt Email" -e mutt -F ~/.config/mutt/muttrc -f ~/Mail/inbox.

I'm running mutt in an x11/rxvt-unicode terminal and the mutt -F flag specifies my alternative muttrc.

Last edited by shep; 28th November 2014 at 07:10 PM. Reason: readability
Reply With Quote
  #4   (View Single Post)  
Old 28th November 2014
scottro's Avatar
scottro scottro is offline
Real Name: Scott Robbins
ISO Quartermaster
 
Join Date: Apr 2008
Location: NYC
Posts: 652
Default

I think I'm missing something, but in case I'm not.... you're still using gvim, right? Just for fun, what happens if you comment that out of your ~/.muttrc, does it make a difference?

(My thought here is that gvim, from some very cursory googling, imposes its own colors, but I suspect you've already checked this and that wasn't the issue.)
Reply With Quote
  #5   (View Single Post)  
Old 29th November 2014
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

In my mutt setup, mutt opens in a rxvt-unicode terminal and I do not believe that gvim is running, commenting it out did not colorize the text in the main mutt window When I compose an email, either by "m" or from abook, a new window opens running gvim. With it commented out the composition window was rxvt-unicode running vi (uncolorized).

Vim, gvim have access to different color schemes in /usr/local/share/vim/vim74/colors. Individual users can specify the color file with a local .vimrc/.gvimrc. GVim also allows color scheme changes on the fly. When I utilize the on-the-fly changes the only thing that changes are the background/foreground colors. In OpenBSD, the only aspect that a local configuration file affects are the background/foreground colors and this is consistent across the applications: vim, gvim rxvt-unicode, mutt's main window.

Here are links to color enhanced mutt and vim. I'm not looking for something real fancy but it would be nice to have headers and quoted text contrast. I could try bash but I'm looking at that as a last resort.

When I installed colorls, the text output in rxvt-unicode was colorized but it made no difference in vim, gvim or mutt. All the foreground text was white. In the FreeBSD install, the text, using the same config files was colorized without colorls. This makes me suspicious that the problem is in the terminal/shell and that I am missing an OpenBSD specific configuration.

Last edited by shep; 29th November 2014 at 01:53 PM. Reason: ?Bash
Reply With Quote
  #6   (View Single Post)  
Old 29th November 2014
scottro's Avatar
scottro scottro is offline
Real Name: Scott Robbins
ISO Quartermaster
 
Join Date: Apr 2008
Location: NYC
Posts: 652
Default

Ah, OK, thanks for clarifying. Sorry that I couldn't be of more help.
Reply With Quote
  #7   (View Single Post)  
Old 1st December 2014
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

Solved. See vi editor post
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
no colors if starting screen in detached mode sputnik FreeBSD General 9 7th July 2011 10:41 PM
mutt & fdm qmemo General software and network 25 16th May 2011 07:23 AM
Mutt and SASL divadgnol67 OpenBSD Packages and Ports 3 11th March 2011 04:48 PM
help with mutt cssgalactic FreeBSD General 3 2nd August 2008 07:25 AM


All times are GMT. The time now is 02:16 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick