Variable: python-shell-setup-code

python-shell-setup-code is a variable defined in python.el.gz.

Value

"def _PYTHON_EL_setup():\n    try:\n        import termios\n    except ImportError:\n        pass\n    else:\n        attr = termios.tcgetattr(0)\n        attr[3] &= ~termios.ECHO\n        termios.tcsetattr(0, termios.TCSADRAIN, attr)\n\n_PYTHON_EL_setup()\ndel _PYTHON_EL_setup"

Documentation

Code used to setup the inferior Python processes.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/python.el.gz
(defconst python-shell-setup-code
  "\
def _PYTHON_EL_setup():
    try:
        import termios
    except ImportError:
        pass
    else:
        attr = termios.tcgetattr(0)
        attr[3] &= ~termios.ECHO
        termios.tcsetattr(0, termios.TCSADRAIN, attr)

_PYTHON_EL_setup()
del _PYTHON_EL_setup"
  "Code used to setup the inferior Python processes.")