- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Echo at specific screen position ?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2002 12:28 AM
07-29-2002 12:28 AM
Echo at specific screen position ?
Is it possible to echo (or other command) to a certain screen position (specify row and column) . So as within loop can keep refreshing the character so as to know how many time the loop has executed.
Could clear the screen then echo, but have other info on screen that cannot be cleared.
Cheers
Ian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2002 12:37 AM
07-29-2002 12:37 AM
Re: Echo at specific screen position ?
You need to use "tput cup y x" where y is the row position and x is the column position.
ie
integer n=0
while true
do
tput cup 3 20
clear
echo $n
let n=n+1
sleep 3
done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2002 12:42 AM
07-29-2002 12:42 AM
Re: Echo at specific screen position ?
You should be looking at something like ncurses:
http://dickey.his.com/ncurses/ncurses.faq.html
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2002 12:43 AM
07-29-2002 12:43 AM
Re: Echo at specific screen position ?
Sorry mistake above you need to put the clear statement before the tput statement otherwise it resets the position of the cursor.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2002 12:58 AM
07-29-2002 12:58 AM
Re: Echo at specific screen position ?
I agree with Nick that tput is a better choice that ncurses.
Hope this helps. Regards.
Steven Sim Kok Leong