- Fix hack(1) running

PR:		ports/64113
Submitted by:	schweikh
This commit is contained in:
Kirill Ponomarev 2004-03-12 10:10:22 +00:00
parent 1f57ab3b93
commit ed3ef8d326
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=103761
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,13 @@
--- hack/hack.termcap.c.orig Sat Mar 6 22:18:53 2004
+++ hack/hack.termcap.c Thu Mar 11 18:42:47 2004
@@ -35,7 +35,8 @@
flags.nonull = 1;
if(pc = tgetstr("pc", &tbufptr))
PC = *pc;
- if(!(BC = tgetstr("bc", &tbufptr))) {
+ if(!(BC = tgetstr("bc", &tbufptr))
+ &&!(BC = tgetstr("le", &tbufptr))) {
if(!tgetflag("bs"))
error("Terminal must backspace.");
BC = tbufptr;

View File

@ -0,0 +1,13 @@
--- hack/hack.termcap.c.orig Sat Mar 6 22:18:53 2004
+++ hack/hack.termcap.c Thu Mar 11 18:42:47 2004
@@ -35,7 +35,8 @@
flags.nonull = 1;
if(pc = tgetstr("pc", &tbufptr))
PC = *pc;
- if(!(BC = tgetstr("bc", &tbufptr))) {
+ if(!(BC = tgetstr("bc", &tbufptr))
+ &&!(BC = tgetstr("le", &tbufptr))) {
if(!tgetflag("bs"))
error("Terminal must backspace.");
BC = tbufptr;