зеркало из
https://github.com/glebtv/tui-textarea.git
synced 2026-09-07 16:05:50 +03:00
add single_line example
Этот коммит содержится в:
@@ -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
|
||||
|
||||
Ссылка в новой задаче
Block a user