mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
* 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 88a00658db.
* Fixed key repeat issue; reverted stupidity on 1049/1047 confusion
* Updated CSI API Docs
* merge
This commit is contained in:
@@ -15,7 +15,7 @@ namespace ReactiveExample {
|
||||
IDisposable PostOnMainLoop() {
|
||||
var composite = new CompositeDisposable(2);
|
||||
var cancellation = new CancellationDisposable();
|
||||
Application.MainLoop.Invoke (() => {
|
||||
Application.Invoke (() => {
|
||||
if (!cancellation.Token.IsCancellationRequested)
|
||||
composite.Add(action(this, state));
|
||||
});
|
||||
@@ -25,11 +25,11 @@ namespace ReactiveExample {
|
||||
|
||||
IDisposable PostOnMainLoopAsTimeout () {
|
||||
var composite = new CompositeDisposable (2);
|
||||
var timeout = Application.MainLoop.AddTimeout (dueTime, args => {
|
||||
var timeout = Application.AddTimeout (dueTime, () => {
|
||||
composite.Add(action (this, state));
|
||||
return false;
|
||||
});
|
||||
composite.Add (Disposable.Create (() => Application.MainLoop.RemoveTimeout (timeout)));
|
||||
composite.Add (Disposable.Create (() => Application.RemoveTimeout (timeout)));
|
||||
return composite;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user