lwd icon indicating copy to clipboard operation
lwd copied to clipboard

Fist test

Open ttamttam opened this issue 2 months ago • 2 comments

Hello. What did I miss?

~/projets 
❯ opam list | ag nottui
nottui                        0.4         UI toolkit for the terminal built on top of Notty and Lwd

❯ dune init project --libs nottui nottuitest
Entering directory '/home/matt/projets/nottuitest'
Success: initialized project component named nottuitest

Edition of bin/main.ml.

~/projets/nottuitest via 🐫 v5.2.1 (5.2.1) 
❯ cat bin/main.ml
open Nottui
module W = Nottui_widgets;;

Ui_loop.run (Lwd.pure (W.printf "Hello world"))

~/projets/nottuitest via 🐫 v5.2.1 (5.2.1) 
❯ dune exec nottuitest
File "bin/main.ml", line 4, characters 0-11:
4 | Ui_loop.run (Lwd.pure (W.printf "Hello world"))
    ^^^^^^^^^^^
Error: Unbound module Ui_loop

ttamttam avatar Nov 09 '25 17:11 ttamttam

Using nottui-unix instead worked.

Nottui_unix.run (Lwd.pure (W.printf "Hello world"))

ttamttam avatar Nov 09 '25 17:11 ttamttam

+1, the examples are outdated, i was bitten by this too.

nilsbecker avatar Nov 27 '25 21:11 nilsbecker