WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: aterm.tcz - can't see color coded texts  (Read 2475 times)

Offline amgh

  • Newbie
  • *
  • Posts: 22
aterm.tcz - can't see color coded texts
« on: March 18, 2015, 11:56:53 PM »
Hi, I recently installed TC 6.1 to one of my hard drives. (Frugal install from a USB stick.)

When I open the terminal window of aterm, I can no longer see the default colour coded texts - blue directories, green executables, etc. Everything is just white texts on black background.

On my USB stick, aterm window is fine with the default colors.

What has happened here? I can give further information if required. I think this happened once before when installing TC 6.0. I just did a reinstall of the whole TC to get back the color that time.

(Using Xorg)

Thank you.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: aterm.tcz - can't see color coded texts
« Reply #1 on: March 19, 2015, 04:34:36 AM »
You likely installed GNU ls, which defaults to colors off. Busybox ls defaults to on.

To change this with GNU ls, you'd add

alias ls="ls --color"

to your .profile.
The only barriers that can stop you are the ones you create yourself.

Offline amgh

  • Newbie
  • *
  • Posts: 22
Re: aterm.tcz - can't see color coded texts
« Reply #2 on: March 19, 2015, 11:42:18 AM »
Code: [Select]
# ~/.profile: Executed by Bourne-compatible login SHells.
#
# Path to personal scripts and executables (~/.local/bin).
[ -d "$HOME/.local/bin" ] || mkdir -p "$HOME/.local/bin"
export PATH=$HOME/.local/bin:$PATH

ONDEMAND=/etc/sysconfig/tcedir/ondemand
[ -d "$ONDEMAND" ] && export PATH=$PATH:"$ONDEMAND"

# Environment variables and prompt for Ash SHell
# or Bash. Default is a classic prompt.
#
PS1='\u@\h:\w\$ '
PAGER='less -EM'
MANPAGER='less -isR'


EDITOR=vi

export PS1 PAGER FILEMGR EDITOR MANPAGER

export BACKUP=1
[ "`id -un`" = "`cat /etc/sysconfig/tcuser`" ] && echo "$BACKUP" | sudo tee /etc/sysconfig/backup >/dev/null 2>&1
export FLWM_TITLEBAR_COLOR="58:7D:AA"

if [ -f "$HOME/.ashrc" ]; then
   export ENV="$HOME/.ashrc"
   . "$HOME/.ashrc"
fi

TERMTYPE=`/usr/bin/tty`
[ ${TERMTYPE:5:3} == "tty" ] && (
[ ! -f /etc/sysconfig/Xserver ] ||
[ -f /etc/sysconfig/text ] ||
[ -e /tmp/.X11-unix/X0 ] ||
startx
)

This is the contents of my .profile.

Can I add the suggested alias ls="ls --color" anywhere in this file? I tried the above suggestion but there was no color yet.

Thanks.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: aterm.tcz - can't see color coded texts
« Reply #3 on: March 19, 2015, 11:56:28 AM »
You need to logoff and log back in.
I would add it to .ashrc.

Offline amgh

  • Newbie
  • *
  • Posts: 22
Re: aterm.tcz - can't see color coded texts
« Reply #4 on: March 20, 2015, 10:55:53 AM »
I added the line to .ashrc, and now the terminal works with the color coded texts, back to normal.

Thank you!