1
0
зеркало из https://github.com/glebtv/tui-textarea.git synced 2026-09-07 16:05:50 +03:00
Этот коммит содержится в:
rhysd
2022-06-17 02:07:12 +09:00
родитель f7e56c61b1
Коммит 5fde013747
3 изменённых файлов: 95 добавлений и 0 удалений

Просмотреть файл

@@ -50,6 +50,7 @@ cargo run --example minimal
- [minimal](./examples/minimal.rs): Minimal usage with [crossterm][] support
- [termion](./examples/termion.rs): Minimal usage with [termion][] support
- [multi](./examples/multi.rs): Two split textareas in a screen and switch them
- [single_line](./examples/single_line.rs): Single line input form with float number validation
- [editor](./examples/editor.rs): Simple text editor to edit multiple files
## Minimal Usage
@@ -284,6 +285,8 @@ loop {
let text = textarea.into_lines().remove(0); // Get input text
```
See [`single_line` example](./examples/single_line.rs) for working example.
### Define your own key mappings
All editor operations are defined as public methods of `TextArea`. To move cursor, use `tui_textarea::CursorMove` to