X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=st.h;h=d7738a090f623117183ed521d1136f460c2d0e32;hb=33201ac65f74e45b4fa60822ba9a538c3cfa9b25;hp=71c79f4c83c86021aa55b3f04d8489f5c41ee399;hpb=416dd257274fd334be082b1138338adffa3e2d5e;p=st.git diff --git a/st.h b/st.h index 71c79f4..d7738a0 100644 --- a/st.h +++ b/st.h @@ -149,12 +149,7 @@ typedef struct { int x, y; } nb, ne, ob, oe; - char *primary, *clipboard; int alt; - struct timespec tclick1; - struct timespec tclick2; - - //Atom xtarget; } Selection; typedef union { @@ -177,18 +172,18 @@ void toggleprinter(const Arg *); int tattrset(int); void tnew(int, int); void tresize(int, int); -void tsetdirt(int, int); void tsetdirtattr(int); void ttynew(char *, char *, char **); size_t ttyread(void); void ttyresize(int, int); -void ttysend(char *, size_t); -void ttywrite(const char *, size_t); +void ttywrite(const char *, size_t, int); void resettitle(void); void selclear(void); void selinit(void); +void selstart(int, int, int); +void selextend(int, int, int, int); void selnormalize(void); int selected(int, int); char *getsel(void); @@ -201,9 +196,7 @@ void *xrealloc(void *, size_t); char *xstrdup(char *); /* Globals */ -extern TermWindow win; extern Term term; -extern Selection sel; extern int cmdfd; extern pid_t pid; extern int oldbutton;