From: Aurélien Aptel Date: Wed, 15 Feb 2012 23:59:26 +0000 (+0100) Subject: replace fwrite by printf. X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=ff5edcfd7055102c46098f18adf1b469eec7caef;p=st.git replace fwrite by printf. --- diff --git a/st.c b/st.c index 3b7eb78..baea2bc 100644 --- a/st.c +++ b/st.c @@ -1388,7 +1388,7 @@ csihandle(void) { void csidump(void) { int i; - fwrite("ESC[", 1, 4, stdout); + printf("ESC["); for(i = 0; i < escseq.len; i++) { uint c = escseq.buf[i] & 0xff; if(isprint(c)) putchar(c);