rterm - int Wscrl( WINDOW *, int ); int Wrefresh( WINDOW *...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
/* Remote Terminal Window Header R This is a substitute header to be used by a client program, which redirects some curses calls to stubs to access Remote Procedure Call. */ * #include <curses.h> /* curses info */ #include <errno.h> /* errno variable */ * // A function to accept a message from the internet // and then interpret as a function call. int netcmd(); i // These function prototypes act as wrappers to existing curses functions / int Mvwdelch( WINDOW *, int, int ); int Mvwaddch( WINDOW *, int, int, int ); int Mvwaddstr( WINDOW *, int, int, char * );
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: int Wscrl( WINDOW *, int ); int Wrefresh( WINDOW * ); i // And these will define macros to replace calls to curses // functions with calls to the functions above. // They will be used to allow us to modify a remote screen. / #undef mvwdelch #undef mvwaddch #undef mvwaddstr #undef wscrl #undef wrefresh # #define mvwaddch Mvwaddch #define mvwdelch Mvwdelch #define mvwaddstr Mvwaddstr #define wscrl Wscrl #define wrefresh Wrefresh...
View Full Document

Ask a homework question - tutors are online