From 6e7034d22ebd70889a7d6602f8254307372305a5 Mon Sep 17 00:00:00 2001 From: Max Khon Date: Fri, 24 Jan 2003 09:41:24 +0000 Subject: try to fix 'last character sympthome' problem with syscons (patches submitted to developers as well) --- news/husky-msged/files/patch-areas.c | 18 ++++++++++++++++++ news/husky-msged/files/patch-config.c | 19 +++++++++++++++++++ news/husky-msged/files/patch-list.c | 10 ++++++++++ news/husky-msged/files/patch-msged.c | 20 ++++++++++++++++++++ news/husky-msged/files/patch-nshow.c | 28 ++++++++++++++++++++++++++++ news/husky-msged/files/patch-nshow.h | 11 +++++++++++ news/husky-msged/files/patch-wrap.c | 11 +++++++++++ 7 files changed, 117 insertions(+) create mode 100644 news/husky-msged/files/patch-areas.c create mode 100644 news/husky-msged/files/patch-config.c create mode 100644 news/husky-msged/files/patch-list.c create mode 100644 news/husky-msged/files/patch-msged.c create mode 100644 news/husky-msged/files/patch-nshow.c create mode 100644 news/husky-msged/files/patch-nshow.h create mode 100644 news/husky-msged/files/patch-wrap.c (limited to 'news') diff --git a/news/husky-msged/files/patch-areas.c b/news/husky-msged/files/patch-areas.c new file mode 100644 index 000000000000..e38f92ea4914 --- /dev/null +++ b/news/husky-msged/files/patch-areas.c @@ -0,0 +1,18 @@ +--- areas.c.orig Fri Jan 24 15:07:44 2003 ++++ areas.c Fri Jan 24 15:09:38 2003 +@@ -739,7 +739,6 @@ + + TTBeginOutput(); + WndClearLine(0, cm[MN_NTXT]); +- WndClearLine(maxy - 1, cm[MN_NTXT]); + hCurr = WndTop(); + hWnd = WndOpen(0, 1, wid, dep, NBDR | NOSAVE, 0, cm[MN_BTXT]); + WndBox(0, 0, maxx - 1, maxy - 3, cm[MN_BTXT], SBDR); +@@ -796,7 +795,6 @@ + dep = maxy - 2; + + WndClearLine(0, cm[MN_NTXT]); +- WndClearLine(maxy - 1, cm[MN_NTXT]); + hCurr = WndTop(); + hWnd = WndOpen(0, 1, wid, dep, NBDR, 0, cm[MN_BTXT]); + WndBox(0, 0, maxx - 1, maxy - 3, cm[MN_BTXT], SBDR); diff --git a/news/husky-msged/files/patch-config.c b/news/husky-msged/files/patch-config.c new file mode 100644 index 000000000000..1254c73506b4 --- /dev/null +++ b/news/husky-msged/files/patch-config.c @@ -0,0 +1,19 @@ +--- config.c.orig Fri Jan 24 15:26:47 2003 ++++ config.c Fri Jan 24 15:31:42 2003 +@@ -3978,7 +3978,7 @@ + areasort(); + group_build_arealist(); + printf (" \n"); +- InitScreen(); ++ InitScreen(0); + mygetcwd(tmp, PATHLEN); + ST->home = xstrdup(tmp); + +@@ -4003,6 +4003,5 @@ + + WndClose(hWnd); + WndCurr(hCurr); +- TTScolor(cm[CM_NTXT]); +- TTClear(hMnScr->x1, hMnScr->y1, hMnScr->x2, hMnScr->y2); ++ InitScreen(1); + } diff --git a/news/husky-msged/files/patch-list.c b/news/husky-msged/files/patch-list.c new file mode 100644 index 000000000000..05a427ffd50b --- /dev/null +++ b/news/husky-msged/files/patch-list.c @@ -0,0 +1,10 @@ +--- list.c.orig Fri Jan 24 15:01:23 2003 ++++ list.c Fri Jan 24 15:04:28 2003 +@@ -639,7 +639,6 @@ + + TTBeginOutput(); + WndClearLine(0, cm[MN_NTXT]); +- WndClearLine(maxy - 1, cm[MN_NTXT]); + WndWriteStr(2, 0, cm[LS_TTXT], CurArea.description); + hCurr = WndTop(); + hWnd = WndOpen(0, 1, maxx - 1, maxy - 2, NBDR | NOSAVE, 0, cm[LS_NTXT]); diff --git a/news/husky-msged/files/patch-msged.c b/news/husky-msged/files/patch-msged.c new file mode 100644 index 000000000000..a0406a08b797 --- /dev/null +++ b/news/husky-msged/files/patch-msged.c @@ -0,0 +1,20 @@ +--- ./msged.c.orig Tue Nov 27 01:13:44 2001 ++++ ./msged.c Fri Jan 24 15:35:36 2003 +@@ -1863,7 +1863,7 @@ + fputs("\nEnter the command \"EXIT\" to return to " PROG ".\n", stderr); + shell_to_dos(); + cursor(0); +- InitScreen(); ++ InitScreen(1); + BuildHotSpots(); + DrawHeader(); + ShowNewArea(); +@@ -2017,7 +2017,7 @@ + WndClose(hMnScr); + KillHotSpots(); + TTclose(); +- InitScreen(); ++ InitScreen(1); + adapt_margins(); + BuildHotSpots(); + ShowNewArea(); diff --git a/news/husky-msged/files/patch-nshow.c b/news/husky-msged/files/patch-nshow.c new file mode 100644 index 000000000000..dcaf4788bc92 --- /dev/null +++ b/news/husky-msged/files/patch-nshow.c @@ -0,0 +1,28 @@ +--- ./nshow.c.orig Thu Jun 21 03:21:35 2001 ++++ ./nshow.c Fri Jan 24 15:35:24 2003 +@@ -36,7 +36,7 @@ + int groupmove = 0; + HotGroup Hot; + +-int InitScreen(void) ++int InitScreen(int draw_statbar) + { + if (SW->usemouse == NO) + { +@@ -56,6 +56,8 @@ + else + maxy = term.NRow; + hMnScr = WndOpen(0, 0, maxx - 1, maxy - 1, NBDR, 0, cm[CM_NTXT]); ++ if (draw_statbar && SW->statbar) ++ WndClearLine(maxy - 1, cm[CM_ITXT]); + SW->redraw = TRUE; + return 0; + } +@@ -468,7 +470,6 @@ + if (l - 2 < maxx - 1) + WndPutsn(l - 2, maxy - 1, (maxx - 1) - (l - 2), + cm[CM_ITXT] | F_ALTERNATE, line + (l - 2)); +- WndClear(maxx - 1, maxy - 1, maxx - 1, maxy - 1, cm[CM_ITXT]); + } + if (!m) + { diff --git a/news/husky-msged/files/patch-nshow.h b/news/husky-msged/files/patch-nshow.h new file mode 100644 index 000000000000..2954d5d220dd --- /dev/null +++ b/news/husky-msged/files/patch-nshow.h @@ -0,0 +1,11 @@ +--- ./nshow.h.orig Fri Jan 24 15:28:13 2003 ++++ ./nshow.h Fri Jan 24 15:28:35 2003 +@@ -11,7 +11,7 @@ + + extern int groupmove; + +-int InitScreen(void); ++int InitScreen(int draw_statbar); + void AddHG(HotGroup * h, int num, int id, int x1, int y1, int x2, int y2); + void BuildHotSpots(void); + void KillHotSpots(void); diff --git a/news/husky-msged/files/patch-wrap.c b/news/husky-msged/files/patch-wrap.c new file mode 100644 index 000000000000..b2305c7df4cc --- /dev/null +++ b/news/husky-msged/files/patch-wrap.c @@ -0,0 +1,11 @@ +--- ./wrap.c.orig Fri Jan 24 15:26:18 2003 ++++ ./wrap.c Fri Jan 24 15:26:35 2003 +@@ -2357,7 +2357,7 @@ + /* Redraw the screen. */ + + cursor(0); +- InitScreen(); ++ InitScreen(1); + BuildHotSpots(); + DrawHeader(); + ShowNewArea(); -- cgit v1.2.3