diff options
| author | auric <auric7@protonmail.com> | 2025-09-07 20:17:07 -0500 |
|---|---|---|
| committer | auric <auric7@protonmail.com> | 2025-09-07 20:17:07 -0500 |
| commit | 22d02614eaa4530092d564336b3e7076c9f0bc36 (patch) | |
| tree | 947fd56ed33fedb80c14dab7adab0dc71760540b /oldresources/st/patch/scrollback.h | |
| parent | 7de2c2044596ef810045e4565916e18903d822c1 (diff) | |
1
Diffstat (limited to 'oldresources/st/patch/scrollback.h')
| -rw-r--r-- | oldresources/st/patch/scrollback.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/oldresources/st/patch/scrollback.h b/oldresources/st/patch/scrollback.h new file mode 100644 index 0000000..08940f0 --- /dev/null +++ b/oldresources/st/patch/scrollback.h @@ -0,0 +1,17 @@ +#define TLINE(y) ((y) < term.scr ? term.hist[((y) + term.histi - \ + term.scr + HISTSIZE + 1) % HISTSIZE] : \ + term.line[(y) - term.scr]) + +void kscrolldown(const Arg *); +void kscrollup(const Arg *); + +#if SCROLLBACK_MOUSE_PATCH || SCROLLBACK_MOUSE_ALTSCREEN_PATCH +typedef struct { + uint b; + uint mask; + void (*func)(const Arg *); + const Arg arg; +} MouseKey; + +extern MouseKey mkeys[]; +#endif // SCROLLBACK_MOUSE_PATCH / SCROLLBACK_MOUSE_ALTSCREEN_PATCH |
