File: cdk_entry.3

package info (click to toggle)
libcdk 4.9.9-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 4,876 kB
  • ctags: 2,249
  • sloc: ansic: 28,664; sh: 6,966; makefile: 211; cpp: 42
file content (558 lines) | stat: -rw-r--r-- 21,794 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
.de It
.br
.ie \\n(.$>=3 .ne \\$3
.el .ne 3
.IP "\\$1" \\$2
..
.TH cdk_entry 3X "24 April 1997"
.SH NAME
newCDKEntry, activateCDKEntry, injectCDKEntry, setCDKEntry, 
setCDKEntryValue, getCDKEntryValue,
setCDKEntryMax, getCDKEntryMax,
setCDKEntryMin, getCDKEntryMin,
setCDKEntryFillerChar, getCDKEntryFillerChar,
setCDKEntryHiddenChar, getCDKEntryHiddenChar,
setCDKEntryBox, getCDKEntryBox,
setCDKEntryULChar, setCDKEntryURChar,
setCDKEntryLLChar, setCDKEntryLRChar,
setCDKEntryVerticalChar, setCDKEntryHorizontalChar,
setCDKEntryBoxAttribute,
setCDKEntryBackgroundColor,
setCDKEntryCB, drawCDKEntry, eraseCDKEntry, cleanCDKEntry, destroyCDKEntry, 
setCDKEntryPreProcess, setCDKEntryPostProcess \- Creates a managed curses 
entry widget.
.SH SYNOPSIS
.LP
.B cc
.RI "[ " "flag" " \|.\|.\|. ] " "file" " \|.\|.\|."
.B \-lcdk
.RI "[ " "library" " \|.\|.\|. ]"
.LP
#include <cdk.h>
.LP
.BI "CDKENTRY *newCDKEntry (CDKSCREEN *" "cdkscreen",
.BI "int " "xpos",
.BI "int " "ypos",
.BI "char *" "title",
.BI "char *" "label",
.BI "chtype " "fieldAttribute",
.BI "chtype " "fillerCharacter",
.BI "EDisplayType " "displayType",
.BI "int " "fieldWidth",
.BI "int " "minimumLength",
.BI "int " "maximumLength",
.BI "boolean " "box",
.BI "boolean " "shadow");
.LP
.BI "char *activateCDKEntry (CDKENTRY *" "entry",
.BI "chtype *" "actions");
.LP
.BI "int injectCDKEntry (CDKENTRY *" "entry",
.BI "chtype " "input");
.LP
.BI "void setCDKEntry (CDKENTRY *" "entry",
.BI "char *" "value",
.BI "int " "minimumLength",
.BI "int " "maximumLength",
.BI "boolean " "box");
.LP
.BI "void setCDKEntryValue (CDKENTRY *" "entry",
.BI "char *" "value");
.LP
.BI "char *getCDKEntryValue (CDKENTRY *" "entry");
.LP
.BI "void setCDKEntryMax (CDKENTRY *" "entry",
.BI "int " "maximum");
.LP
.BI "int getCDKEntryMax (CDKENTRY *" "entry");
.LP
.BI "void setCDKEntryMin (CDKENTRY *" "entry",
.BI "int " "minimum");
.LP
.BI "int getCDKEntryMin (CDKENTRY *" "entry");
.LP
.BI "void setCDKEntryBox (CDKENTRY *" "entry",
.BI "boolean " "box");
.LP
.BI "void setCDKEntryFillerChar (CDKENTRY *" "entry",
.BI "chtype " "character");
.LP
.BI "chtype getCDKEntryFillerChar *CDKENTRY *" "entry");
.LP
.BI "void setCDKEntryHiddenChar (CDKENTRY *" "entry",
.BI "chtype " "character");
.LP
.BI "chtype getCDKEntryHiddenChar *CDKENTRY *" "entry");
.LP
.BI "boolean getCDKEntryBox (CDKENTRY *" "entry");
.LP
.BI "void setCDKEntryBox (CDKENTRY *" "entry",
.BI "boolean " "box");
.LP
.BI "boolean getCDKEntryBox (CDKENTRY *" "entry");
.LP
.BI "void setCDKEntryULChar (CDKENTRY *", "entry",
.BI "chtype " "character");
.LP
.BI "void setCDKEntryURChar (CDKENTRY *", "entry",
.BI "chtype " "character");
.LP
.BI "void setCDKEntryLLChar (CDKENTRY *", "entry",
.BI "chtype " "character");
.LP
.BI "void setCDKEntryLRChar (CDKENTRY *", "entry",
.BI "chtype " "character");
.LP
.BI "void setCDKEntryVerticalChar (CDKENTRY *", "entry",
.BI "chtype " "character");
.LP
.BI "void setCDKEntryHorizontalChar (CDKENTRY *", "entry",
.BI "chtype " "character");
.LP
.BI "void setCDKEntryBoxAttribute (CDKENTRY *", "entry",
.BI "chtype " "character");
.LP
.BI "void setCDKEntryBackgroundColor (CDKENTRY *", "entry",
.BI "char * " "color");
.LP
.BI "void setCDKEntryCB (CDKENTRY *" "entry",
.BI "ENTRYCB " "callBackFunction");
.LP
.BI "void moveCDKEntry (CDKENTRY *" "entry",
.BI "int " "box",
.BI "int " "box",
.BI "boolean " "relative",
.BI "boolean " "refresh");
.LP
.BI "void positionCDKEntry (CDKENTRY *" "entry");
.LP
.BI "void drawCDKEntry (CDKENTRY *" "entry",
.BI "boolean " "box");
.LP
.BI "void eraseCDKEntry (CDKENTRY *" "entry");
.LP
.BI "void cleanCDKEntry (CDKENTRY *" "entry");
.LP
.BI "void destroyCDKEntry (CDKENTRY *" "entry");
.LP
.BI "void setCDKEntryPreProcess (CDKENTRY *" "entry",
.BI "PROCESSFN " "callback",
.BI "void * " "data");
.LP
.BI "void setCDKEntryPostProcess (CDKENTRY *" "entry",
.BI "PROCESSFN " "callback",
.BI "void * " "data");
.LP
.BI "void bindCDKObject (EObjectType " "widgetType",
.BI "void *" "object",
.BI "chtype" "key",
.BI "BINDFN" "function",
.BI "void *" "data");
.SH DESCRIPTION
The Cdk entry widget creates an entry box with a label and an entry field. The 
following are functions which create or manipulate the Cdk entry box widget.

