Re: colour in the console and xterms

2003-07-09 Thread Daniel Bye
On Wed, Jul 09, 2003 at 07:40:33AM -0400, William O'Higgins wrote:
 I am trying to migrate to FreeBSD from Linux, but some things just
 aren't working the way I'd like.
 
 When I launch an xterm it honours my .bashrc, and I get my custom prompt,
 which includes colour, but no other colour seems to work - not vim, not
 ls -G, not mutt.
 
 In the console, however, I never get the prompt or the aliases specified
 in my .bashrc, and I never get colour.  Any pointers?  Thanks.

Make a ~/.Xdefaults file, that contains at least this:

XTerm*termName: xterm-color

You can also customise geometry, background and foreground colour,
scrollbar, etc.  Check out man xterm for the gory details.

HTH

Dan

-- 
Daniel Bye

PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc
PGP Key fingerprint: 3B9D 8BBB EB03 BA83 5DB4 3B88 86FC F03A 90A1 BE8F
 _
  ASCII ribbon campaign ( )
 - against HTML, vCards and  X
- proprietary attachments in e-mail / \


pgp0.pgp
Description: PGP signature


Re: colour in the console and xterms

2003-07-09 Thread Daniel Bye
On Wed, Jul 09, 2003 at 12:47:42PM +0100, Daniel Bye wrote:
 On Wed, Jul 09, 2003 at 07:40:33AM -0400, William O'Higgins wrote:
  I am trying to migrate to FreeBSD from Linux, but some things just
  aren't working the way I'd like.
  
  When I launch an xterm it honours my .bashrc, and I get my custom prompt,
  which includes colour, but no other colour seems to work - not vim, not
  ls -G, not mutt.
  
  In the console, however, I never get the prompt or the aliases specified
  in my .bashrc, and I never get colour.  Any pointers?  Thanks.

Sorry - hit send too early.

To get the console bits working, you need also to create a ~/.bash_profile,
from which you source ~/.bashrc.  When started as a login shell, bash looks
for ~/.bash_profile, not ~/.bashrc.  When started as an interactive
subshell, which is what happens when you start xterm, it looks for
~/.bashrc.

This way, you can logically separate setup that only needs to be done once
per login session (exporting certain env variables, setting up ssh-agent,
etc), and things that can be set each time a shell starts up.  (All I do
with my ~/.bashrc is read a file of shell aliases, and source the
system-wide /etc/bashrc, where I define suitable globals like $PS1, etc.)

As for the colour, I'm afraid I don't know - my $TERM is the default cons25,
and colour works just fine with `ls -G'.

HTH

Dan

 
 Make a ~/.Xdefaults file, that contains at least this:
 
 XTerm*termName: xterm-color
 
 You can also customise geometry, background and foreground colour,
 scrollbar, etc.  Check out man xterm for the gory details.

-- 
Daniel Bye

PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc
PGP Key fingerprint: 3B9D 8BBB EB03 BA83 5DB4 3B88 86FC F03A 90A1 BE8F
 _
  ASCII ribbon campaign ( )
 - against HTML, vCards and  X
- proprietary attachments in e-mail / \


pgp0.pgp
Description: PGP signature