Introduction
Introduction Statistics Contact Development Disclaimer Help
mouse: rename mask to keymask - sfeed_curses - sfeed curses UI (now part of sfe…
git clone git://git.codemadness.org/sfeed_curses
Log
Files
Refs
README
LICENSE
---
commit 64f10e20f6dce1cdf6ee517ab9ce12b39a192d5f
parent 5cfd4db8738430c39c711d117809f48635ec1578
Author: Hiltjo Posthuma <[email protected]>
Date: Wed, 24 Mar 2021 18:14:50 +0100
mouse: rename mask to keymask
Diffstat:
M sfeed_curses.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/sfeed_curses.c b/sfeed_curses.c
@@ -1667,7 +1667,7 @@ draw(void)
}
void
-mousereport(int button, int release, int mask, int x, int y)
+mousereport(int button, int release, int keymask, int x, int y)
{
struct pane *p;
struct feed *f;
@@ -2000,7 +2000,7 @@ main(int argc, char *argv[])
size_t i;
char *name, *tmp;
char *search = NULL; /* search text */
- int button, ch, fd, mask, release, x, y;
+ int button, ch, fd, keymask, release, x, y;
off_t off;
#ifdef __OpenBSD__
@@ -2103,8 +2103,8 @@ main(int argc, char *argv[])
goto event;
y = ch - 32;
- mask = button & (4 | 8 | 16); /* shift, meta, …
- button &= ~mask; /* unset key mask */
+ keymask = button & (4 | 8 | 16); /* shift, met…
+ button &= ~keymask; /* unset key mask */
/* button numbers (0 - 2) encoded in lowest 2 …
release does not indicate which button (so …
@@ -2119,7 +2119,7 @@ main(int argc, char *argv[])
} else if (button >= 64) {
button -= 61;
}
- mousereport(button, release, mask, x - 1, y - …
+ mousereport(button, release, keymask, x - 1, y…
break;
case '<': /* mouse: SGR encoding */
for (button = 0; ; button *= 10, button += ch …
@@ -2141,15 +2141,15 @@ main(int argc, char *argv[])
break; /* release or press */
}
release = ch == 'm';
- mask = button & (4 | 8 | 16); /* shift, meta, …
- button &= ~mask; /* unset key mask */
+ keymask = button & (4 | 8 | 16); /* shift, met…
+ button &= ~keymask; /* unset key mask */
if (button >= 128)
button -= 121;
else if (button >= 64)
button -= 61;
- mousereport(button, release, mask, x - 1, y - …
+ mousereport(button, release, keymask, x - 1, y…
break;
case 'A': goto keyup; /* arrow up */
case 'B': goto keydown; /* arrow down */
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.