On this page
curses.def_shell_mode
Prev: curses.def_prog_mode | Up: curses | Next: curses.delay_output
Rel: curses.assume_default_colors, curses.baudrate, curses.beep, curses.can_change_color
Ref: docs.python.org — curses.def_shell_mode
Tags: #public #python3 #stdlib #curses
Import
import curses
from curses import def_shell_mode
Signature & Overview
curses.def_shell_mode()
Save the current terminal mode as the "shell" mode.
Usage
import curses
# Saves the pre-curses ("shell") terminal mode; called automatically by initscr()
assert callable(curses.def_shell_mode)
Gotchas
- Usually automatic: Only needed when manually managing terminal modes.
REPL Inspect
from curses import def_shell_mode
help(def_shell_mode)
Linked from
Related notes
- tuts/python3/stdlib_module/curses/def_prog_mode Linked here; links to this page; shared tags: #curses, #stdlib
- tuts/python3/stdlib_module/curses/delay_output 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