note 38202 added to ref.ncurses
| From: | HabibValanejad at rn2 dot php dot net | Date: | Thu, 11 Dec 2003 19:30:26 +0000 |
| Subject: | note 38202 added to ref.ncurses | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-61826@lists.php.net to get a copy of this message | ||
Here is a function which would do the job for missing
ncurses_wclrtoeol() function:
/* wclrtoeol()
* Erases the current line to the right of the cursor
*/
function wclrtoeol($win)
{
# get current position
ncurses_getyx($win, &$crow, &$ccol);
# get maximum row and col for this window:
ncurses_getmaxyx($win, &$max_row, &$max_col);
for ($col = $ccol; $col < $max_col; $col ++){
ncurses_wmove($win, $crow, $col);
ncurses_waddch($win, 32);
}
}
----
Manual Page -- http://www.php.net/manual/en/ref.ncurses.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+38202
Delete -- http://master.php.net/manage/user-notes.php?action=delete+38202&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+38202&report=yes
Search -- http://master.php.net/manage/user-notes.php