Am Freitag, den 22.03.2019, 09:41 -0700 schrieb Pei Jia:
>
> Hi, all:
>
> I noticed from
> http://www.linuxfromscratch.org/blfs/view/6.3/postlfs/logon.html that
> /etc/issue can display plain text. Just wonder if there is a way to colorize
> the characters ? If so, how?
> BTW, is it possible to run a simple script and display customized and
> colorized ART characters, as done within PC terminal?
>
> Cheers
> Pei
You can intergate escape sequences in /etc/issue. My issue file looks
like:
>->->->->-> begin
\s, Kernel \r, \v
_ _ _ _ _ _ _ _
/_/ /_/_/_/_/ _/_/_/_/ \e[1;33mLinux From
Scratch\e[0m
/_/ /_/_ _ /_/_ _ \d, \t
/_/ /_/_/_/ /_/_/_ Hostname is \n
/_/_ _ _ /_/ _ _ _/_/
/_/_/_/_/ /_/ /_/_/_/ This is terminal \l
>->->->->-> end
The "Linux From Scratch" appears in yellow.
--
Thomas
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page
Do not top post on this list.
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
http://en.wikipedia.org/wiki/Posting_style