X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=st.c;h=4c4a0c35bf57e8a0198600a3f26a497128b34adc;hb=6681af165b06c32cf65bf970a295600d46cb7025;hp=d5a8257bbcd34b21e6912a63e9f75fde5b0886a4;hpb=a48f2be7f537cb1655c6b550d9346a17459a94bd;p=st.git diff --git a/st.c b/st.c index d5a8257..4c4a0c3 100644 --- a/st.c +++ b/st.c @@ -449,6 +449,8 @@ static char *getsel(void); static void selcopy(void); static void selscroll(int, int); static void selsnap(int, int *, int *, int); +static void getbuttoninfo(XEvent *); +static void mousereport(XEvent *); static size_t utf8decode(char *, long *, size_t); static long utf8decodebyte(char, size_t *); @@ -462,6 +464,8 @@ static void *xmalloc(size_t); static void *xrealloc(void *, size_t); static char *xstrdup(char *); +static void usage(void); + static void (*handler[LASTEvent])(XEvent *) = { [KeyPress] = kpress, [ClientMessage] = cmessage, @@ -1238,15 +1242,6 @@ ttynew(void) { } void -dump(char c) { - static int col; - - fprintf(stderr, " %02x '%c' ", c, isprint(c)?c:'.'); - if(++col % 10 == 0) - fprintf(stderr, "\n"); -} - -void ttyread(void) { static char buf[BUFSIZ]; static int buflen = 0;