-
Notifications
You must be signed in to change notification settings - Fork 695
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
Windows: System.Console driver #27
Comments
I think it will be great to have a fully cross platform without dependency to ncurses so it could work on OS that have neither ncurses neither a C API (as Cosmos). |
Right, we need to auto-detect the platform at startup and choose the right driver, currently it is hardcoded to NCurses and I change it when I work there. |
In you opinion C# Console can do all NCurses does? |
This is now implemented. |
Thank you! I'll test this soon... |
Currently the only backend in use for gui.cs is the ncurses backend. There is a partial implementation of a
System.Console
based driver but it is not complete.Currently we use
mainloop.cs
to monitor input on standard input and wake up the mainloop to read the input. We need a variant that works for Windows, likely usingConsole.ReadKey
and using someAutoResetEvent
to wake up the thread.Generally, we can either make
mainloop.cs
fully cross platform, or we could surface Windows/Unix codepaths, and let the consumer (in this case, gui.cs) deal with it.In addition to that, the backend itself needs to be completed.
The text was updated successfully, but these errors were encountered: