summaryrefslogtreecommitdiffstats
path: root/ftp/ncftp
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>1997-02-19 03:17:19 +0000
committerobrien <obrien@FreeBSD.org>1997-02-19 03:17:19 +0000
commit12e858c0b776eb550273f93df27ad3cc4d79890d (patch)
treeb8c466f65b6c56e2a262130c05ca4707e1e7f2c0 /ftp/ncftp
parentfc1b8445f6dbbc714340c82ee38fad0a25ac0095 (diff)
downloadFreeBSD-ports-12e858c0b776eb550273f93df27ad3cc4d79890d.zip
FreeBSD-ports-12e858c0b776eb550273f93df27ad3cc4d79890d.tar.gz
Use ANSI escape sequences for TERM == xterm*, rather than just xterm.
Diffstat (limited to 'ftp/ncftp')
-rw-r--r--ftp/ncftp/files/patch-ab11
1 files changed, 11 insertions, 0 deletions
diff --git a/ftp/ncftp/files/patch-ab b/ftp/ncftp/files/patch-ab
new file mode 100644
index 0000000..05f6711
--- /dev/null
+++ b/ftp/ncftp/files/patch-ab
@@ -0,0 +1,11 @@
+--- main.c.orig Sun Oct 29 19:17:55 1995
++++ main.c Tue Feb 18 19:11:56 1997
+@@ -200,7 +200,7 @@
+ ansi_escapes = 0;
+ if ((cp = getenv("TERM")) != NULL) {
+ if ((*cp == 'v' && cp[1] == 't') /* vt100, vt102, ... */
+- || (strcmp(cp, "xterm") == 0))
++ || (strncmp(cp, "xterm", 5) == 0))
+ ansi_escapes = 1;
+ }
+ #endif
OpenPOWER on IntegriCloud