To reproduce the bug: 1. Run a form with a newtEntry inside. 2. Select the entry, type some text, then return. 3. The cursor is now visible when switching between the various components of the form. A testcase follows: /* ------------ test.c --------------- */ #include <stdlib.h> #include <newt.h> int main (int argc, char **argv) { const char *res; newtComponent form_1, form_2, button, entry; newtInit(); newtCls(); newtCenteredWindow (40, 10, "Test"); form_1 = newtForm (NULL, NULL, 0); button = newtButton (17, 5, "Ok"); newtFormAddComponents (form_1, button, NULL); newtRunForm (form_1); entry = newtEntry (15, 2, "", 10, &res, NEWT_FLAG_RETURNEXIT); form_2 = newtForm (NULL, NULL, 0); newtFormAddComponents (form_2, entry); newtRunForm (form_2); newtFormDestroy (form_2); newtRunForm (form_1); newtFormDestroy (form_1); newtFinished(); return 0; } /* ----------------------------------- */ $ gcc -Wall -o test test.c -lnewt $ ./test Press 'Return'. Type some text then 'Return'. The cursor is now visible (near the button).
Fixed in newt-0.52.2-7.