.SH AVAILABLE FUNCTIONS
CDKENTRY *newCDKEntry (CDKSCREEN *\f2screen\f1, int \f2xpos\f1, int \f2ypos\f1, char *\f2title\f1, char *\f2label\f1, chtype \f2fieldAttribute\f1, chtype \f2fillerCharacter\f1, EDisplayType \f2displayType\f1, int \f2fieldWidth\f1, int \f2minimumLength\f1, int \f2maximumLength\f1, boolean \f2box\f1, boolean \f2shadow\f1);
.RS 3
This function creates a pointer to an entry widget. The \f2screen\f1 parameter
is the screen you wish this widget to be placed in. The parameter \f2xpos\f1
controls the placement of the object along the horizontal axis. This parameter
can accept an integer value or one of the pre-defined values of \f4LEFT\f1,
\f4RIGHT\f1, and \f4CENTER\f1. The parameter \f2ypos\f1 controls the placement
of the object along the vertical axis. This parameter can accept an integer 
value or one of the pre-defined values of \f4TOP\f1, \f4BOTTOM\f1, and \f4CENTER\f1.
The \f2title\f1 parameter is the string which will be displayed at the top of 
the widget. The title can be more than one line; just provide a carriage 
return character at the line break. The \f2label\f1 parameter is the string which 
will be displayed in the label of the entry field. The \f2fieldAttribute\f1 is 
the attribute of the characters to be displayed when they are typed in. 
\f2filler\f1 is the character which is to be displayed in an empty space in 
the entry field. The parameter \f2displayType\f1 tells how the entry field 
will behave when a character is entered into the field. The following table 
outlines valid values for this field and what they mean:
.LP
.RS 6
.nf 
\f2Display_Type      Meaning\f1
vCHAR             Only accepts alphabetic characters.
vLCHAR            Only accepts alphabetic characters.
                  Maps the character to lower case
                  when a character has been accepted.
