Bug 86074

Summary: Cursor stays 'On' after a newtEntry is processed.
Product: [Fedora] Fedora Reporter: Olivier Baudron <olivier.baudron>
Component: newtAssignee: Miroslav Lichvar <mlichvar>
Status: CLOSED RAWHIDE QA Contact: Jay Turner <jturner>
Severity: low Docs Contact:
Priority: medium    
Version: rawhideCC: srevivo
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-06-08 15:59:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Olivier Baudron 2003-03-13 16:29:42 UTC
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).

Comment 1 Miroslav Lichvar 2006-06-08 15:59:44 UTC
Fixed in newt-0.52.2-7.