forked from ocaml/dune
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dune_console: make refresh rate configurable and default INSIDE_EMACS…
… to 15 (ocaml#8812) Signed-off-by: Ali Caglayan <alizter@gmail.com>
- Loading branch information
Showing
9 changed files
with
51 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
- Dune will now run at a lower framerate of 15 fps rather than 60 when `INSIDE_EMACS`. |
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
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,4 +1,11 @@ | ||
include module type of Dune_threaded_console_intf | ||
|
||
val make : (module S) -> Dune_console.Backend.t | ||
val progress : unit -> Dune_console.Backend.t | ||
(** [make ~frames_per_second (module T)] is a backend that renders the user interface in a | ||
separate thread. The module [T] must implement the [Threaded] interface. There are | ||
special functions included to handle various functions of a user interface. | ||
The [frames_per_second] argument controls how often the user interface is updated. *) | ||
val make : frames_per_second:int -> (module S) -> Dune_console.Backend.t | ||
|
||
(** Threaded variant of [Dune_console.Backend.progress]. *) | ||
val progress : frames_per_second:int -> Dune_console.Backend.t |
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 |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
dune_nottui | ||
dune_notty | ||
dune_notty_unix | ||
dune_config | ||
dune_console | ||
dune_threaded_console | ||
threads.posix) | ||
|
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