Source "docs/source/_tapes/_config.tape"

Hide
Type "python"
Enter
Type "import yuio.io"
Enter
Type "yuio.io.setup()"
Enter
Ctrl+L
Show

Sleep 500ms

Type "yuio.io.heading("
Sleep 250ms
Type "'Yuio: a user-friendly IO library!')"
Sleep 150ms
Enter
Sleep 1s

Type "yuio.io.info('This is an "
Sleep 100ms
Type "<c bold>"
Sleep 100ms
Type "info message!</c>')"
Sleep 100ms
Enter
Sleep 1s

Type "yuio.io.warning('Warning: variable `X` is not defined!')"
Sleep 100ms
Enter
Sleep 1s

Type "try:"
Enter
Sleep 350ms
Type "raise RuntimeError('fail')"
Enter
Sleep 300ms
Backspace
Type "except "
Sleep 250ms
Type "RuntimeError:"
Enter
Type "yuio.io.error_with_tb("
Sleep 250ms
Type "'Something went wrong!')"
Sleep 100ms
Enter
Sleep 250ms
Enter
Sleep 4s

Hide
Ctrl+D
Ctrl+L
Show

Sleep 1s
Type "python examples/tasks_multithreaded.py"
Enter
Sleep 12s
Sleep 4s

Hide
Ctrl+L
Show

Sleep 1s
Type "python examples/prompt.py"
Enter
Sleep 1s
Up@500ms 2
Sleep 1s
Enter
Sleep 1s
Enter
Sleep 4s
