diff options
| author | Devin J. Pohly <djpohly@gmail.com> | 2017-10-15 20:35:48 -0500 |
|---|---|---|
| committer | Devin J. Pohly <djpohly@gmail.com> | 2018-02-25 21:53:24 -0600 |
| commit | 32d3b1d00f66eda4f5446f3b32cabed2c9a77a40 (patch) | |
| tree | d7e106917d1db250e23979818616665fb69437ba /st.h | |
| parent | Move opt_* into same file as main()/run() (diff) | |
| download | st-32d3b1d00f66eda4f5446f3b32cabed2c9a77a40.tar.gz st-32d3b1d00f66eda4f5446f3b32cabed2c9a77a40.zip | |
Factor out equivalent code from ttyread/ttysend
The echo-to-terminal portions of ttyread and ttysend were actually doing
the same thing. New function twrite() now handles this. The parameter
show_ctrl determines whether control characters are shown as "^A". This
was the only difference between tputc and techo, and techo is now unused
and removed.
(This commit should not change st's behaviour.)
Signed-off-by: Devin J. Pohly <djpohly@gmail.com>
Diffstat (limited to '')
| -rw-r--r-- | st.h | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -209,7 +209,7 @@ void selnormalize(void); | |||
| 209 | int selected(int, int); | 209 | int selected(int, int); |
| 210 | char *getsel(void); | 210 | char *getsel(void); |
| 211 | 211 | ||
| 212 | size_t utf8decode(char *, Rune *, size_t); | 212 | size_t utf8decode(const char *, Rune *, size_t); |
| 213 | size_t utf8encode(Rune, char *); | 213 | size_t utf8encode(Rune, char *); |
| 214 | 214 | ||
| 215 | void *xmalloc(size_t); | 215 | void *xmalloc(size_t); |
