1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-24 09:25:01 +00:00

Use ANSI escape sequences for TERM == xterm*, rather than just xterm.

This commit is contained in:
David E. O'Brien 1997-02-19 03:17:19 +00:00
parent d407202ca6
commit c2bf6b9d17
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=5686
2 changed files with 22 additions and 0 deletions

11
ftp/ncftp/files/patch-ab Normal file
View File

@ -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

11
ftp/ncftp1/files/patch-ab Normal file
View File

@ -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