From 4fb46ad96c1bc994139b58250b1f0e8a17b25d3b Mon Sep 17 00:00:00 2001 From: krion Date: Fri, 12 Mar 2004 10:10:22 +0000 Subject: - Fix hack(1) running PR: ports/64113 Submitted by: schweikh --- games/bsdgames/files/patch-hack::hack.termcap.c | 13 +++++++++++++ games/freebsd-games/files/patch-hack::hack.termcap.c | 13 +++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 games/bsdgames/files/patch-hack::hack.termcap.c create mode 100644 games/freebsd-games/files/patch-hack::hack.termcap.c (limited to 'games') diff --git a/games/bsdgames/files/patch-hack::hack.termcap.c b/games/bsdgames/files/patch-hack::hack.termcap.c new file mode 100644 index 000000000000..de8fd532021c --- /dev/null +++ b/games/bsdgames/files/patch-hack::hack.termcap.c @@ -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; + diff --git a/games/freebsd-games/files/patch-hack::hack.termcap.c b/games/freebsd-games/files/patch-hack::hack.termcap.c new file mode 100644 index 000000000000..de8fd532021c --- /dev/null +++ b/games/freebsd-games/files/patch-hack::hack.termcap.c @@ -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; + -- cgit