vUCHAR            Only accepts alphabetic characters.
                  Maps the character to upper case
                  when a character has been accepted.
vHCHAR            Only accepts alphabetic characters.
                  Displays a \f4.\f1 when a character
                  has been accepted.
vUHCHAR           Only accepts alphabetic characters.
                  Displays a \f4.\f1 and maps the
                  character to upper case when a
                  character has been accepted.
vLHCHAR           Only accepts alphabetic characters.
                  Displays a \f4.\f1 and maps the
                  character to lower case when a
                  character has been accepted.
vINT              Only accepts numeric characters.
vHINT             Only accepts numeric characters.
                  Displays a \f4.\f1 when a character
                  has been accepted.
vMIXED            Accepts any character types.
vLMIXED           Accepts any character types.
                  Maps the character to lower case
                  when an alphabetic character has
                  been accepted.
vUMIXED           Accepts any character types.
                  Maps the character to upper case
                  when an alphabetic character has
                  been accepted.
vHMIXED           Accepts any character types.
                  Displays a \f4.\f1 when a character
                  has been accepted.
vLHMIXED          Accepts any character types.
                  Displays a \f4.\f1 and maps the
                  character to lower case when a
                  character has been accepted.
vUHMIXED          Accepts any character types.
                  Displays a \f4.\f1 and maps the
                  character to upper case when a
                  character has been accepted.
vVIEWONLY         Uneditable field.
.fi
.RE
.RS 3
.LP
The \f2fieldWidth\f1 parameter states how wide the field will be. If a value
of zero is provided, the field will be made as wide as possible on the 
screen. If a negative value is given, then the field width will be the
maximum width minus the value provided. The parameter \f2minimumLength\f1 
states how many characters have to be entered before the user can exit the 
entry field. The \f2maximumLength\f1 parameter sets the maximum number of 
characters that can be entered. The \f2box\f1 parameter states whether the 
widget will be drawn with a box around it or not. The \f2shadow\f1 parameter 
accepts a boolean value to turn the shadow on or off around this widget. If 
the widget could not be created then a \f4NULL\f1 pointer is returned.
.RE

char *activateCDKEntry (CDKENTRY *\f2entry\f1, chtype *\f2actions\f1);
.RS 3
This function activates the entry widget and lets the user interact with the
widget. The parameter \f2entry\f1 is a pointer to a non-NULL entry widget.
If the \f2actions\f1 parameter is passed with a non-NULL value, the characters
in the array will be injected into the widget. To activate the widget
interactively pass in a \f4NULL\f1 pointer for \f2actions\f1. If the character entered
into this widget is \f4RETURN\f1 or \f4TAB\f1 then this function will return 
a \f4char *\f1 representing the information typed into the widget and the 
structure member \f4exitType\f1 will be set to \f4vNORMAL\f1. If the character
entered was \f4ESCAPE\f1 then the function will returns \f4NULL\f1 pointer and 
the structure member \f4exitType\f1 is set to \f4vESCAPE_HIT\f1.
.RE

char *injectCDKEntry (CDKENTRY *\f2entry\f1, chtype \f2character\f1);
.RS 3
This function injects a single character into the widget. The parameter 
\f2entry\f1 is a pointer to a non-NULL entry. The parameter 
\f2character\f1 is the character to inject into the widget. If the character 
injected into this widget was \f4RETURN\f1 or \f4TAB\f1 then this function will
return a \f4char *\f1 representing the information typed into the widget and the 
structure member \f4exitType\f1 will be set to \f4vNORMAL\f1. If the character
entered was \f4ESCAPE\f1 then the function will returns \f4NULL\f1 pointer and 
the structure member \f4exitType\f1 is set to \f4vESCAPE_HIT\f1. Any other 
character injected into the widget will set the structure member \f4exitType\f1 
to \f4vEARLY_EXIT\f1 and the function will return a \f4NULL\f1 pointer.
.RE

