Bash text formatting and color issue

Ask questions about Arch Linux ARM. Please search before making a new topic.

Bash text formatting and color issue

Postby elirentz » Tue Dec 15, 2015 8:07 pm

Hi all,

New to the forum. I'm having issues formatting and coloring the font in BASH scripts on a Raspberry Pi 2 running arch.

With the same commands in my desktop machine running Arch I can get underlined and bold text without a problem blinking doesn't seem to work though.

For example if I enter:
$this->bbcode_second_pass_code('', '$echo -e "\e[4;31mTest\e[0m"')

The output on the raspberry pi is cyan text with a black background. In fact no matter what I change the last number in the first escape sequence the output stays the same. On my desktop the output is as is expected.

When I try to make the text bold.
$this->bbcode_second_pass_code('', '$ echo -e "\e[1;31mTest\e[0m"')

The text is not bold but pink instead of red. On my desktop its pink but also bold.

I've tried moving my .bashrc file and restarting BASH so that my prompts are the default color but the outcome was still the same.

What am I missing here?
elirentz
 
Posts: 3
Joined: Tue Dec 15, 2015 7:44 pm

Re: Bash text formatting and color issue

Postby elirentz » Wed Dec 16, 2015 8:37 pm

Can someone try and test it on one of their machines and see if its just something wrong with mine?
elirentz
 
Posts: 3
Joined: Tue Dec 15, 2015 7:44 pm

Re: Bash text formatting and color issue

Postby elirentz » Wed Dec 16, 2015 10:03 pm

I'm noticing that the tput command values aren't correct either. I'm guessing tput just sets the escape sequence values to what should be standard.

When I enter:
$this->bbcode_second_pass_code('', '$ tput smul')
which should underline everything it sets the text color to cyan.

Does anyone know how/where these values are changed?

Why is it that this distro isn't standard?
elirentz
 
Posts: 3
Joined: Tue Dec 15, 2015 7:44 pm


Return to User Questions

Who is online

Users browsing this forum: Majestic-12 [Bot] and 26 guests