mirror of
https://github.com/jtdaugherty/brick.git
synced 2024-11-22 05:36:00 +03:00
Update README and README demo program to match
This commit is contained in:
parent
410fcaa212
commit
322bd7d0bb
@ -20,6 +20,7 @@ Example
|
||||
Here's an example interface (see `programs/ReadmeDemo.hs`):
|
||||
|
||||
```
|
||||
joinBorders $
|
||||
withBorderStyle unicode $
|
||||
borderWithLabel (str "Hello!") $
|
||||
(center (str "Left") <+> vBorder <+> center (str "Right"))
|
||||
|
@ -1,12 +1,13 @@
|
||||
module Main where
|
||||
|
||||
import Brick (Widget, simpleMain, (<+>), str, withBorderStyle)
|
||||
import Brick (Widget, simpleMain, (<+>), str, withBorderStyle, joinBorders)
|
||||
import Brick.Widgets.Center (center)
|
||||
import Brick.Widgets.Border (borderWithLabel, vBorder)
|
||||
import Brick.Widgets.Border.Style (unicode)
|
||||
|
||||
ui :: Widget ()
|
||||
ui =
|
||||
joinBorders $
|
||||
withBorderStyle unicode $
|
||||
borderWithLabel (str "Hello!") $
|
||||
(center (str "Left") <+> vBorder <+> center (str "Right"))
|
||||
|
Loading…
Reference in New Issue
Block a user