void setCDKEntry (CDKENTRY *\f2entry\f1, char *\f2value\f1, int \f2minimumLength\f1, int \f2maximumLength\f1, boolean \f2box\f1);
.RS 3
This function lets the programmer modify certain elements of an already defined
entry widget. The \f2value\f1 parameter sets the value of the contents of the
entry field. The other parameter names correspond to the same parameter names
listed in the \f4newCDKEntry\f1 function.
.RE 

void setCDKEntryValue (CDKENTRY *\f2entry\f1, char *\f2value\f1);
.RS 3
This sets the current value of the widget.
.RE

char *getCDKEntryValue (CDKENTRY *\f2entry\f1);
.RS 3
This returns the current value of the widget.
.RE

void setCDKEntryMax (CDKENTRY *\f2entry\f1, int \f2maximum\f1);
.RS 3
This sets the maximum length of the string that the widget will allow.
.RE

int getCDKEntryMax (CDKENTRY *\f2entry\f1);
.RS 3
This returns the maximum length of a string the widget will allow.
.RE

void setCDKEntryMin (CDKENTRY *\f2entry\f1, int \f2maximum\f1);
.RS 3
This sets the minimum length of the string that the widget will allow.
.RE

int getCDKEntryMin (CDKENTRY *\f2entry\f1);
.RS 3
This returns the minimum length of a string the widget will allow.
.RE

void setCDKEntryFillerChar (CDKENTRY *\f2entry\f1, chtype \f2filler\f1);
.RS 3
This sets the character to use when drawing unused space in the field.
.RE

chtype getCDKEntryFillerChar (CDKENTRY *\f2entry\f1);
.RS 3
This returns the character being used to draw unused space in the widget.
.RE

void setCDKEntryHiddenChar (CDKENTRY *\f2entry\f1, chtype \f2character\f1);
.RS 3
This sets the character to use when using a hidden character type.
.RE

chtype getCDKEntryHiddenChar (CDKENTRY *\f2entry\f1);
.RS 3
This returns the character being used to draw the hidden character type.
.RE

void setCDKEntryBox (CDKENTRY *\f2entry\f1, boolean \f2boxWidget\f1);
.RS 3
This sets whether or not the widget will be draw with a box around it.
.RE

boolean getCDKEntryBox (CDKENTRY *\f2entry\f1);
.RS 3
This returns whether or not the widget will be drawn with a box around it.
.RE

void setCDKEntryULChar (CDKENTRY *\f2entry\f1, chtype \f2character\f1);
.RS 3
This function sets the upper left hand corner of the widgets box to
the given character.
.RE

void setCDKEntryURChar (CDKENTRY *\f2entry\f1, chtype \f2character\f1);
.RS 3
This function sets the upper right hand corner of the widgets box to
the given character.
.RE

void setCDKEntryLLChar (CDKENTRY *\f2entry\f1, chtype \f2character\f1);
.RS 3
This function sets the lower left hand corner of the widgets box to
the given character.
.RE

void setCDKEntryLRChar (CDKENTRY *\f2entry\f1, chtype \f2character\f1);
.RS 3
This function sets the lower right hand corner of the widgets box to
the given character.
.RE

void setCDKEntryVerticalChar (CDKENTRY *\f2entry\f1, chtype \f2character\f1);
.RS 3
This function sets the vertical drawing character for the box to
the given character.
.RE

void setCDKEntryHorizontalChar (CDKENTRY *\f2entry\f1, chtype \f2character\f1);
.RS 3
This function sets the horizontal drawing character for the box to
the given character.
.RE

void setCDKEntryBoxAttribute (CDKENTRY *\f2entry\f1, chtype \f2attribute\f1);
.RS 3
This function sets the attribute of the box.
.RE

void setCDKEntryBackgroundColor (CDKENTRY *\f2entry\f1, char *\f2color\f1);
.RS 3
This sets the background color of the widget. The parameter \f2color\f1
is in the format of the Cdk format strings. To get more information look
at the \f4cdk_display\f1 manual page.
.RE

void setCDKEntryCB (CDKENTRY *\f2entry\f1, ENTRYCB \f2callbackFunction\f1);
.RS 3
This function allows the programmer to set a different widget input handler.
The parameter \f2callbackFunction\f1 is of type \f4ENTRYCB\f1. The current 
default function is \f4CDKEntryCallBack\f1.
.RE

