diff options
Diffstat (limited to 'miscutils/chat.c')
-rw-r--r-- | miscutils/chat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/miscutils/chat.c b/miscutils/chat.c index a04565063..86a114df6 100644 --- a/miscutils/chat.c +++ b/miscutils/chat.c | |||
@@ -379,7 +379,7 @@ int chat_main(int argc UNUSED_PARAM, char **argv) | |||
379 | // dump device input if ECHO ON | 379 | // dump device input if ECHO ON |
380 | if (echo) { | 380 | if (echo) { |
381 | // if (buf[buf_len] < ' ') { | 381 | // if (buf[buf_len] < ' ') { |
382 | // full_write(STDERR_FILENO, "^", 1); | 382 | // full_write2_str("^"); |
383 | // buf[buf_len] += '@'; | 383 | // buf[buf_len] += '@'; |
384 | // } | 384 | // } |
385 | full_write(STDERR_FILENO, buf+buf_len, 1); | 385 | full_write(STDERR_FILENO, buf+buf_len, 1); |
@@ -473,7 +473,7 @@ int chat_main(int argc UNUSED_PARAM, char **argv) | |||
473 | if ('\\' == c) { | 473 | if ('\\' == c) { |
474 | c = *++buf; | 474 | c = *++buf; |
475 | if ('d' == c) { | 475 | if ('d' == c) { |
476 | sleep(1); | 476 | sleep1(); |
477 | len--; | 477 | len--; |
478 | continue; | 478 | continue; |
479 | } | 479 | } |
@@ -509,7 +509,7 @@ int chat_main(int argc UNUSED_PARAM, char **argv) | |||
509 | #if ENABLE_FEATURE_CHAT_IMPLICIT_CR | 509 | #if ENABLE_FEATURE_CHAT_IMPLICIT_CR |
510 | // or terminate command with \r (if not inhibited) | 510 | // or terminate command with \r (if not inhibited) |
511 | else if (!nocr) | 511 | else if (!nocr) |
512 | xwrite(STDOUT_FILENO, "\r", 1); | 512 | xwrite_str(STDOUT_FILENO, "\r"); |
513 | #endif | 513 | #endif |
514 | // bail out unless we sent command successfully | 514 | // bail out unless we sent command successfully |
515 | if (exitcode) | 515 | if (exitcode) |