From: Yann Dirson Date: Sun, 16 Feb 2014 14:50:26 +0000 (+0100) Subject: Curses: avoid getting out of 80 columns when editing board. X-Git-Url: http://winboard.nl/cgi-bin?p=gnushogi.git;a=commitdiff_plain;h=3cb3a0e7b5279a587a12ed2fa8bb01472a94489e Curses: avoid getting out of 80 columns when editing board. Now print user-provided chars on line following the long prompt. --- diff --git a/NEWS b/NEWS index 57a4994..a1e94f9 100644 --- a/NEWS +++ b/NEWS @@ -5,7 +5,9 @@ Changes in version 1.4.2 (unreleased): * XShogi is no longer included in the GNU Shogi source, it is available as a separate source archive. -* Fixed display of column number for MiniShogi in Curses mode. +* Fixed Curses mode display: + - reversed column number for MiniShogi + - artifacts while prompting in edit mode with only 80 columns * Minor code cleanups. Changes in version 1.4.1 (01/2014): diff --git a/gnushogi/cursesdsp.c b/gnushogi/cursesdsp.c index 205b749..3798a19 100644 --- a/gnushogi/cursesdsp.c +++ b/gnushogi/cursesdsp.c @@ -481,7 +481,7 @@ Curses_EditBoard(void) { gotoXY(TAB, 6); printw("Editing: %s", ColorStr[a]); - gotoXY(TAB + 24, 7); + gotoXY(TAB + 2, 8); ClearEoln(); FLUSH_SCANW("%s", s); found = 0;