DotSlashJames
Programmer
Hey,
I used Term::Screen to write a little status bar module. But it will only work correctly for my needs if I can pass it the row and column of the current cursor position on the terminal. I played around with Curses getyx() function, but it just did not seem to do what I want.
Basically I am looping through a bunch of tests and I want to have a progress bar for each test... i.e.:
test001... |==========| 100%
test002... |==== | 40%
I basically want to use print and printf as normal and to somehow get the row and column of the cursor after the print statement is completed.
print "test001... ";
-- OUTPUT --
test001... *
I want to get the row and column of where the * is (which is where the cursor would be after the above print statement).
Any ideas? Thanks.
./james
BTW... I have tried Term::Status bar and Term:
rogress bar and for the life of me I cannot get them to print output to the terminal in the location I want and the fashion I want.
I used Term::Screen to write a little status bar module. But it will only work correctly for my needs if I can pass it the row and column of the current cursor position on the terminal. I played around with Curses getyx() function, but it just did not seem to do what I want.
Basically I am looping through a bunch of tests and I want to have a progress bar for each test... i.e.:
test001... |==========| 100%
test002... |==== | 40%
I basically want to use print and printf as normal and to somehow get the row and column of the cursor after the print statement is completed.
print "test001... ";
-- OUTPUT --
test001... *
I want to get the row and column of where the * is (which is where the cursor would be after the above print statement).
Any ideas? Thanks.
./james
BTW... I have tried Term::Status bar and Term: