LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   [SHELL SCRIPT] Write at the right of the shell window (https://www.linuxquestions.org/questions/linux-general-1/%5Bshell-script%5D-write-at-the-right-of-the-shell-window-165289/)

Creak 04-02-2004 05:24 AM

[SHELL SCRIPT] Write at the right of the shell window
 
Hi!

Is there an easy way to write at the right of a shell window in shell script ? For example:
Code:

My service [at the left]:                                              OK [at the right]
I made a script that fill with space the space between the left and the right..
I've seen a script using printf option (certainly faster than filling with space)...
But, is there an escape char that does it ? like \e31m does red color and another one set a title to the window.

Does someone has a good page for escaped chars ? not only colors ?

Thanks
Creak

JZL240I-U 04-02-2004 08:03 AM

Here are some escape sequences for the prompt ...

http://www.dreaming.org/~giles/bashprompt/

HTH

Creak 04-02-2004 03:00 PM

[SOLVED]
 
Thanks a lot, it's exactly what i was searching for ! :)

++
Creak


All times are GMT -5. The time now is 06:01 PM.