U e5doã@sLdZddlTddgZdZdZdZdZdZd Zd Z e fd d„Z e fd d„Z d S)zTerminal utilities.é)Ú*ÚsetrawÚ setcbreakéééééécCs¨t|ƒ}|tttBtBtBtB@|t<|tt@|t<|t t t B@|t <|t t B|t <|t ttBtBtB@|t <d|tt<d|tt<t|||ƒdS)zPut terminal into a raw mode.rrN)Ú tcgetattrÚIFLAGZBRKINTZICRNLZINPCKZISTRIPZIXONÚOFLAGZOPOSTÚCFLAGZCSIZEZPARENBZCS8ÚLFLAGÚECHOÚICANONZIEXTENZISIGÚCCÚVMINÚVTIMEÚ tcsetattr©ÚfdZwhenÚmode©rú/usr/lib64/python3.8/tty.pyrs"  cCsFt|ƒ}|tttB@|t<d|tt<d|tt<t|||ƒdS)z Put terminal into a cbreak mode.rrN)r rrrrrrrrrrrrs   N) Ú__doc__ZtermiosÚ__all__r r rrZISPEEDZOSPEEDrZ TCSAFLUSHrrrrrrÚs