Lines Matching +full:line +full:- +full:orders

3  * Module Name: acgetline - local line editing
11 * Some or all of this work - Copyright (c) 1999 - 2025, Intel Corp.
28 * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
104 * re-exports any such software from a foreign destination, Licensee shall
105 * ensure that the distribution and export/re-export of the software is in
106 * compliance with all laws, regulations, orders, or other restrictions of the
108 * any of its subsidiaries will export/re-export any technical data, process,
130 * 3. Neither the names of the above-listed copyright holders nor the names
159 * This is an os-independent implementation of line-editing services needed
162 * is in the correct line-editing mode such as raw and noecho. The OSL
192 /* Erase a single character on the input command line */
210 * PARAMETERS: EndOfLine - Current end-of-line index
211 * CursorPosition - Current cursor position within line
215 * DESCRIPTION: Clear the entire command line the hard way, but probably the
230 /* Clear line from current position to end of line */ in AcpiAcClearLine()
232 for (i = 0; i < (EndOfLine - CursorPosition); i++) in AcpiAcClearLine()
238 /* Clear the entire line */ in AcpiAcClearLine()
240 for (; EndOfLine > 0; EndOfLine--) in AcpiAcClearLine()
251 * PARAMETERS: Buffer - Where to return the command line
252 * BufferLength - Maximum length of Buffer
253 * BytesRead - Where the actual byte count is returned
257 * DESCRIPTION: Get the next input line from the terminal. NOTE: terminal
258 * is expected to be in a mode that supports line-editing (raw,
271 UINT32 MaxCommandIndex = AcpiGbl_NextCmdNum - 1; in AcpiOsGetLine()
280 /* Always clear the line buffer before we read a new line */ in AcpiOsGetLine()
293 if (EndOfLine >= (BufferLength - 1)) in AcpiOsGetLine()
303 /* Echo the character (at EOL) and copy it to the line buffer */ in AcpiOsGetLine()
319 (EndOfLine - CursorPosition + 1)); in AcpiOsGetLine()
324 /* Display the new part of line starting at the new character */ in AcpiOsGetLine()
330 ACPI_BACKUP_CURSOR (i, EndOfLine - CursorPosition); in AcpiOsGetLine()
337 if (!EndOfLine) /* Any characters on the command line? */ in AcpiOsGetLine()
345 EndOfLine--; in AcpiOsGetLine()
346 CursorPosition--; in AcpiOsGetLine()
350 if (!CursorPosition) /* Do not backup beyond start of line */ in AcpiOsGetLine()
355 /* Remove the character from the line */ in AcpiOsGetLine()
357 memmove (&Buffer[CursorPosition - 1], &Buffer[CursorPosition], in AcpiOsGetLine()
358 (EndOfLine - CursorPosition + 1)); in AcpiOsGetLine()
360 /* Display the new part of line starting at the new character */ in AcpiOsGetLine()
363 fprintf (stdout, "%s ", &Buffer[CursorPosition - 1]); in AcpiOsGetLine()
367 ACPI_BACKUP_CURSOR (i, EndOfLine - CursorPosition + 1); in AcpiOsGetLine()
368 EndOfLine--; in AcpiOsGetLine()
372 CursorPosition--; in AcpiOsGetLine()
376 case _ASCII_NEWLINE: /* Normal exit case at end of command line */ in AcpiOsGetLine()
379 /* Return the number of bytes in the command line string */ in AcpiOsGetLine()
422 CursorPosition--; in AcpiOsGetLine()
433 /* Backup to start of line and print the entire line */ in AcpiOsGetLine()
441 ACPI_BACKUP_CURSOR (i, EndOfLine - CursorPosition); in AcpiOsGetLine()
477 CurrentCommandIndex--; in AcpiOsGetLine()
494 /* If we are the end of the history list, output a clear new line */ in AcpiOsGetLine()