wip: configuring keybinds with edn... oh my

This commit is contained in:
🪞👃🪞 2025-01-11 21:35:21 +01:00
parent f1bd9e7e88
commit 1f10c95ed0
6 changed files with 73 additions and 35 deletions

View file

@ -68,15 +68,3 @@ impl TuiOut {
self
}
}
pub fn buffer_update (buf: &mut Buffer, area: [u16;4], callback: &impl Fn(&mut Cell, u16, u16)) {
for row in 0..area.h() {
let y = area.y() + row;
for col in 0..area.w() {
let x = area.x() + col;
if x < buf.area.width && y < buf.area.height {
callback(buf.get_mut(x, y), col, row);
}
}
}
}