aboutsummaryrefslogtreecommitdiffstats
path: root/st.h
diff options
context:
space:
mode:
authorDevin J. Pohly <djpohly@gmail.com>2018-02-21 23:29:41 -0600
committerDevin J. Pohly <djpohly@gmail.com>2018-02-25 21:53:24 -0600
commitbcb5d3adbe57ead05a829e5144c2ba1dc465865f (patch)
treed72e99c54044e02063924f2416ceb9760c2141ec /st.h
parent5683b1f80c5ac274adf98517ce2217b4d4896243 (diff)
downloadst-bcb5d3adbe57ead05a829e5144c2ba1dc465865f.tar.gz
Move terminal-related selection logic into st.c
The front-end determines information about mouse clicks and motion, and the terminal handles the actual selection start/extend/dirty logic by row and column. While we're in the neighborhood, we'll also rename getbuttoninfo() to mousesel() which is, at least, less wrong. Signed-off-by: Devin J. Pohly <djpohly@gmail.com>
Diffstat (limited to 'st.h')
-rw-r--r--st.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/st.h b/st.h
index 79dd47e..c5ff5cf 100644
--- a/st.h
+++ b/st.h
@@ -172,7 +172,6 @@ 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);
@@ -184,6 +183,8 @@ void resettitle(void);
void selclear(void);
void selinit(void);
+void selstart(int, int, int);
+void selextend(int, int, int);
void selnormalize(void);
int selected(int, int);
char *getsel(void);
remember that computers suck.