On this page
curses.endwin
Prev: curses.echo | Up: curses | Next: curses.erasechar
Rel: curses.assume_default_colors, curses.baudrate, curses.beep, curses.can_change_color
Ref: docs.python.org — curses.endwin
Tags: #public #python3 #stdlib #curses
Import
import curses
from curses import endwin
Signature & Overview
curses.endwin()
De-initialize the library, and return terminal to normal status.
Usage
import curses
# Restores the terminal to normal operating mode
assert callable(curses.endwin)
Gotchas
- Always use
curses.wrapper(main)soendwin()runs automatically even on uncaught exceptions—otherwise the user's terminal is left broken.
REPL Inspect
from curses import endwin
help(endwin)
Linked from
Related notes
- tuts/python3/stdlib_module/curses/echo Linked here; links to this page; shared tags: #curses, #stdlib
- tuts/python3/stdlib_module/curses/erasechar Linked here; links to this page; shared tags: #curses, #stdlib
- tuts/python3/stdlib_module/curses Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/curses/assume_default_colors Linked here; shared tags: #curses, #stdlib
- tuts/python3/stdlib_module/curses/baudrate Linked here; shared tags: #curses, #stdlib
- tuts/python3/stdlib_module/curses/beep Linked here; shared tags: #curses, #stdlib
- tuts/python3/stdlib_module/curses/can_change_color Linked here; shared tags: #curses, #stdlib
- tuts/python3/stdlib_module/curses/cbreak shared tags: #curses, #stdlib
- tuts/python3/stdlib_module/curses/color_content shared tags: #curses, #stdlib
- tuts/python3/stdlib_module/curses/color_pair shared tags: #curses, #stdlib