void cursor_right( unsigned *x, unsigned y ) { if ( ( *x + firstcol + 1 ) == strlen( workline.middle ) ) { if ( curline->next != sentinel ) { cursor_down( y ); home( x ); } } else { if ( ( *x + firstcol + 1 ) < MAXCOL ) { /* 5 to TUDCUM in 255 RMAR */ if ( *x >= ( wind.length - 2 ) ) shiftscrn( 20, x ); if ( ( workline.attr[*x + firstcol + 1] & ENLARGEATTR ) == ENLARGEATTR ) { ( *x )++; } ( *x )++; } else { linetoolong( ); } } }
void cursor_right( unsigned int *p_xCursorPos, unsigned int p_yCursorPos ) { if ( ( *p_xCursorPos + firstcol + 1 ) == strlen( workline.middle ) ) { if ( curline->next != sentinel ) { cursor_down( p_yCursorPos ); home( p_xCursorPos ); } } else { if ( ( *p_xCursorPos + firstcol + 1 ) < MAXCOL ) { /* 5 to TUDCUM in 255 RMAR */ if ( *p_xCursorPos >= ( wind.length - 2 ) ) { shiftscrn( 20, p_xCursorPos ); } if ( ( workline.attr[*p_xCursorPos + firstcol + 1] & ENLARGEATTR ) == ENLARGEATTR ) { ( *p_xCursorPos )++; } ( *p_xCursorPos )++; } else { linetoolong( ); } } }