-
Notifications
You must be signed in to change notification settings - Fork 242
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
Buffered versus direct drawing #46
Comments
Requires new API that is being proposed for v2.0 |
Might need current cursor position. Looks like this uses u6-7. See http://unix.stackexchange.com/questions/239271/parse-terminfo-u6-string |
Windows cursor pos from https://msdn.microsoft.com/en-us/library/windows/desktop/ms683171(v=vs.85).aspx |
Also need to think about relative movement inthis environment - e.g. start of line, up/down one line, etc. That may be possible with a |
It appears that I can only really use setupterm() in curses and so have to limit available function (e.g. no input at all). That means an API like:
Plus some other methods that might now make sense if I can break out the classes neatly enough:
Longer term it might be possible to do the following (but they will be messy to fit into the current APIs):
|
A little more research on how dialog simply overrides stuff inside ncurses leads me to believe that I might be able to use the |
Need to look at resizing and extracting state of screen before the app starts a little more closely, but a quick trial script looks like this could give full cursor control and keyboard input, thus giving access to the full existing API. |
At the lowest level, the Screen class enforces a refresh() before it will draw anything. This is irritating for people who just want to do some simple drawing. Consider providing 2 modes of operation for the class:
Some interesting decisions need to be made in both cases:
It feels like these may behighly related, but ultimately different class implentations...
The text was updated successfully, but these errors were encountered: