aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@chimrod.com>2018-07-16 11:52:12 +0200
committerSébastien Dailly <sebastien@chimrod.com>2018-07-26 21:34:10 +0200
commit5711287dc01133195297cd2309aaca0191c01473 (patch)
tree0faa2c7e924d4d9d4cb1b7b2eb3f8bbe5e962d54 /src
parent725a98ea6133fe7741ac1ada32d53f7978bfede0 (diff)
Update compilation for windows
Diffstat (limited to 'src')
-rwxr-xr-xsrc/screen.ml5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/screen.ml b/src/screen.ml
index d168865..e11180b 100755
--- a/src/screen.ml
+++ b/src/screen.ml
@@ -173,7 +173,6 @@ let init () = begin
let init = Curses.keypad window true
&& Curses.noecho ()
&& Curses.start_color ()
- && Curses.use_default_colors ()
(* Build the color map *)
&& Curses.init_pair 1 Color.white Color.blue (* Titles *)
@@ -181,10 +180,10 @@ let init () = begin
&& Curses.init_pair 3 Color.black Color.white (* Selected cell *)
&& Curses.init_pair 4 Color.black Color.red (* referenced cell *)
&& Curses.init_pair 5 Color.black Color.green (* sink cell *)
- && Curses.curs_set 0 in
+ in
if not init then
- raise (Failure "Initialisation")
+ raise (Failure "Could not intialize the screen")
else
{
window = window;