cdk_position man page

cdk_position ā€” curses widget positioning key-bindings

Synopsis

Position methods for the Cdk widgets allow the user to move the widget around the screen via the cursor/keypad keys.

Description

The following key bindings can be used to move the widget around the screen.

Key Action
Up Arrow Moves the widget up one row.
Down Arrow Moves the widget down one row.
Left Arrow Moves the widget left one column
Right Arrow Moves the widget right one column
1 Moves the widget down one row and left one column.
2 Moves the widget down one row.
3 Moves the widget down one row and right one column.
4 Moves the widget left one column
5 Centers the widget both vertically and horizontally.
6 Moves the widget right one column
7 Moves the widget up one row and left one column.
8 Moves the widget up one row.
9 Moves the widget up one row 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 its original position.
Return Exits the function and leaves the widgetwhere it was.

The numbers 0-9 are chosen to correspond to the numeric keypad on your terminal. Cdk does not handle the application mode keypad control sequences, since those are not defined via terminfo. To use the numeric keypad you should ensure that it is in normal (or NumLock) mode.

See Also

cdk(3), cdk_binding(3), cdk_display(3), cdk_screen(3)

Referenced By

cdk_alphalist(3), cdk_button(3), cdk_buttonbox(3), cdk_calendar(3), cdk_dialog(3), cdk_dscale(3), cdk_entry(3), cdk_fscale(3), cdk_fselect(3), cdk_fslider(3), cdk_graph(3), cdk_histogram(3), cdk_itemlist(3), cdk_label(3), cdk_marquee(3), cdk_matrix(3), cdk_mentry(3), cdk_params(3), cdk_radio(3), cdk_scale(3), cdk_scroll(3), cdk_selection(3), cdk_slider(3), cdk_swindow(3), cdk_template(3), cdk_uscale(3), cdk_uslider(3), cdk_util(3), cdk_viewer(3).