编辑器
import termios import sys attrs = termios.tcgetattr(sys.stdin) print(f'Terminal attributes retrieved') print(f'Number of attributes: {len(attrs)}')
Terminal attributes retrieved
Number of attributes: 7