aboutsummaryrefslogtreecommitdiff
path: root/uxd.c
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-12-23 04:25:49 -0500
committerB. Watson <urchlay@slackware.uk>2024-12-23 04:25:49 -0500
commit393c2d3eb63e3df852208eb217a2dc578d09a1dd (patch)
tree4f7e70c9ad859c856c715b45a247b8ed9c0d666a /uxd.c
parent0cf6d8dca2d725c7ddfc92ab56a59bb882e67fc7 (diff)
downloaduxd-393c2d3eb63e3df852208eb217a2dc578d09a1dd.tar.gz
use fputs() rather than puts() for -t/-T (avoid extra newline)
Diffstat (limited to 'uxd.c')
-rw-r--r--uxd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/uxd.c b/uxd.c
index 5775ef4..7f518e0 100644
--- a/uxd.c
+++ b/uxd.c
@@ -887,7 +887,7 @@ int main(int argc, char **argv) {
parse_options(argc, argv);
if(term_utf8) /* -t, -T */
- puts(ESC_UTF8_ON);
+ fputs(ESC_UTF8_ON, stdout);
if(dump_data_arg)
dump_data(); /* -d */
@@ -898,7 +898,7 @@ int main(int argc, char **argv) {
print_info();
if(restore_term) /* -T */
- puts(ESC_UTF8_OFF);
+ fputs(ESC_UTF8_OFF, stdout);
return 0;
}