summaryrefslogtreecommitdiff
path: root/games/xnethack/files/patch-win-tty-termcap.c
diff options
context:
space:
mode:
Diffstat (limited to 'games/xnethack/files/patch-win-tty-termcap.c')
-rw-r--r--games/xnethack/files/patch-win-tty-termcap.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/games/xnethack/files/patch-win-tty-termcap.c b/games/xnethack/files/patch-win-tty-termcap.c
new file mode 100644
index 000000000000..9338a9c87743
--- /dev/null
+++ b/games/xnethack/files/patch-win-tty-termcap.c
@@ -0,0 +1,13 @@
+--- win/tty/termcap.c.orig 2021-03-22 22:28:14 UTC
++++ win/tty/termcap.c
+@@ -185,10 +185,6 @@ tty_startup(int *wid, int *hgt)
+ error("Terminal must backspace.");
+ #else
+ if (!(BC = Tgetstr("bc"))) { /* termcap also uses bc/bs */
+-#ifndef MINIMAL_TERM
+- if (!tgetflag("bs"))
+- error("Terminal must backspace.");
+-#endif
+ BC = tbufptr;
+ tbufptr += 2;
+ *BC = '\b';