From 107e12a99e8a5a71570fec7331101c0be183f584 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Raddum=20Berg?= Date: Mon, 12 Dec 2022 12:06:53 +0100 Subject: [PATCH] Add `user_input` example (Fixes #8) --- demo/src/scala/tui/demo.scala | 1 + readme.md | 3 ++- submodules/tui-rs | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/demo/src/scala/tui/demo.scala b/demo/src/scala/tui/demo.scala index 2c1222d..79b5ccc 100644 --- a/demo/src/scala/tui/demo.scala +++ b/demo/src/scala/tui/demo.scala @@ -8,6 +8,7 @@ object demo { "block" -> tui.examples.block.Main.main, "canvas" -> tui.examples.canvas.Main.main, "chart" -> tui.examples.chart.Main.main, + "custom_widget" -> tui.examples.custom_widget.Main.main, "gauge" -> tui.examples.gauge.Main.main, "layout" -> tui.examples.layout.Main.main, "list" -> tui.examples.list.App.main, diff --git a/readme.md b/readme.md index df15fc3..7d98c72 100644 --- a/readme.md +++ b/readme.md @@ -36,9 +36,10 @@ you may rely on `crossterm` achieve such features. The library comes with a bunch of widgets: here is some example code: * [BarChart](https://github.com/oyvindberg/tui-rs/blob/master/examples/barchart.scala) -* [Block](https://github.com/oyvindberg/tui-rs/blob/master/examples/block.scala) (not ported yet) +* [Block](https://github.com/oyvindberg/tui-rs/blob/master/examples/block.scala) * [Canvas (with line, point cloud, world map)](https://github.com/oyvindberg/tui-rs/blob/master/examples/canvas.scala) * [Chart](https://github.com/oyvindberg/tui-rs/blob/master/examples/chart.scala) +* [Custom widget](https://github.com/oyvindberg/tui-rs/blob/master/examples/custom_widget.scala) * [Gauge](https://github.com/oyvindberg/tui-rs/blob/master/examples/gauge.scala) * [Layout](https://github.com/oyvindberg/tui-rs/blob/master/examples/layout.scala) * [List](https://github.com/oyvindberg/tui-rs/blob/master/examples/list.scala) diff --git a/submodules/tui-rs b/submodules/tui-rs index 7ff7762..a81b202 160000 --- a/submodules/tui-rs +++ b/submodules/tui-rs @@ -1 +1 @@ -Subproject commit 7ff7762920c22b9a49d9b95a8a7d9aa63f1de967 +Subproject commit a81b202eeca2f4c8cbe9d991eccfd09477c69fae