|
OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD. |
|
Thread Tools | Display Modes |
|
|||
[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 Code:
colo shep set encoding=utf8 set guifont=Liberation\ Mono\ 11 au BufRead /tmp/mutt-* set tw=72 set nomodeline 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 $ 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. |
|
||||
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. |
|
|||
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:
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 |
|
|||
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 |
|
|||
Solved. See vi editor post
|
Thread Tools | |
Display Modes | |
|
|
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 |