t_dumb.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:jack 作者: jack-cli-cd-ripper 项目源码 文件源码
def enable():
    global old_tc
    # set terminal attributes
    new = termios.tcgetattr(sys.stdin.fileno())
    if old_tc == None:
        old_tc = new[:]
    new[3] = new[3] & ~termios.ECHO
    new[3] = new[3] & ~termios.ICANON
    termios.tcsetattr(sys.stdin.fileno(), termios.TCSADRAIN, new)
    del new
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号