On this page
  1. curses.def_shell_mode
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

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

REPL Inspect

from curses import def_shell_mode
help(def_shell_mode)

Linked from

Related notes