diff options
author | Devin J. Pohly <djpohly@gmail.com> | 2018-02-21 23:29:41 -0600 |
---|---|---|
committer | Devin J. Pohly <djpohly@gmail.com> | 2018-02-25 21:53:24 -0600 |
commit | bcb5d3adbe57ead05a829e5144c2ba1dc465865f (patch) | |
tree | d72e99c54044e02063924f2416ceb9760c2141ec /st.h | |
parent | 5683b1f80c5ac274adf98517ce2217b4d4896243 (diff) | |
download | st-patched-bcb5d3adbe57ead05a829e5144c2ba1dc465865f.tar.bz2 st-patched-bcb5d3adbe57ead05a829e5144c2ba1dc465865f.tar.xz st-patched-bcb5d3adbe57ead05a829e5144c2ba1dc465865f.zip |
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.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -172,7 +172,6 @@ void toggleprinter(const Arg *); | |||
172 | int tattrset(int); | 172 | int tattrset(int); |
173 | void tnew(int, int); | 173 | void tnew(int, int); |
174 | void tresize(int, int); | 174 | void tresize(int, int); |
175 | void tsetdirt(int, int); | ||
176 | void tsetdirtattr(int); | 175 | void tsetdirtattr(int); |
177 | void ttynew(char *, char *, char **); | 176 | void ttynew(char *, char *, char **); |
178 | size_t ttyread(void); | 177 | size_t ttyread(void); |
@@ -184,6 +183,8 @@ void resettitle(void); | |||
184 | 183 | ||
185 | void selclear(void); | 184 | void selclear(void); |
186 | void selinit(void); | 185 | void selinit(void); |
186 | void selstart(int, int, int); | ||
187 | void selextend(int, int, int); | ||
187 | void selnormalize(void); | 188 | void selnormalize(void); |
188 | int selected(int, int); | 189 | int selected(int, int); |
189 | char *getsel(void); | 190 | char *getsel(void); |