-
Notifications
You must be signed in to change notification settings - Fork 703
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
WindowsDriver
and CursesDriver
's MainLoops use an Action
incorrectly
#2921
Comments
Yes you are missing. You can also do it for the |
I applied the same change to CursesDriver and it seems fine.
See #2922 |
Related, the file descriptor watching in the CursesDriver is unnecessary functionality. I don't think any apps use it, and even if they do, they can just use native unix APIs or the .NET file system watcher classes instead. I think we should remove it. |
I'm curious to see what you'll do. Only to remember that
If you intend to use |
I really mean just making AddWatch/RemoveWatch
That is not my intent at this point. Can you help me understand what the two |
Yes the prior is for input and the second is reading for any writing done on the Edit: |
Please review changes now in this PR. More to do, but this is a massive simplifier... I think. |
I already reviewed. Thanks. |
* Adds basic MainLoop unit tests * Remove WinChange action from Curses * Remove WinChange action from Curses * Remove ProcessInput action from Windows MainLoop * Simplified MainLoop/ConsoleDriver by making MainLoop internal and moving impt fns to Application * Modernized Terminal resize events * Modernized Terminal resize events * Removed un used property * for _isWindowsTerminal devenv->wininit; not sure what changed * Modernized mouse/keyboard events (Action->EventHandler) * Updated OnMouseEvent API docs * Using WT_SESSION to detect WT * removes hacky GetParentProcess * Updates to fix #2634 (clear last line) * removes hacky GetParentProcess2 * Addressed mac resize issue * Addressed mac resize issue * Removes ConsoleDriver.PrepareToRun, has Init return MainLoop * Removes unneeded Attribute methods * Removed GetProcesssName * Removed GetProcesssName * Refactored KeyEvent and KeyEventEventArgs into a single class * Revert "Refactored KeyEvent and KeyEventEventArgs into a single class" This reverts commit 88a0065. * Fixed key repeat issue; reverted stupidity on 1049/1047 confusion * Updated CSI API Docs * merge
The right fix is to change both Windows and Curses' MainLoop implementations to do this:
IOW, get rid of the
ProcessInput
Action alltogether and just have them callProcessInput
on the driver directly.I tested it and it appears to work fine. Am I missing something (I probably am).
Originally posted by @tig in #2911 (comment)
The text was updated successfully, but these errors were encountered: