LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-21-2005, 06:16 AM   #1
dave bean
Member
 
Registered: Jun 2003
Location: UK
Distribution: Slackware 9.1
Posts: 136

Rep: Reputation: 15
bash + manipulate stdout to console


Hi
I have a script which produces a lot of text on stdout, i want to display both the stdout and a progress bar that will always be visible as the script runs. Clearly the progress bar gets pushed out of the console by the stdout text so how can i 'reserve' a line for the progress bar so it will always be visible ?

Anyone know a technique to do this please ?
 
Old 02-21-2005, 06:44 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Take a look at tput

man tput

An on-line explanation and examples can be found here.

Hope this helps.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get a bash console on a home page??? ankur_linuxfan Linux - Software 6 07-17-2005 05:43 PM
10.1 - console & Bash High-gain Linux - Newbie 4 06-13-2005 03:46 PM
console like bash for windows biiiep General 3 07-16-2004 01:38 AM
Linux Console & Bash outsider Linux - Newbie 1 09-13-2001 03:07 PM
BASH Console Stephanie Linux - General 1 07-13-2001 03:31 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:17 AM.

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