Hi
Program below illustrates a bug: lower case a, lower case f thru z,
and number 0 are printed with graphic characters. This bug did not
appear in earlier versions of slackware.
If you make the window with a frame around it, (uncomment the framewin
line) the characters are printed normally, and afterwards any window
written to is also printed normally.
program ncurtest;
uses GPC, GPCUtil, CRT, FrameWin;
var
submenu : WinState;
Data : array[1..3] of string( 32 ) = (
'ABCDEFGHIJKLMNOPQRSTUVWXYZ',
'abcdefghijklmnopqrstuvwxyz',
'0123456789');
i : integer;
begin
i := (ScreenSize.X - 32) div 2;
MakeWin( SubMenu, i, 2, i + 32, 7 );
{ FrameWin('HELP: hit Enter to exit', DoubleFrame ); }
FillWin( ' ', 16 * Blue );
HideCursor;
for i := 1 to 3 do
WriteStrAt( 2,i, Data[ i ], 16 * Blue + LightGray );
end.
Russ
Note to support(a)slackware.com, bug-ncurses(a)gnu.org:
gpc(a)gnu.de is a pascal mailing list
unit CRT is a pascal interface to ncurses