bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Regression from 6.1 to 6.2 with wbkgd


From: Marc Rechté
Subject: Regression from 6.1 to 6.2 with wbkgd
Date: Fri, 28 Feb 2020 19:36:55 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0

Hello,

The following code produces a window full of "€" (see attached capture) characters with 6.2 wheras 6.1 produces a blank window.

Thanks

#include <stdlib.h>

#include <ncurses.h>

#include <panel.h>







char KeyWait (void) {

/*   -------      attend qu'une touche soit frappée.

                  Ramène le caractère (si !=0) ou ExitKey */

     int ch;

     do {

         ch = getch();

     } while (ch==ERR);

     return (char)ch;

} /* KeyWait */











int main(int argc, char *argv[]) {

//  ---- module principal



     initscr();

     start_color();

     // Color pairs

     init_pair(1, COLOR_GREEN, COLOR_BLACK);

     clear();

     WINDOW *pWindow;

     PANEL *pPanel;



     if ((pWindow = newwin(23, 78, 1, 1)) == NULL) {

         fputs("\nSaveWindow: no more memory\n",stderr);

         abort();

     }

     // add it to the panel deck => => fonction 1 coupable des €

     pPanel = new_panel(pWindow);

     // set colour => fonction 2 coupable des €

     wbkgd(pWindow, COLOR_PAIR(1));



     update_panels();

     doupdate();

     KeyWait();

     endwin();

}

Attachment: Capture d’écran de 2020-02-28 19-34-23.png
Description: PNG image


reply via email to

[Prev in Thread] Current Thread [Next in Thread]