Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

time_example.go without moving the cursor to (1,1) #24

Open
hdashk opened this issue Jun 18, 2018 · 2 comments
Open

time_example.go without moving the cursor to (1,1) #24

hdashk opened this issue Jun 18, 2018 · 2 comments

Comments

@hdashk
Copy link

hdashk commented Jun 18, 2018

Is there any way to print in-place without resetting the cursor to (1,1).
I tried retrieving (x,y) from GetXY method with (-1,-1) params but that still resets the cursor.

Thanks for the great package.

@buger
Copy link
Owner

buger commented Jun 19, 2018

Can you clarify your use-case a bit more?

Maybe instead you want ResetLine function?

@hdashk
Copy link
Author

hdashk commented Jun 19, 2018

I am traversing a directory and want to print the current file name that is being processed.
Output is of the format Processing: [filename] and I want to pass the filename as an arg in the for loop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants