]> git.dd.net - ust.git/commitdiff
small changes in interactive use
authorgit <redacted>
Wed, 18 Feb 2026 16:49:42 +0000 (11:49 -0500)
committergit <redacted>
Wed, 18 Feb 2026 16:49:42 +0000 (11:49 -0500)
config.mk
ust.c

index b891d34a6a5101e2debb2909bae484872f2bd9de..5a1e32518195915c9f9cfecc8760b5df32586a89 100644 (file)
--- a/config.mk
+++ b/config.mk
@@ -1,6 +1,6 @@
 VERSION = 0.2.1
 
-PREFIX = /usl/local
+PREFIX = /usr/local
 MANPREFIX = ${PREFIX}/share/man
 
 # need -D_GNU_SOURCE when compiling on Linux
diff --git a/ust.c b/ust.c
index e6e87bc5e53197435f76d4ae216e2f42d5bcbcc3..5570aa576f70a010665a3b245988a6e909841866 100644 (file)
--- a/ust.c
+++ b/ust.c
@@ -24,6 +24,7 @@
 #define LF '\n'
 #define BS '\b'
 #define DEL '\x7f'
+#define EOT '\x4'
 #define ESC '\x1b'
 #if defined(CCDTR_IFLOW) && defined(CDSR_OFLOW)
  #define CDTRDSR (CDTR_IFLOW | CDSR_OFLOW)
@@ -576,6 +577,7 @@ getcmd(int escape)
                cmdchar = writebuff[1];
 
        switch (cmdchar) {
+       case EOT: /* FALLTHROUGH */
        case '.':
                die(0,"\n[EOT]\n");
                break;
@@ -884,8 +886,8 @@ main(int argc, char **argv)
                                        " [--hardware-dtr-dsr|-r] [--software|-X]\n"
                                        "           [--delay|-d #] [--min-chars|-m #]"
                                        " [--canonical|-c] [--echo|-h]\n"
-                                       "           [--translation|-t tropt]"
-                                       " [--input-translation|-T tropt]\n"
+                                       "           [--translation|-t option]"
+                                       " [--input-translation|-T option]\n"
                                        "           [--verbose|-v] [--backspace|-b]\n",
                                        argv[0]);
                        break;