LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


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

Rep: Reputation: 30
[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
 
Old 04-02-2004, 08:03 AM   #2
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

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

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

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

Original Poster
Rep: Reputation: 30
[SOLVED]

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

++
Creak
 
  


Reply



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 01:59 PM
HELP:write a CGI program with shell script supermyself Programming 3 06-12-2005 03:10 PM
How can I write a shell script to transfer files and keep permissions? LancerNZ Linux - Networking 1 02-24-2005 03:49 AM
write a shell script to send email yenonn Programming 4 02-11-2005 10:06 PM
Help needed learning to write a shell script for logons nistur Linux - Networking 8 10-02-2004 02:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

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