void moveCDKEntry (CDKENTRY *\f2entry\f1, int \f2xpos\f1, int \f2ypos\f1, boolean \f2relative\f1, boolean \f2refresh\f1);
.RS 3
This function moves the given widget to the given position. The parameters
\f2xpos\f1 and \f2ypos\f1 is the new position of the widget. The parameter
\f2xpos\f1 can accept an integer value or one of the pre-defined values of
\f4TOP\f1, \f4BOTTOM\f1, and \f4CENTER\f1. The parameter \f2ypos\f1 can 
accept an integer value or one of the pre-defined values of \f4LEFT\f1,
\f4RIGHT\f1, and \f4CENTER\f1. The parameter \f2relative\f1 states whether
the \f2xpos\f1/\f2ypos\f1 pair is a relative move or an absolute move. For
example if \f2xpos\f1 = 1 and \f2ypos\f1 = 2 and \f2relative\f1 = \f2TRUE\f1,
then the widget would move one row down and two columns right. If the value
of \f2relative\f1 was \f2FALSE\f1 then the widget would move to the position
(1,2). Do not use the values of \f4TOP\f1, \f4BOTTOM\f1, \f4LEFT\f1, 
\f4RIGHT\f1, or \f4CENTER\f1 when \f2relative\f1 = \f4TRUE\f1. (wierd things 
may happen). The final parameter \f2refresh\f1 is a boolean value which states
whether the widget will get refreshed after the move or not.
.RE

void positionCDKEntry (CDKENTRY *\f2entry\f1);
.RS 3
This function allows the user to move the widget around the screen via the
cursor/keypad keys. The following key bindings can be used to move the
widget around the screen.
.LP
.nf
\f4Key Bindings\f1
.RS 3
\f2Key          Action\f1
Up Arrow     Moves the widget up one line.
Down Arrow   Moves the widget down one line.
Left Arrow   Moves the widget left one column
Right Arrow  Moves the widget right one column
Keypad-1     Moves the widget down one line
             and left one column.
Keypad-2     Moves the widget down one line.
Keypad-3     Moves the widget down one line
             and right one column.
Keypad-4     Moves the widget left one column
Keypad-5     Centers the widget both vertically
             and horizontally.
Keypad-6     Moves the widget right one column
Keypad-7     Moves the widget up one line
             and left one column.
Keypad-8     Moves the widget up one line.
Keypad-9     Moves the widget up one line
             and right one column.
t            Moves the widget to the top of the screen.
b            Moves the widget to the bottom of the screen.
l            Moves the widget to the left of the screen.
r            Moves the widget to the right of the screen.
c            Centers the widget between the left and 
             right of the window.
C            Centers the widget between the top and 
             bottom of the window.
Escape       Returns the widget to it's original position.
Return       Exits the function and leaves the widget
             where it was.
.fi
.RE
.RS 3
.LP
Keypad means that if the keyboard you are using has a keypad, then the
Num-Lock light has to be on in order to use the keys as listed. (The
numeric keys at the top of the keyboard will work as well.)
.LP
void drawCDKEntry (CDKENTRY *\f2entry\f1, boolean \f2box\f1);
.RS 3
This function draws the entry widget on the screen. The \f2box\f1 option 
draws the widget with or without a box.
.RE

void eraseCDKEntry (CDKENTRY *\f2entry\f1);
.RS 3
This function removes the widget from the screen. This does \f4NOT\f1 destroy
the widget.
.RE

void cleanCDKEntry (CDKENTRY *\f2entry\f1);
.RS 3
This function clears the information from the field.
.RE

void destroyCDKEntry (CDKENTRY *\f2entry\f1);
.RS 3
This function removes the widget from the screen and frees up any memory the
object may be using.
.RE

void setCDKEntryPreProcess (CDKENTRY *\f2entry\f1, PROCESSFN \f2function\f1, void *\f2data\f1);
.RS 3
This function allows the user to have the widget call a function after a key
is hit and before the key is applied to the widget. The parameter \f2function\f1
if of type \f4PROCESSFN\f1. The parameter \f2data\f1 is a pointer to 
\f4void\f1. To learn more about pre-processing read the \f4cdk_process\f1
manual page.
.RE
 
