Move terminal echo logic into st.c

The only thing differentiating ttywrite and ttysend was the potential
for echo; make this a parameter and remove ttysend.

Signed-off-by: Devin J. Pohly <djpohly@gmail.com>
This commit is contained in:
Devin J. Pohly
2018-02-22 00:42:23 -06:00
parent cfc7acdfd9
commit 52d6fb1ab1
3 changed files with 19 additions and 25 deletions

3
st.h

@ -176,8 +176,7 @@ 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);