telnetd/UGStub.cpp
/*--- function ug_home_cursor -----------------------------------
 *
 *  Position the cursor at the first field on the screen,
 *  or upper left if no unprotected fields are on the screen.
 *  Set terminal to LOCAL mode.
 *
 *  Entry:  conn_index  is an index into the Connection array
 *
 *  Exit:   Returns a screen position (0-1919)
 */
function ug_home_cursor
Position the cursor at the first field on the screen,
or upper left if no unprotected fields are on the screen.
Set terminal to LOCAL mode.

conn_index  is an index into the Connection array

Returns a screen position (0-1919)
function ug_home_cursor Position the cursor at the first field on the screen or upper left if no unprotected fields are on the screen . Set terminal to LOCAL mode . conn_index is an index into the Connection array Returns a screen position ( 0 - 1919 )
short ug_home_cursor(int conn_index)
{
   int retval = ug_first_field(conn_index);
   if(IsUnisysTerm(conn_index))ug_set_term_state(conn_index,FALSE);
   return retval;
}
short ug_home_cursor ( int conn_index ) { int retval = ug_first_field ( conn_index ) ; if ( IsUnisysTerm ( conn_index ) ) ug_set_term_state ( conn_index , FALSE ) ; return retval ; }
function ug_home_cursor
  Position the cursor at the first field on the screen,
  or upper left if no unprotected fields are on the screen.
function ug_home_cursor Position the cursor at the first field on the screen or upper left if no unprotected fields are on the screen .
// Homing the cursor puts terminal in LOCAL state.