telnetd/uginter.cpp
/*--- function GetUniPageAddr ----------------------------------
 *
 *  Return the screen buffer address for a connection.
 *
 *  Entry:  pConn    points to a session struct
 *
 *  Exit:   *scr_addr   points to the address of a 80*24
 *                      screen buffer in ASCII
 *          *status_line points to an 80-char status line
 *          Returns 0 if successful.
 */
function GetUniPageAddr
Return the screen buffer address for a connection.

pConn    points to a session struct

*scr_addr   points to the address of a 80*24
screen buffer in ASCII
*status_line points to an 80-char status line
Returns 0 if successful.
function GetUniPageAddr Return the screen buffer address for a connection . pConn points to a session struct * scr_addr points to the address of a 80 * 24 screen buffer in ASCII * status_line points to an 80 - char status line Returns 0 if successful .
int GetUniPageAddr(TypConn *pConn, char **scr_addr, char **status_addr)
{
   struct telnet_screen *tel_screen;
   int retval;
   int conn_index = pConn->iord;
   int cur_page = tel_screen_buffs[conn_index].cur_page;
   load_screen_buf(tel_screen_buffs[conn_index].buf_type[cur_page],
                   tel_screen_buffs[conn_index].buf_num[cur_page]);
   *scr_addr = tel_screen->buffer;
   *status_addr = (char *)tel_screen->status_line;
   retval = !(*scr_addr && *status_addr);
   return retval;
}
int GetUniPageAddr ( TypConn * pConn , char * * scr_addr , char * * status_addr ) { struct telnet_screen * tel_screen ; int retval ; int conn_index = pConn -> iord ; int cur_page = tel_screen_buffs [ conn_index ] . cur_page ; load_screen_buf ( tel_screen_buffs [ conn_index ] . buf_type [ cur_page ] , tel_screen_buffs [ conn_index ] . buf_num [ cur_page ] ) ; * scr_addr = tel_screen -> buffer ; * status_addr = ( char * ) tel_screen -> status_line ; retval = ! ( * scr_addr && * status_addr ) ; return retval ; }
function GetUniPageAddr
  Return the screen buffer address for a connection.
function GetUniPageAddr Return the screen buffer address for a connection .