Your answer was very interesting and instructive. Thanks a lot comrade. About IRC, I left because my network is unstable. :(
Of course, if you still want/need to write POSIX compatible
> scripts, there are other possibilities… something like this:
>
> if test -n "$KSH_VERSION"; then
> echon() {
> print -nr -- "$@"
> }
> else
> echon() {
> printf '%s' "$*"
> }
> fi
>
This solution is perfect. I looked "man print" from ksh and now I know a
solid alternative for my scripts.
Normally, people add the respective colours to their PS1
> directly… indeed there is no DEBUG trap. The manpage, if
> you search for PS1, at the second occurrence of this word
> has some examples for how to add colours to a PS1.
>
[...]
> I will convert it for you (I offer this PS1 conversion
> service since some time).
>
Yes. I saw this line when I searched PS1 in the man. I included a picture
which shows what I was talking about.
You proposed nicely me to convert my bash PS1, so here the "magic" line :)
PS1='\[\e[1;34m\]┌─| \[\e[1;36m\]\u\[\e[1;34m\] |──|
\[\e[0;33m\]\w\[\e[1;34m\] |\n\[\e[1;34m\]└─| \[\e[1;32m\]\A\[\e[1;34m\]
|─>>\[\e[0m\] '
# => username
<= => pwd
<= => date +%R <=
Yes, you helped a lot.
Keep it up.
Sincerely
--
H.Moretto
<<attachment: screenshot_2403165823.png>>
