Operating System - HP-UX
1837584 Members
3176 Online
110117 Solutions
New Discussion

System call involved in refresh()?

 
CD Ajaykumar
Occasional Contributor

System call involved in refresh()?

Hi,

I would like to know whether there is any system call involved in the curses function refresh()?

Thanks for any help on this
Ajay

3 REPLIES 3
Steve Steel
Honored Contributor

Re: System call involved in refresh()?

Hi

try man refresh

it explains it well


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
A. Clay Stephenson
Acclaimed Contributor

Re: System call involved in refresh()?

It depends. If curses has determined that the window and screen are "in sync" then refresh() does nothing BUT if the window has been altered via a wprintw(), waddch(), ... OR if you have intentionally told curses to forget what it knows about a window using touchwin() then at the very least, curses will issue write() system calls. There are also usually some signal() system calls as well. If you really want to know things down to the system call level, I suggest that you download the ncurses source from any of the HP-UX Porting Centre's and peruse it to your heart's content.
If it ain't broke, I can fix that.
CD Ajaykumar
Occasional Contributor

Re: System call involved in refresh()?

Hi Clay and Steve,

Thanks for the valuable information. I will check the 'man' for refresh and ncurses source .

Ajay