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-bcb5d3adbe57ead05a829e5144c2ba1dc465865f.tar.gz st-bcb5d3adbe57ead05a829e5144c2ba1dc465865f.tar.bz2 |
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 *); 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); |