static void EraseEntireLine() { // int i; putrsUART( (ROM FAR char*) eraseEntireLineEscapeSequence); CursorLeft_N(GET_CURSOR()); SET_CURSOR(0); }
static void EraseEntireLine() { // int i; SYS_CONSOLE_MESSAGE(eraseEntireLineEscapeSequence); CursorLeft_N(GET_CURSOR()); SET_CURSOR(0); }
/*= CursorHome ============================================================== Purpose: Moves the cursor to the left-most position of the command line (just in front of the prompt). Inputs: none Returns: none ============================================================================*/ static void CursorHome(void) { /* if cursor not at start of command line */ if (GET_CURSOR() != gCmdLinePromptLength) { /* move it to start of command line */ CursorLeft_N(GET_CURSOR() - gCmdLinePromptLength); } }
/*= CursorHome ============================================================== Purpose: Moves the cursor to the left-most position of the command line (just in front of the prompt). Inputs: none Returns: none ============================================================================*/ static tZGVoidReturn CursorHome(tZGVoidInput) { /* if cursor not at start of command line */ if (GET_CURSOR() != gCmdLinePromptLength) { /* move it to start of command line */ CursorLeft_N(GET_CURSOR() - gCmdLinePromptLength); } }