X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=st.c;h=0c876f5658ea9415d5f20d11e8ff5e1c269b1f81;hb=df5c5ed04547986ad2fd22226aaa3da430310374;hp=65829a824cff899e51d542c6411aadfb3cf8cf1d;hpb=5ce6c5c0324ef3b7d0f5b9e6e2ba4d87ae0d3bb1;p=st.git diff --git a/st.c b/st.c index 65829a8..0c876f5 100644 --- a/st.c +++ b/st.c @@ -392,10 +392,8 @@ ttyread(void) { if((ret = read(cmdfd, buf, LEN(buf))) < 0) die("Couldn't read from shell: %s\n", SERRNO); - else { - printf("ttyread %d\n", ret); + else tputs(buf, ret); - } } void