You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
helix-plus/helix-term
Michael Davis 3d85024717 Move terminal claim/restore code to helix-tui
This moves the `Application::claim_term` and
`helix-term::application::restore_term` functions into the helix-tui
crate. How the terminal should be claimed and restored is a TUI concern
and is implemented differently through different TUI backends.

This cleans out a lot of crossterm and TUI code in Application and
makes it easier to modify claim/restore based on information we query
from the terminal host. The child commit will take advantage of this
to cache the check for whether the host terminal supports the keyboard
enhancement protocol. Without this change, caching that information
takes much more code which is not easily reusable for anything else.

The code to restore the terminal is somewhat duplicated by this patch:
we want to restore the terminal in cases of panics. Panic handler hooks
must live for `'static` and the Application's terminal does not.
2 years ago
..
src Move terminal claim/restore code to helix-tui 2 years ago
tests Make `m` textobject look for pairs enclosing selections (#3344) 2 years ago
.gitignore Initial import. 5 years ago
Cargo.toml build(deps): bump grep-regex from 0.1.10 to 0.1.11 (#6215) 2 years ago
build.rs feat(lsp): pass client_info on initialization (#4904) 2 years ago