You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems to create images alright, but I'm not really sure how you can make it show anything on the screen at all. Every time I have tried someImage |> Notty_unix.output_image;;. I always get
Error: Reference to undefined global `Notty_unix`.
I'm relatively new to Ocaml, so perhaps I am doing something obviously wrong because I don't understand it. But if so, the 'basics' could do with some more 'basic' explanation of how you install the library properly and how you actually get it to a point where a basic example actually displays something on the screen.
So FYI: the full sequence of 'stuff' needed in front of 'the basics':
#require "notty";;
#require "notty.top";;
#require "notty.unix";;
open Notty;;
(* after all that, the example from https://pqwy.github.io/notty/doc/Notty.html#basics works *)
let wow = I.string A.(fg red ++ bg black) "Wow!" in
I.(wow <-> (void 2 0 <|> wow)) |> Notty_unix.output_image
Installed notty from opam. Then tried to follow the 'Basics' instructions.
For example here's what I tried:
The text was updated successfully, but these errors were encountered: