From bb48738c4111f5f4e2faa40fe67ae1b8b9d7c2eb Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Wed, 29 Nov 2017 15:51:39 +0100 Subject: Rework on the Sheet.ml API : removed low level functions, made the sheet mutable --- src/screen.mli | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/screen.mli') 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 -- cgit v1.2.3