From c2bf6b9d17be531c5fbf5629ccaf6e2edbbb358a Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Wed, 19 Feb 1997 03:17:19 +0000 Subject: Use ANSI escape sequences for TERM == xterm*, rather than just xterm. --- ftp/ncftp1/files/patch-ab | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 ftp/ncftp1/files/patch-ab (limited to 'ftp/ncftp1') diff --git a/ftp/ncftp1/files/patch-ab b/ftp/ncftp1/files/patch-ab new file mode 100644 index 000000000000..05f6711e416e --- /dev/null +++ b/ftp/ncftp1/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 -- cgit v1.2.3