-
Notifications
You must be signed in to change notification settings - Fork 416
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(tui): fix supsend/resume (#7763)
Signed-off-by: Rudi Grinberg <[email protected]>
- Loading branch information
Showing
8 changed files
with
75 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
(library | ||
(name dune_threaded_console) | ||
(libraries stdune dune_console dune_engine threads.posix) | ||
(libraries stdune dune_util dune_console dune_engine threads.posix) | ||
(instrumentation | ||
(backend bisect_ppx))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
open Stdune | ||
|
||
let signals : Signal.t list = | ||
[ Cont (* restore the terminal after process is resumed *) | ||
; Tstp (* to restore the terminal after it's stopped (C-z) *) | ||
; Winch (* Re-render thet terminal when the terminal is resized *) | ||
] | ||
|
||
let unblock () = | ||
if not Sys.win32 then | ||
ignore | ||
(Unix.sigprocmask SIG_UNBLOCK (List.map ~f:Signal.to_int signals) | ||
: int list) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
open Stdune | ||
|
||
(** The signals that must be handled in the thread that's handling terminal ui | ||
events. *) | ||
val signals : Signal.t list | ||
|
||
val unblock : unit -> unit |