在Windows 10中使用linux子系统时,如何将一个图像置于另一个图像之上?

问题描述 投票:0回答:1

我想使用Notty,所以我一直在研究“基础知识” repo

所以我下载了basics_wow.ml

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

我将其放入终端机:ocamlbuild -pkg notty -pkg notty.unix basics_wow.native。然后,我尝试运行它:./basics_wow.native

但不是让哇!哇!我明白了:

red Wow! and Wow! next to each other, instead of one on top

我如何得到哇!哇! ?

ocaml tty notty
1个回答
0
投票
© www.soinside.com 2019 - 2024. All rights reserved.