[Top][All Lists]

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

Re: A couple of newbie CDK questions

From: Thomas Dickey
Subject: Re: A couple of newbie CDK questions
Date: Wed, 18 Jun 2008 12:44:53 -0400 (EDT)

On Tue, 17 Jun 2008, Kevin Monceaux wrote:

Ncurses Fans,

Hopefully it's okay to ask these questions here. Feel free to direct me elsewhere. From the list name I would think this list is for bug reports, but over on the Help-Ncurses list buried amongst all the SPAM I found a message or two saying it was okay to use this list for programming questions in addition to bug reports.

Anyway, many years ago I tinkered with CDK a bit. Back then I didn't come across examples of the traverse functions and thought one had to handle widget input one at a time. There's no mention of any of the traverse functions in the main CDK man page. Recently my interest in ncurses, and

ok - I should update the non-widget manpage list there (it doesn't list
cdk_compat, cdk_objs, cdk_params, cdk_position, either, now that I'm looking).

CDK, has been rekindled and I've been taking another look at CDK. I think I came across a mention of the traverse functions while digging through this list's archives. I've looked through the examples/demos that came with the CDK source and only found one example program that used the traverseCDKScreen function. After going through the man pages and example program there's something I'm unsure about:

The example program shows how to remap the escape key to F1. The man page mentions the EXIT-SAVE, EXIT-CANCEL, and RESET-DATA keys, but I can't find any info in the man pages saying what the default keybindings for those keys are. I suspect EXIT-CANCEL is the escape key. What are the others? Could someone point me towards more remapping examples. For example, I'd probably want to map EXIT-SAVE to F4 and EXIT-CANCEL to F12.

hmm - I seem to have left out a paragraph - reading the code, those are

        EXIT-SAVE is function-key 10
        EXIT-CANCEL is control/X
        RESET-DATA is control/R

That's done by binding to the special function getcCDKBind

Also, is there a way to set a CDKMentry field to wrap words?

it would require code code

Bruceville, TX

Si hoc legere scis nimium eruditionis habes.
Longum iter est per praecepta, breve et efficax per exempla!!!

Bug-ncurses mailing list

Thomas E. Dickey

reply via email to

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