From 393c2d3eb63e3df852208eb217a2dc578d09a1dd Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Mon, 23 Dec 2024 04:25:49 -0500 Subject: use fputs() rather than puts() for -t/-T (avoid extra newline) --- uxd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'uxd.c') 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; } -- cgit v1.2.3