User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Shell Scripting section within the Software Development category of DaniWeb, a massive community of 370,606 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,048 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Shell Scripting advertiser:
Views: 3800 | Replies: 1
Reply
Join Date: Jun 2006
Posts: 3
Reputation: sandip.bhoi is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
sandip.bhoi sandip.bhoi is offline Offline
Newbie Poster

How get the Cursor Position

  #1  
Jul 11th, 2006
Dear All,

I have just started, playing with unix shell programming.
I am in need to know, that how to get the position of cursor at unix shell.

To set the cursor position i am using command
# tput cup x y
AddThis Social Bookmark Button
Reply With Quote  
Join Date: May 2004
Posts: 177
Reputation: jim mcnamara is on a distinguished road 
Rep Power: 5
Solved Threads: 9
jim mcnamara jim mcnamara is offline Offline
Junior Poster

Re: How get the Cursor Position

  #2  
Jul 11th, 2006
shell programming and C/C++ are not the same thing. maybe a moderator will move your post for you.

Anyway, in shell there is no way without writing code (the ncurses library provides calls to do this) without resorting to C/C++ code. Plus you have to be in graphics mode....

see for someone with the same probleem.:
http://www.unix.com/showthread.php?t...ursor+position
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb Shell Scripting Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the Shell Scripting Forum

All times are GMT -4. The time now is 6:36 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC