BruhscreenΒΆ

Copyright 2023 Ethan Christensen Copied, Guided, and Adapted from Asciimatics <https://github.com/peterbrittain/asciimatics/blob/master/asciimatics/screen.py>

Licensed under the Apache License, Version 2.0 (the β€œLicense”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an β€œAS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

class bruhanimate.bruhutil.bruhscreen.Screen(window, height=None)[source]ΒΆ

Bases: object

KEY_ESCAPE = -1ΒΆ
KEY_F1 = -2ΒΆ
KEY_F2 = -3ΒΆ
KEY_F3 = -4ΒΆ
KEY_F4 = -5ΒΆ
KEY_F5 = -6ΒΆ
KEY_F6 = -7ΒΆ
KEY_F7 = -8ΒΆ
KEY_F8 = -9ΒΆ
KEY_F9 = -10ΒΆ
KEY_F10 = -11ΒΆ
KEY_F11 = -12ΒΆ
KEY_F12 = -13ΒΆ
KEY_F13 = -14ΒΆ
KEY_F14 = -15ΒΆ
KEY_F15 = -16ΒΆ
KEY_F16 = -17ΒΆ
KEY_F17 = -18ΒΆ
KEY_F18 = -19ΒΆ
KEY_F19 = -20ΒΆ
KEY_F20 = -21ΒΆ
KEY_F21 = -22ΒΆ
KEY_F22 = -23ΒΆ
KEY_F23 = -24ΒΆ
KEY_F24 = -25ΒΆ
KEY_PRINT_SCREEN = -100ΒΆ
KEY_INSERT = -101ΒΆ
KEY_DELETE = -102ΒΆ
KEY_HOME = -200ΒΆ
KEY_END = -201ΒΆ
KEY_LEFT = -203ΒΆ
KEY_UP = -204ΒΆ
KEY_RIGHT = -205ΒΆ
KEY_DOWN = -206ΒΆ
KEY_PAGE_UP = -207ΒΆ
KEY_PAGE_DOWN = -208ΒΆ
KEY_BACK = -300ΒΆ
KEY_TAB = -301ΒΆ
KEY_BACK_TAB = -302ΒΆ
KEY_NUMPAD0 = -400ΒΆ
KEY_NUMPAD1 = -401ΒΆ
KEY_NUMPAD2 = -402ΒΆ
KEY_NUMPAD3 = -403ΒΆ
KEY_NUMPAD4 = -404ΒΆ
KEY_NUMPAD5 = -405ΒΆ
KEY_NUMPAD6 = -406ΒΆ
KEY_NUMPAD7 = -407ΒΆ
KEY_NUMPAD8 = -408ΒΆ
KEY_NUMPAD9 = -409ΒΆ
KEY_MULTIPLY = -410ΒΆ
KEY_ADD = -411ΒΆ
KEY_SUBTRACT = -412ΒΆ
KEY_DECIMAL = -413ΒΆ
KEY_DIVIDE = -414ΒΆ
KEY_CAPS_LOCK = -500ΒΆ
KEY_NUM_LOCK = -501ΒΆ
KEY_SCROLL_LOCK = -502ΒΆ
KEY_SHIFT = -600ΒΆ
KEY_CONTROL = -601ΒΆ
KEY_MENU = -602ΒΆ
get_event()[source]ΒΆ
__init__(window, height=None)[source]ΒΆ
has_resized()[source]ΒΆ
close(restore=True)[source]ΒΆ
clear()[source]ΒΆ
classmethod open()[source]ΒΆ
print_at(text, x, y, width)[source]ΒΆ
begin_frame()[source]ΒΆ

Enter frame-batching mode; print_at() calls accumulate until flush_frame().

flush_frame()[source]ΒΆ

Flush accumulated frame output as a single sys.stdout.write() + flush(). Goes from O(cells_changed) write() calls to 1 write + 1 flush per frame.

classmethod show(function, args=None)[source]ΒΆ
class bruhanimate.bruhutil.bruhscreen.SignalState[source]ΒΆ

Bases: object

__init__()[source]ΒΆ
set(signalnum, handler)[source]ΒΆ
restore()[source]ΒΆ