diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2021-06-22 01:30:28 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2022-03-20 23:28:53 +0100 |
commit | 14b7b8b31186798630ca11b389acc2d9627dec7b (patch) | |
tree | 572490aac633cacea87751507a2d8b1e197834da /ht | |
parent | 6d6aa2171050580823073aed8d4f18d91fe37aa7 (diff) | |
download | haven-14b7b8b31186798630ca11b389acc2d9627dec7b.tar.gz haven-14b7b8b31186798630ca11b389acc2d9627dec7b.tar.xz haven-14b7b8b31186798630ca11b389acc2d9627dec7b.zip |
WIP: ht: dirty working tree
Diffstat (limited to 'ht')
-rw-r--r-- | ht/main.go | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -514,6 +514,16 @@ func onResize(width, height uint16) { winW, winH = width, height // We should receive an ExposeEvent soon. // TODO: Track the bottom of the virtual terminal screen. + // - Adjust the top line index, if necessary (screen got higher). +} + +func write(r rune) { + // TODO: Write over the current scrollback position, + // with the current attributes. + + // TODO: Make space in the scrollback so that we have somewhere to write to. + // TODO: Cause a redraw. + // - How to invalidate a region? } func onKeyPress(ks xproto.Keysym) { @@ -523,6 +533,7 @@ func onKeyPress(ks xproto.Keysym) { return default: if r := KeysymToRune(ks); r > 0 { + write(r) } } } |