Esempio n. 1
0
void
ReadLine_DoCursorMoveInput ( ReadLiner * rl, int32 newCursorPosition )
{
    ReadLine_ClearCurrentTerminalLine ( rl, rl->i32_CursorPosition ) ;
    ReadLine_SetCursorPosition ( rl, newCursorPosition ) ;
    ReadLine_ShowPad ( rl ) ;
    ReadLine_ShowCursor ( rl ) ;
}
Esempio n. 2
0
void
ReadTable_BackSpace ( ReadLiner * rl ) // '\b' 127
{
    ReadLine_SetCursorPosition ( rl, rl->CursorPosition - 1 ) ;
    ReadLine_DeleteChar ( rl ) ;
}
Esempio n. 3
0
void
_ReadLine_CursorLeft ( ReadLiner * rl )
{
    ReadLine_SetCursorPosition ( rl, rl->i32_CursorPosition - 1 ) ;
}
Esempio n. 4
0
void
_ReadLine_CursorRight ( ReadLiner * rl )
{
    ReadLine_SetCursorPosition ( rl, rl->i32_CursorPosition + 1 ) ;
}
Esempio n. 5
0
void
_ReadLine_CursorToStart ( ReadLiner * rl )
{
    ReadLine_SetCursorPosition ( rl, 0 ) ;
}
Esempio n. 6
0
void
_ReadLine_CursorToEnd ( ReadLiner * rl )
{
    ReadLine_SetCursorPosition ( rl, rl->EndPosition ) ;
    rl->InputLine [ rl->i32_CursorPosition ] = 0 ;
}