pqwy / notty

Declarative terminal graphics for OCaml

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vertical stacking on WSL (Ubuntu subsystem on Windows 10) does not work.

Yam76 opened this issue · comments

commented

See this issue.

To repeat:
Given the following code:

open Notty
open Notty_unix

(*
 * ocamlbuild -pkg notty -pkg notty.unix basics_wow.native
 *)
let () =
let wow = I.string A.(fg lightred) "Wow!" in
I.(wow <-> (void 2 0 <|> wow))
|> Notty_unix.eol
|> Notty_unix.output_image

and the following two commands:
ocamlbuild -pkg notty -pkg notty.unix basics_wow.native
./basics_wow.native

I get this image:

Wow!s next to each other instead of above one another

I'm on Windows 10, running this through the terminal for my Ubuntu subsystem.

commented

I had the same issue but after upgrading to WSL 2, everything seems to be working correctly.