void setCDKEntryPostProcess (CDKENTRY *\f2entry\f1, PROCESSFN \f2function\f1, void *\f2data\f1);
.RS 3
This function allows the user to have the widget call a function after the
key has been applied to the widget.  The parameter \f2function\f1 if of type
\f4PROCESSFN\f1. The parameter \f2data\f1 is a pointer to \f4void\f1. To
learn more about post-processing read the \f4cdk_process\f1 manual page.
.RE

void bindCDKObject (EObjectType \f2widgetType\f1, void *\f2object\f1, chtype \f2key\f1, BINDFN \f2function\f1, void *\f2data\f1);
.RS 3
This function allows the user to create special key bindings. The 
\f2widgetType\f1 parameter is a defined type which states what Cdk object type
is being used. To learn more about the type \f4EObjectType\f1 read the 
\f4cdk_binding\f1 manual page. The \f2object\f1 parameter is the pointer to the
widget object. The \f2key\f1 is the character to bind. The \f2function\f1 is 
the function type. To learn more about the key binding callback function types
read the \f4cdk_binding\f1 manual page. The last parameter \f2data\f1 is a 
pointer to any data that needs to get passed to the callback function.
.RE

.SH KEY BINDINGS
When the widget is activated there are several default key bindings which will
help the user enter or manipulate the information quickly. The following table
outlines the keys and their actions for this widget.
.LP
.RS 3
.nf
\f2Key          Action\f1
Left Arrow  Moves the cursor the the left.
CTRL-B      Moves the cursor the the left.
Right Arrow Moves the cursor the the right.
CTRL-F      Moves the cursor the the right.
Delete      Deletes the character to the left of the cursor.
Backspace   Deletes the character to the left of the cursor.
CTRL-H      Deletes the character to the left of the cursor.
CTRL-V      Pastes whatever is in the paste buffer, into the widget.
CTRL-X      Cuts the contents from the widget and saves a copy in 
            the paste buffer.
CTRL-Y      Copies the contents of the widget into the paste buffer.
CTRL-U      Erases the contents of the widget.
CTRL-A      Moves the cursor to the begining of the entry field.
CTRL-E      Moves the cursor to the end of the entry field.
CTRL-T      Transposes the characer under the cursor with the
            character to the right.
Return      Exits the widget and returns a \f4char *\f1 representing
            the information which was typed into the field. It also
            sets the structure member \f4exitType\f1 in the widget
            pointer to \f4vNORMAL\f1.
Tab         Exits the widget and returns a \f4char *\f1 representing
            the information which was typed into the field. It also
            sets the structure member \f4exitType\f1 in the widget
            pointer to \f4vNORMAL\f1.
Escape      Exits the widget and returns a \f4NULL\f1 pointer. It also
            sets the structure member \f4exitType\f1 in the widget pointer
            to the value of \f4vESCAPE_HIT\f1.
Ctrl-L      Refreshes the screen.
.fi
.RE
.SH SEE ALSO
.BR cdk (3X),
.BR cdk_binding (3X),
.BR cdk_display (3X),
.BR cdk_process (3X),
.BR cdk_screen (3X)
.SH NOTES
.PP
The header file \f4<cdk.h>\f1 automatically includes the header files
\f4<curses.h>\f1, \f4<stdlib.h>\f1, \f4<string.h>\f1, \f4<ctype.h>\f1,
\f4<unistd.h>\f1, \f4<dirent.h>\f1, \f4<time.h>\f1, \f4<errno.h>\f1,
\f4<pwd.h>\f1, \f4<grp.h>\f1, \f4<sys/stat.h>\f1, and \f4<sys/types.h>\f1.
The \f4<curses.h>\f1 header file includes \f4<stdio.h>\f1 and \f4<unctrl.h>\f1.
.PP
If you have \f4Ncurses\f1 installed on your machine add -DNCURSES to the 
compile line to include the Ncurses header files instead.