Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 04-02-2004, 06:24 AM   #1
Registered: Feb 2004
Distribution: debian
Posts: 187

Rep: Reputation: 30
[SHELL SCRIPT] Write at the right of the shell window


Is there an easy way to write at the right of a shell window in shell script ? For example:
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 ?

Old 04-02-2004, 09:03 AM   #2
Senior Member
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 42.1_64-KDE, Ubuntu 14.04, Mint 17.2
Posts: 3,819

Rep: Reputation: Disabled
Here are some escape sequences for the prompt ...

Old 04-02-2004, 04:00 PM   #3
Registered: Feb 2004
Distribution: debian
Posts: 187

Original Poster
Rep: Reputation: 30

Thanks a lot, it's exactly what i was searching for !



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
new shell window by script or code r2d2 Programming 2 12-14-2005 02:59 PM
HELP:write a CGI program with shell script supermyself Programming 3 06-12-2005 04:10 PM
How can I write a shell script to transfer files and keep permissions? LancerNZ Linux - Networking 1 02-24-2005 04:49 AM
write a shell script to send email yenonn Programming 4 02-11-2005 11:06 PM
Help needed learning to write a shell script for logons nistur Linux - Networking 8 10-02-2004 03:34 AM

All times are GMT -5. The time now is 06:41 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration