telnetd/UGStub.cpp
/*--- function UnprotectedStart -----------------------------------
 *
 *  Says whether a given position is in an unprotected field,
 *  and if it is, says where that field starts.
 *
 *  Entry:  pConn    points to a connection structure.
 *          col      is a 1-based column number.
 *          row      is a 1-based row number.
 *
 *  Exit:   Returns -1 if the position is not unprotected, 
 *          else the position (0-1919) if the beg of that field.
 */
function UnprotectedStart
Says whether a given position is in an unprotected field,
and if it is, says where that field starts.

pConn    points to a connection structure.
col      is a 1-based column number.
row      is a 1-based row number.

1 if the position is not unprotected,
else the position (0-1919) if the beg of that field.
function UnprotectedStart Says whether a given position is in an unprotected field and if it is says where that field starts . pConn points to a connection structure . col is a 1 - based column number . row is a 1 - based row number . 1 if the position is not unprotected else the position ( 0 - 1919 ) if the beg of that field .
int UnprotectedStart(TypConn *pConn, int col, int row) 
{
   int goto_pos, mypos=80*(row-1)+col-1, mode;
   if(IsUnisysTerm(pConn->iord)) {
      goto_pos = ug_current_unprot_field(pConn->iord,mypos,mode);
   } else {
      goto_pos = ibm_screen_current_unprot_field(pConn->iord,mypos);
   }
   return goto_pos;
}
int UnprotectedStart ( TypConn * pConn , int col , int row ) { int goto_pos , mypos = 80 * ( row - 1 ) + col - 1 , mode ; if ( IsUnisysTerm ( pConn -> iord ) ) { goto_pos = ug_current_unprot_field ( pConn -> iord , mypos , mode ) ; } else { goto_pos = ibm_screen_current_unprot_field ( pConn -> iord , mypos ) ; } return goto_pos ; }
function UnprotectedStart
  Says whether a given position is in an unprotected field,
  and if it is, says where that field starts.
function UnprotectedStart Says whether a given position is in an unprotected field and if it is says where that field starts .