![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Multi-line output to single line | LinuxRacr | Shell Programming and Scripting | 7 | 02-26-2008 10:05 AM |
| AWK Multi-Line Records Processing | RacerX | Shell Programming and Scripting | 10 | 10-18-2007 09:46 PM |
| need progress line | esham | Shell Programming and Scripting | 0 | 03-17-2005 07:31 AM |
| Making multi line output appear on one line | djsal | Shell Programming and Scripting | 1 | 10-07-2004 07:21 PM |
| Multi line deletes | rehoboth | UNIX for Dummies Questions & Answers | 5 | 10-18-2002 04:39 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
curser control ~ multi line progress bar
Hi there,
I have progress bars in several of my scripts, they work by deleting what has already been writen out, using: clear = "\\010"*( length of string i want to delete ) clearCmd = "echo -ne \""+clear+"\"" os.system(clearCmd) I then re-write the percent done & the progress bar. in this way you can effectively create an animation, but only on one line. if the teminal window is to small causeing the progressbar to run onto the next line, then the delete does not work, it will only go to the begining of the line it is on. is there any way to move the curser up? allowing me to write over previous output on multiple lines? any help would be most apriceated. |
|
|||||
|
The are many utilities out there that will do what you want. A lot of them are executables rather than shell scripts. Here is one for example
Command Line Progress Bar |
|
||||
|
yes - these are good answers,
but my question was not well explained i guess. this is not a problem with the progress bars as they are, I actualy want to display more than one line, and be able to change them. Prehaps it is not possible, but i was hopeing someone would know of an "curser up" command or bodge. |
|
|||||
|
H.
I would look at tput for control of the terminal. You can use that in a shell script. For more complex operations, there is the ncurses library. I think you'll need something along the lines of perl, python, or c for that ... cheers, drl |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|