Further console test

This commit is contained in:
2025-09-17 20:43:55 +02:00
parent 8aaba22940
commit 836b92ccbf

View File

@@ -15,32 +15,27 @@ def test_console():
Console.write_line("Hello World") Console.write_line("Hello World")
Console.write("\nName: ") Console.write("\nName: ")
Console.write_line(" Hello", Console.read_line()) Console.write_line(" Hello", Console.read_line())
Console.clear()
Console.write_at(5, 5, "at 5, 5") Console.write_at(5, 5, "at 5, 5")
Console.write_at(10, 10, "at 10, 10") Console.write_at(10, 10, "at 10, 10")
if __name__ == "__main__": if __name__ == "__main__":
Console.write_line("Hello World\n") Console.write_line("Hello World\n")
Console.clear()
Console.spinner( Console.spinner(
"Test:", test_spinner, spinner_foreground_color=ForegroundColorEnum.cyan, text_foreground_color="green" "Test:", test_spinner, spinner_foreground_color=ForegroundColorEnum.cyan, text_foreground_color="green"
) )
test_console()
Console.write_line("HOLD BACK") Console.write_line("HOLD BACK")
# opts = [ opts = ["Option 1", "Option 2", "Option 3", "Option 4"]
# 'Option 1', selected = Console.select(
# 'Option 2', ">",
# 'Option 3', "Select item:",
# 'Option 4' opts,
# ] header_foreground_color=ForegroundColorEnum.blue,
# selected = Console.select( option_foreground_color=ForegroundColorEnum.green,
# '>', cursor_foreground_color=ForegroundColorEnum.red,
# 'Select item:', )
# opts, Console.write_line(f"You selected: {selected}")
# header_foreground_color=ForegroundColorEnum.blue,
# option_foreground_color=ForegroundColorEnum.green, Console.write_line()
# cursor_foreground_color=ForegroundColorEnum.red
# )
# Console.write_line(f'You selected: {selected}')
# # test_console()
#
# Console.write_line()