mouse

Undocumented in source.

Members

Functions

mouse_command
int mouse_command()

Call this routine in the main command loop. It handles any mouse commands.

Static functions

mouse_findpos
void mouse_findpos(uint col, uint row, WINDOW** p_wp, LINE** p_lp, int* p_doto)

Set cursor at row,col.

mouse_leftisdown
int mouse_leftisdown()

Return !=0 if left button is down.

mouse_markdrag
void mouse_markdrag(WINDOW* wp, LINE* lp, int doto)

Given an initial position, drag the mouse, marking text as we go.

mouse_tocursor
void mouse_tocursor(uint* px, uint* py)

Convert from Microsoft coordinates to proper cursor coordinates.

mouse_windrag
void mouse_windrag(WINDOW* wp)

Given an initial position, drag the border of the window around.

Static variables

clicks
int clicks;
Undocumented in source.
lastclick
clock_t lastclick;
Undocumented in source.

Meta