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

Cursor move/enable feature #164

Open
ram0973 opened this issue Jun 19, 2018 · 3 comments
Open

Cursor move/enable feature #164

ram0973 opened this issue Jun 19, 2018 · 3 comments

Comments

@ram0973
Copy link

ram0973 commented Jun 19, 2018

I'm trying to write text editor with asciimatics, and I need to view cursor :)
Please add functions like cursor.show() and cursor.move(x, y)
Or just please explain how to do it. I see in code
win_out = win32console.CreateConsoleScreenBuffer()
win_out.SetConsoleCursorInfo(0, 1)
But how to use it?

@peterbrittain
Copy link
Owner

Have you considered using the TextBox widget? This already handles freeform input and gives you an emulated cursor?

@ram0973
Copy link
Author

ram0973 commented Jun 19, 2018

I want to make all things at low-level, anyway, thank you very much, I will try it.

@peterbrittain
Copy link
Owner

It's not that hard to switch the cursor back on, but it will end up flickering around the screen as the Effects refresh, so is probably not the effect you want. You could try by simply removing the line of code that hides the cursor and then try running some samples to see what I mean.

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

No branches or pull requests

2 participants