{
    "mode": "pydoc",
    "parameter": "tty",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/pydoc/tty/json",
    "generated": "2026-06-02T15:50:07Z",
    "sections": {
        "NAME": {
            "content": "tty - Terminal utilities.\n",
            "subsections": []
        },
        "MODULE REFERENCE": {
            "content": "https://docs.python.org/3.10/library/tty.html\n\nThe following documentation is automatically generated from the Python\nsource files.  It may be incomplete, incorrect or include features that\nare considered implementation detail and may vary between Python\nimplementations.  When in doubt, consult the module reference at the\nlocation listed above.\n",
            "subsections": []
        },
        "FUNCTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "setcbreak",
                    "content": "Put terminal into a cbreak mode.\n"
                },
                {
                    "name": "setraw",
                    "content": "Put terminal into a raw mode.\n"
                }
            ]
        },
        "DATA": {
            "content": "all = ['setraw', 'setcbreak']\n",
            "subsections": []
        },
        "FILE": {
            "content": "/usr/lib/python3.10/tty.py\n\n",
            "subsections": []
        }
    },
    "summary": "tty - Terminal utilities.",
    "flags": [],
    "examples": [],
    "see_also": [],
    "tldr": {
        "source": "official",
        "description": "Returns terminal name.",
        "examples": [
            {
                "description": "Print the file name of this terminal",
                "command": "tty"
            }
        ]
    }
}