bug-ncurses
[Top][All Lists]
Advanced

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

'touchcell' functions?


From: Bill Gray
Subject: 'touchcell' functions?
Date: Mon, 26 Jun 2023 14:11:28 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0

int touchline(WINDOW *win, int start, int count);
bool is_linetouched(WINDOW *win, int line);

enable one to 'touch' an (entire) line and to determine if (some or all of) a given line has been touched. There are situations involving partially overlapping windows where one might want to 'touch' a range of cells within a line or determine if (some or all of) a range of cells within a line had been touched, rather than touching or checking the entire line.

   I'm thinking along the lines of functions such as

int touchcells( WINDOW *win, int line, int column, int n_cols, int changed);
bool is_celltouched( const WINDOW *win, int line, int column);

   and possibly

bool are_cellstouched( const WINDOW *win, int line, int column, int n_cols);

Am I correct in thinking that these functions don't exist, in ncurses or elsewhere? (PDCurses and PDCursesMod provide some of this information, but only by examining internal WINDOW struct data.)

Thanks!       -- Bill



reply via email to

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