-
Notifications
You must be signed in to change notification settings - Fork 201
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
Efficient way to erase characters in a specific area? #51
Comments
@laurent22 Not really, except if you want to erase from your actual cursor to the end of line ( More efficient: Also it could be interesting to have a higher-level function for erasing region, but it would definitively do something similar behind the scene. What is your use-case? You may want to use the ScreenBuffer. |
Great, thanks I missed that it was possible to do A function like Also another question, the Yes I had a look at ScreenBuffer but since what I want to do is quite custom (multiple scrollable lists and a text input below), I thought I'd try first with something lower level to have more flexibility. It's possible I'm reinventing the wheel though! |
… rectangular area on the screen (#51)
@laurent22 Hi, as you can see, I have added the For the |
Brilliant, thanks a lot for the |
I'm not sure if this already part of the API and I missed it, but is there any way to erase a specific part of the terminal without moving around other characters?
eg. for example I have this:
And want to have this (erase the two characters in the middle):
I found a way by doing this:
But that seems a bit inefficient. Is there a better way?
The text was updated successfully, but these errors were encountered: