Re: xterm + colors just wont splice...
In <[EMAIL PROTECTED]>, Chris Phillips <[EMAIL PROTECTED]> typed: > I too, would like to see similar colours to what I used to, when I was > running Mandrake. For example, you'd get different file types shown in > different colours (when doing "ls") & even in vi you'd get code coloured > in a nice & helpful fashion. Editing HTML was a joy! You can either alias ls to "ls -C", or install the gnuls port and make sure that ls is first in your path. You may need to find which vi - there are at least three - you were using on mandrake, and install that. Other than the system one, there are vim and nvi in the ports. Hopefully, a vi user will chime in with which ones do syntax coloring. > My favoured shell is zsh (it's what we use at work, so I am sticking > with it) & I've searched for some .zshrc examples but not had any great > joy I'm afraid. zsh does colors just fine if you set the term type to xterm-color. You need to do: autoload -U colors colors in your .zshrc to enable them, then you can use them in your prompts. I set my RPROPMT like so: RPROMPT=" %{$fg_no_bold[magenta]%}%~%{$reset_color%}" to have it display the current directory in magenta. As an aside, one of the things I *hated* about a couple of linux distributions was that they enabled colors for things by default. In three differente places. Turning that stuff off was a major pain. I can understand having it on by default, but I ought to be able to turn it off by editing my .bashrc (or similar), without having to edit two system files as well. http://www.mired.org/consulting.html Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: xterm + colors just wont splice...
Chris Phillips wrote: On Wed, 2003-02-26 at 05:13, Thanos Tsouanas wrote: Ive never managed to see colored output on an Xterm on FreeBSD.. i mean, the -bg, -fg switches work fine... but i cant see the colors of vim, nor when i ls -G etc etc. Any ideas? Try changing your TERM to xterm-color. -Matt Hi yall! I too, would like to see similar colours to what I used to, when I was running Mandrake. For example, you'd get different file types shown in different colours (when doing "ls") & even in vi you'd get code coloured in a nice & helpful fashion. Editing HTML was a joy! My favoured shell is zsh (it's what we use at work, so I am sticking with it) & I've searched for some .zshrc examples but not had any great joy I'm afraid. Please can somebody point me in the right direction? The TERM setting isn't the only thing you need to do. ls doesn't use colors by default, so you need to configure it to use colors. vi is the same (as far as I know). See the man page for each program that you want to see colors with, to see how to configure it for color. Most of these programs will let you set an environment varialbe in (in your case) the .zshrc file. For example, in ls you set CLICOLOR and LSCOLORS. -- Bill Moran Potential Technologies http://www.potentialtech.com To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: xterm + colors just wont splice...
> On Wed, 2003-02-26 at 05:13, Thanos Tsouanas wrote: > > > > Ive never managed to see colored output on an Xterm on FreeBSD.. > > i mean, the -bg, -fg switches work fine... > > but i cant see the colors of vim, nor when i ls -G etc etc. > > > > Any ideas? > > > > Try changing your TERM to xterm-color. > -Matt > -- Hi yall! I too, would like to see similar colours to what I used to, when I was running Mandrake. For example, you'd get different file types shown in different colours (when doing "ls") & even in vi you'd get code coloured in a nice & helpful fashion. Editing HTML was a joy! My favoured shell is zsh (it's what we use at work, so I am sticking with it) & I've searched for some .zshrc examples but not had any great joy I'm afraid. Please can somebody point me in the right direction? Thanks ;-) FYI: - http://www.furrie.net/cgi-bin/uname-a.pl http://www.furrie.net/cgi-bin/dmesg.pl (The output of this is a little worrying... Eeek!) http://www.furrie.net/cgi-bin/uptime.pl http://www.furrie.net/cgi-bin/printenv Obviously, not all of these are usefull. I'm learning stuff though :-) intY has scanned this email for all known viruses (www.inty.com) To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: xterm + colors just wont splice...
On Wed, 2003-02-26 at 05:13, Thanos Tsouanas wrote: > Hello everyone! > > Ive never managed to see colored output on an Xterm on FreeBSD.. > i mean, the -bg, -fg switches work fine... > but i cant see the colors of vim, nor when i ls -G etc etc. > > Any ideas? > > Thanks! > > __ > Do you Yahoo!? > Yahoo! Tax Center - forms, calculators, tips, more > http://taxes.yahoo.com/ > > To Unsubscribe: send mail to [EMAIL PROTECTED] > with "unsubscribe freebsd-questions" in the body of the message Try changing your TERM to xterm-color. -Matt -- Matt Smith <[EMAIL PROTECTED]> To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: xterm + colors just wont splice...
On Wed, Feb 26, 2003 at 06:05:22AM -0800, Thanos Tsouanas wrote: > > --- Miguel Mendez <[EMAIL PROTECTED]> wrote: > > On Wed, 26 Feb 2003 02:32:33 -0800 (PST) > > Thanos Tsouanas <[EMAIL PROTECTED]> wrote: > > > > Howdy. > > > > > when i run 'xterm' i still get the same problem... > > > btw, i dont have an xterm-color binary or sth like that... > > > > Okay, so what happens if you do something like: xterm -bg black -fg > > white -tn xterm-color and then try ls -G, still no colours? > > > > Superthanks! it works fine.. > > I also saw on the man xterm that theres something i can add to my > (non-existent) ~/.Xdefaults file.. > I added it though by default xterm runs colorless... > Any ways i can 'embed' the -tn xterm-color into xterm (w/o an alias i mean) > or change something that wud mean all similar applications to run in color-mode? Add this snippet to your ~/.bashrc (will need a slight rewrite to make it work under csh): if [ $TERM == "xterm" ]; then export TERM=xterm-color fi Since xterm sets TERM when it starts up, this approach is reasonably safe. It will only alter the value of $TERM if it has already been set to xterm. It will leave $TERM as cons25, for example, when you log in to a tty. It works well for me. Dan -- Daniel Bye PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc PGP Key fingerprint: 3D73 AF47 D448 C5CA 88B4 0DCF 849C 1C33 3C48 2CDC _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: xterm + colors just wont splice...
--- Miguel Mendez <[EMAIL PROTECTED]> wrote: > On Wed, 26 Feb 2003 02:32:33 -0800 (PST) > Thanos Tsouanas <[EMAIL PROTECTED]> wrote: > > Howdy. > > > when i run 'xterm' i still get the same problem... > > btw, i dont have an xterm-color binary or sth like that... > > Okay, so what happens if you do something like: xterm -bg black -fg > white -tn xterm-color and then try ls -G, still no colours? > Superthanks! it works fine.. I also saw on the man xterm that theres something i can add to my (non-existent) ~/.Xdefaults file.. I added it though by default xterm runs colorless... Any ways i can 'embed' the -tn xterm-color into xterm (w/o an alias i mean) or change something that wud mean all similar applications to run in color-mode? Thanks again!!! __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: xterm + colors just wont splice...
On Wed, 26 Feb 2003 02:13:52 -0800 (PST) Thanos Tsouanas <[EMAIL PROTECTED]> wrote: Howdy. > Ive never managed to see colored output on an Xterm on FreeBSD.. > i mean, the -bg, -fg switches work fine... > but i cant see the colors of vim, nor when i ls -G etc etc. If you are using -STABLE, try setting TERM to xterm-color Cheers, -- Miguel Mendez - [EMAIL PROTECTED] GPG Public Key :: http://energyhq.homeip.net/files/pubkey.txt EnergyHQ :: http://www.energyhq.tk Of course it runs NetBSD! Tired of Spam? -> http://www.trustic.com pgp0.pgp Description: PGP signature