![]() |
Qucs-S S-parameter Viewer & RF Synthesis Tools
|
Public Member Functions | |
| None | __init__ (self, "IO[str]" file) |
| WindowsCoordinates | cursor_position (self) |
| WindowsCoordinates | screen_size (self) |
| None | write_text (self, str text) |
| None | write_styled (self, str text, Style style) |
| None | move_cursor_to (self, WindowsCoordinates new_position) |
| None | erase_line (self) |
| None | erase_end_of_line (self) |
| None | erase_start_of_line (self) |
| None | move_cursor_up (self) |
| None | move_cursor_down (self) |
| None | move_cursor_forward (self) |
| None | move_cursor_to_column (self, int column) |
| None | move_cursor_backward (self) |
| None | hide_cursor (self) |
| None | show_cursor (self) |
| None | set_title (self, str title) |
Public Attributes | |
| write | |
| flush | |
Static Public Attributes | |
| int | BRIGHT_BIT = 8 |
| list | ANSI_TO_WINDOWS |
Protected Member Functions | |
| int | _get_cursor_size (self) |
Protected Attributes | |
| _handle | |
| _default_text | |
| _default_fore | |
| _default_back | |
| _default_attrs | |
| _file | |
This class allows interaction with the legacy Windows Console API. It should only be used in the context
of environments where virtual terminal processing is not available. However, if it is used in a Windows environment,
the entire API should work.
Args:
file (IO[str]): The file which the Windows Console API HANDLE is retrieved from, defaults to sys.stdout.
|
protected |
Get the percentage of the character cell that is filled by the cursor
| WindowsCoordinates pip._vendor.rich._win32_console.LegacyWindowsTerm.cursor_position | ( | self | ) |
Returns the current position of the cursor (0-based)
Returns:
WindowsCoordinates: The current cursor position.
| None pip._vendor.rich._win32_console.LegacyWindowsTerm.erase_end_of_line | ( | self | ) |
Erase all content from the cursor position to the end of that line
| None pip._vendor.rich._win32_console.LegacyWindowsTerm.erase_line | ( | self | ) |
Erase all content on the line the cursor is currently located at
| None pip._vendor.rich._win32_console.LegacyWindowsTerm.erase_start_of_line | ( | self | ) |
Erase all content from the cursor position to the start of that line
| None pip._vendor.rich._win32_console.LegacyWindowsTerm.hide_cursor | ( | self | ) |
Hide the cursor
| None pip._vendor.rich._win32_console.LegacyWindowsTerm.move_cursor_backward | ( | self | ) |
Move the cursor backward a single cell. Wrap to the previous line if required.
| None pip._vendor.rich._win32_console.LegacyWindowsTerm.move_cursor_down | ( | self | ) |
Move the cursor down a single cell
| None pip._vendor.rich._win32_console.LegacyWindowsTerm.move_cursor_forward | ( | self | ) |
Move the cursor forward a single cell. Wrap to the next line if required.
| None pip._vendor.rich._win32_console.LegacyWindowsTerm.move_cursor_to | ( | self, | |
| WindowsCoordinates | new_position | ||
| ) |
Set the position of the cursor
Args:
new_position (WindowsCoordinates): The WindowsCoordinates representing the new position of the cursor.
| None pip._vendor.rich._win32_console.LegacyWindowsTerm.move_cursor_to_column | ( | self, | |
| int | column | ||
| ) |
Move cursor to the column specified by the zero-based column index, staying on the same row
Args:
column (int): The zero-based column index to move the cursor to.
| None pip._vendor.rich._win32_console.LegacyWindowsTerm.move_cursor_up | ( | self | ) |
Move the cursor up a single cell
| WindowsCoordinates pip._vendor.rich._win32_console.LegacyWindowsTerm.screen_size | ( | self | ) |
Returns the current size of the console screen buffer, in character columns and rows
Returns:
WindowsCoordinates: The width and height of the screen as WindowsCoordinates.
| None pip._vendor.rich._win32_console.LegacyWindowsTerm.set_title | ( | self, | |
| str | title | ||
| ) |
Set the title of the terminal window
Args:
title (str): The new title of the console window
| None pip._vendor.rich._win32_console.LegacyWindowsTerm.show_cursor | ( | self | ) |
Show the cursor
| None pip._vendor.rich._win32_console.LegacyWindowsTerm.write_styled | ( | self, | |
| str | text, | ||
| Style | style | ||
| ) |
Write styled text to the terminal.
Args:
text (str): The text to write
style (Style): The style of the text
| None pip._vendor.rich._win32_console.LegacyWindowsTerm.write_text | ( | self, | |
| str | text | ||
| ) |
Write text directly to the terminal without any modification of styles
Args:
text (str): The text to write to the console
|
static |