mirror of
https://github.com/wez/wezterm.git
synced 2024-12-24 13:52:55 +03:00
79007d9c33
This restructures the LineEditor to allow the hosting application to override key presses and apply custom edits to the editor buffer. Methods for performing predefined actions and for accessing the line buffer and cursor position have been provided/exposed to support this. One consequence of this change is that the editor instance needs to be passed through to the host trait impl and that means that the LineEditor can no longer be generic over `Terminal`. Instead we now take `&mut dyn Terminal` which was how the majority of non-example code was using it in any case. This simplifies a bit of boilerplate in wezterm but adds an extra line to the most basic examples. |
||
---|---|---|
.. | ||
buffered_terminal.rs | ||
hello.rs | ||
key_tester.rs | ||
line_editor.rs | ||
terminal_direct.rs | ||
widgets_basic.rs |