mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 12:16:42 +01:00
separate Input and Output impls
This commit is contained in:
parent
a6efde40f8
commit
0e821e098f
77 changed files with 465 additions and 454 deletions
|
|
@ -150,7 +150,7 @@ impl Plugin {
|
|||
})
|
||||
}
|
||||
}
|
||||
impl Content<Tui> for Plugin {
|
||||
impl Content<TuiOut> for Plugin {
|
||||
fn render (&self, to: &mut TuiOut) {
|
||||
let area = to.area();
|
||||
let [x, y, _, height] = area;
|
||||
|
|
@ -198,7 +198,7 @@ fn draw_header (state: &Plugin, to: &mut TuiOut, x: u16, y: u16, w: u16) {
|
|||
//Ok(Rect { x, y, width: w, height: 1 })
|
||||
}
|
||||
|
||||
handle!(<Tui>|self:Plugin, from|{
|
||||
handle!(TuiIn: |self:Plugin, from|{
|
||||
match from.event() {
|
||||
kpat!(KeyCode::Up) => {
|
||||
self.selected = self.selected.saturating_sub(1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue