From: Devin J. Pohly Date: Mon, 16 Oct 2017 01:35:48 +0000 (-0500) Subject: Factor out equivalent code from ttyread/ttysend X-Git-Url: https://git.xinqibao.xyz/st.git/commitdiff_plain/32d3b1d00f66eda4f5446f3b32cabed2c9a77a40?ds=sidebyside;hp=32d3b1d00f66eda4f5446f3b32cabed2c9a77a40 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 ---