Mailinglist Archive: opensuse (4165 mails)
| < Previous | Next > |
Re: [SLE] elementary technical question
- From: zentara <zentara@xxxxxxxxxxx>
- Date: Sun, 13 Apr 2003 14:28:13 -0400
- Message-id: <20030413142813.5a176605.zentara@xxxxxxxxxxx>
On 13 Apr 2003 11:55:21 -0500
Dennis Tuchler <dtuchler@xxxxxxxxxxxxx> wrote:
>When I enter the command ls at a terminal window, some of the file names
>are in various colors, even though I set the colors preferences to black
>on white. Some jpg files are in magenta, and some in black print. What
>sort of information is being transmitted by these colors?
Those are ansi escape sequences.
Run this script. There is a man page for these codes, "man console_codes"
#!/bin/sh
echo "\e[1;31mHello world\e[0m\n"
echo "\e[1;32mHello world\e[0m\n";
echo "\e[1;33mHello world\e[0m\n";
echo "\e[1;34mHello world\e[0m\n";
echo "\e[1;35mHello world\e[0m\n";
echo "\e[1;36Hello world\e[0m\n";
echo "\e[1;37mHello world\e[0m\n";
--
use Perl; #powerful programmable prestidigitation
Dennis Tuchler <dtuchler@xxxxxxxxxxxxx> wrote:
>When I enter the command ls at a terminal window, some of the file names
>are in various colors, even though I set the colors preferences to black
>on white. Some jpg files are in magenta, and some in black print. What
>sort of information is being transmitted by these colors?
Those are ansi escape sequences.
Run this script. There is a man page for these codes, "man console_codes"
#!/bin/sh
echo "\e[1;31mHello world\e[0m\n"
echo "\e[1;32mHello world\e[0m\n";
echo "\e[1;33mHello world\e[0m\n";
echo "\e[1;34mHello world\e[0m\n";
echo "\e[1;35mHello world\e[0m\n";
echo "\e[1;36Hello world\e[0m\n";
echo "\e[1;37mHello world\e[0m\n";
--
use Perl; #powerful programmable prestidigitation
| < Previous | Next > |