aboutsummaryrefslogtreecommitdiff
path: root/src/screen.mli
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@chimrod.com>2017-11-29 15:51:39 +0100
committerSébastien Dailly <sebastien@chimrod.com>2018-02-09 10:27:07 +0100
commitbb48738c4111f5f4e2faa40fe67ae1b8b9d7c2eb (patch)
treefdea7f0473453423f052700c7cf807640589ab2f /src/screen.mli
parent754713ed399110d5a199653a684d65cbe258bf5d (diff)
Rework on the Sheet.ml API : removed low level functions, made the sheet mutable
Diffstat (limited to 'src/screen.mli')
-rwxr-xr-xsrc/screen.mli11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/screen.mli b/src/screen.mli
index b5f74b2..0d9dc69 100755
--- a/src/screen.mli
+++ b/src/screen.mli
@@ -7,11 +7,11 @@ val run: (t -> 'a) -> 'a
(** {2 Screen updates} *)
-val draw: Sheet.t -> t -> t
+val draw: Sheet.t -> Selection.t -> t -> unit
-val draw_input: Sheet.t -> t -> t
+val draw_input: Sheet.t -> Selection.t -> t -> unit
-val resize: Sheet.t -> t -> t
+val resize: Sheet.t -> Selection.t -> t -> t
(** Display a message in the status bar. *)
val status: t -> UTF8.t -> unit
@@ -22,8 +22,7 @@ val status: t -> UTF8.t -> unit
val read_key : t -> string
(** The keycode is always NULL terminated *)
-val search: t -> UTF8.t
-
-val get_cell: t -> int * int -> (int * int) option
+(** Get the cell matching the terminal coordinates *)
+val get_cell: t -> int * int -> Sheet.cell option
val editor: ?position: int * int -> ?prefix:UTF8.t -> ?init:UTF8.t -> t -> UTF8.t option