SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2013-04-29 16:01:56

jigenbakuda
Member
Registered: 2013-04-16
Posts: 17

How to Make Colored Text in Terminator???

So before I found my way to crunchbang I was using sabayon linux (kde) and in konsole they have a very very sweet set up out of the box. I believe they modded konsole to have colored text everywhere for different kinds of text (information it was representing) and I would really like to know how I can do that myself.


My terminator, it has different colors at times, but not what I'm looking for.
terminalscreenshot_zps8845fef7.jpg

Two examples of how konsole in sabayon looks
konsolescreenshot_zps21943f85.jpg
entropy_zpsa6599c9b.jpg

Any tips would be much appreciated. I also don't mind if I have to do some moderate tinkering to achieve the goal, but I am not a master, so its its too hardcore to change it, I probably won't do it, lol.

Thanks guys for looking at my thread, and thanks a bunch more if you can contribute to my issue.

Moderator Edit - Image Resize

----------------------------------------------------------------------------------------------------------------------------
Please use thumbnails (please try to avoid the large thumbnail imgur.com code) linking to the larger image to help those of us with slow connections. An example of the code needed is below. Most image hosting sites will automatically generate this for you as well. Users have been using postimage.org lately which does a nice job.

[url=http://link.to.your.fullsized.image][img]http://link.to.your.thumbnail.image[/img][/url]

Offline

Be excellent to each other!

#2 2013-04-29 16:39:41

wuxmedia
wookiee madclaw
From: Back in Blighty
Registered: 2012-03-09
Posts: 1,469
Website

Re: How to Make Colored Text in Terminator???

Have a look at this one;
https://wiki.archlinux.org/index.php/Color_Bash_Prompt

Btw the pix youve put up are of a script running, which could be anything the writers wanted.

Offline

#3 2013-04-29 17:35:16

jigenbakuda
Member
Registered: 2013-04-16
Posts: 17

Re: How to Make Colored Text in Terminator???

Thanks for the link, I will investigate it. But I thought konsole on sabayon looks like that all the time, whether its running a script or not, but in my hasty search I could not find a screenie of just konsole.

Its highly possible that I have no idea what I'm talking about, lol. Are man pages scripts too? I logged on my old pc and pulled up the konsole, and like the equo commands are all colorful, but when I was using python in the konsole, it was standard white letters. So maybe I don't know the correct terminology to ask the right question. For that I apologize.



Example of colorful text, script or just the terminal?
konsolesnapshot1_zpsa019e584.png

Offline

#4 2013-04-29 17:50:33

wuxmedia
wookiee madclaw
From: Back in Blighty
Registered: 2012-03-09
Posts: 1,469
Website

Re: How to Make Colored Text in Terminator???

Yes that's what the link should get you
You'll need to edit the.bashrc file as the arch wiki.
You could try a search here too.

The other thing is syntax highlighting. For example editing,
If they are set enabling the colour should make man page in colour right away.
I'd post you mine but I'm on the tablet :-)

Offline

#5 2013-04-29 18:27:08

jigenbakuda
Member
Registered: 2013-04-16
Posts: 17

Re: How to Make Colored Text in Terminator???

Thanks so much wuxmedia. I'll be sure to follow that arch guide, it seems simple enough. Thanks for the help and the vocabulary lesson.

Last edited by jigenbakuda (2013-04-29 18:27:25)

Offline

#6 2013-04-29 22:34:06

dura
Bloated Gimp
From: interzone
Registered: 2012-09-15
Posts: 2,106

Re: How to Make Colored Text in Terminator???

If I remember correctly, Terminator right click preferences allows custom terminal colours, which would otherwise be accessed through terminatorrc or something...... Or make an .Xdefaults

Last edited by dura (2013-04-29 22:35:51)

Offline

#7 2013-04-30 03:37:15

dkeg
#! Die Hard
From: Mid-Atlantic Grill
Registered: 2011-12-05
Posts: 716

Re: How to Make Colored Text in Terminator???

i'm not sure what Sabayon does in their setup, however depends on what you're using to view / edit text files.  If you're using VIM, you may need to install VIM.  Yes, Vi comes included by default, but without installing VIM, you'll get no syntax highlighting.  So install VIM, then navigate to

/etc/vim/vimrc

and uncomment syntax on and other stuff.  Read through it.   Restart your shell. 

If you use nano, there is a nanorc, but I don't have any experience messing with that.


grill it | the rocky path may just be the best path

Offline

#8 2013-04-30 07:14:03

wuxmedia
wookiee madclaw
From: Back in Blighty
Registered: 2012-03-09
Posts: 1,469
Website

Re: How to Make Colored Text in Terminator???

this is the bit, if you're having trouble with the arch wiki.

# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
    xterm-color) color_prompt=yes;;
esac

# uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt
force_color_prompt=yes

if [ -n "$force_color_prompt" ]; then
    if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
	# We have color support; assume it's compliant with Ecma-48
	# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
	# a case would tend to support setf rather than setaf.)
	color_prompt=yes
    else
	color_prompt=
    fi
fi

if [ "$color_prompt" = yes ]; then
    PS1='${debian_chroot:+($debian_chroot)}\[\033[01;36m\]\u@\h\[\033[01;36m\]:\[\033[01;36m\]\w\[\033[00m\]\$ '
else
    PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '

fi
unset color_prompt force_color_prompt

this too;

# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
    test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
    alias ls='ls --color=auto'
    #alias dir='dir --color=auto'
    #alias vdir='vdir --color=auto'

    #alias grep='grep --color=auto'
    #alias fgrep='fgrep --color=auto'
    #alias egrep='egrep --color=auto'
fi

make sure you back up your .bashrc,

cp ~/.bashrc ~/.bashrc.bak

just in case glasses

Offline

#9 2013-06-03 23:00:14

shake6
New Member
From: Arizona
Registered: 2013-03-04
Posts: 8

Re: How to Make Colored Text in Terminator???

dura wrote:

If I remember correctly, Terminator right click preferences allows custom terminal colours, which would otherwise be accessed through terminatorrc or something...... Or make an .Xdefaults

The first seems to accomplish the task (under profiles tab, then colors).  And @dura I'm not sure if this is what you were referring to but might it be ~/.config/terminator/config?  I am still reading over the man page, mentioned in the #! wiki, but this does appear to point in the right direction (under profiles).

man terminator_config

I have only recently learned of the capabilities of .Xdefaults in my new and exciting life in Linux.  I can't soak this stuff up fast enough but I want to learn it - what Windows users call - the hard way (GUI = last resort).   That said, is editing .bashrc a better or more efficient way of doing this?  Which is boss?


Spiral out...   keep - going.

Offline

#10 2013-06-03 23:42:41

wuxmedia
wookiee madclaw
From: Back in Blighty
Registered: 2012-03-09
Posts: 1,469
Website

Re: How to Make Colored Text in Terminator???

ok, the colour pallette of your xterminal is normally (historically) handled by .Xdefaults or .Xresources it also can set a bunch of things like font and stuff.
these are read by xterm and urxvt, amongst others.
the terminator pallette, is indeed held in that config file, you can make multiple profiles and set them in different panes should you wish.
the .bashrc turns the colour prompt on, and directory listings too, which I think it is in #!
guess  what,there's another file that controls those colours too!
BTW the wiki is becoming unreliable, and very out of date. for some unfathomable reason corenominal has locked it and thrown away the key so no-one can edit it sad
,

Last edited by wuxmedia (2013-06-03 23:48:53)

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo