forked from Lainports/freebsd-ports
45 lines
1.2 KiB
Text
45 lines
1.2 KiB
Text
--- src/window.c.orig 2008-02-06 22:49:55.000000000 +0100
|
|
+++ src/window.c 2008-04-17 20:08:10.000000000 +0200
|
|
@@ -70,6 +70,7 @@
|
|
static const char *CS, *SF, *SR, *VB, *BL;
|
|
static const char *VE, *VI, *KS, *KE;
|
|
static const char *CD, *CL, *IC, *DC;
|
|
+static char *mcBC;
|
|
static const char *CR, *NL;
|
|
#ifdef ST_LINE
|
|
static const char *TS, *FS, *DS;
|
|
@@ -342,8 +343,8 @@
|
|
else if (NL != NULL && x == 0 && x == curx && y == cury + 1)
|
|
outstr(NL);
|
|
#endif
|
|
- else if (BC != NULL && y == cury && x == curx - 1)
|
|
- outstr(BC);
|
|
+ else if (mcBC != NULL && y == cury && x == curx - 1)
|
|
+ outstr(mcBC);
|
|
else
|
|
outstr(tgoto(CM, x, y));
|
|
curx = x;
|
|
@@ -2007,7 +2008,7 @@
|
|
CL = tgetstr("cl", &_tptr);
|
|
IC = tgetstr("ic", &_tptr);
|
|
DC = tgetstr("dc", &_tptr);
|
|
- BC = tgetstr("bc", &_tptr);
|
|
+ mcBC = tgetstr("bc", &_tptr);
|
|
CR = tgetstr("cr", &_tptr);
|
|
NL = tgetstr("nl", &_tptr);
|
|
AC = tgetstr("ac", &_tptr);
|
|
@@ -2066,11 +2067,11 @@
|
|
_has_am = tgetflag("am");
|
|
_mv_standout = tgetflag("ms");
|
|
if (tgetflag("bs")) {
|
|
- if (BC == NULL)
|
|
- BC = "\b";
|
|
+ if (mcBC == NULL)
|
|
+ mcBC = "\b";
|
|
}
|
|
else
|
|
- BC = NULL;
|
|
+ mcBC = NULL;
|
|
|
|
/* Special IBM box-drawing characters */
|
|
D_UL = 201;
|