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:
parent
d407202ca6
commit
c2bf6b9d17
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=5686
11
ftp/ncftp/files/patch-ab
Normal file
11
ftp/ncftp/files/patch-ab
Normal 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
11
ftp/ncftp1/files/patch-ab
Normal 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
|
Loading…
Reference in New Issue
Block a user