[-]icanon 加上-代表关闭erase、kill、werase 和rprnt 等特殊字符 去掉-代表开启
例:先敲stty -icanon,再敲stty -echo,终端还是会有回显
先敲stty icanon(开启功能),再敲stty -echo,终端就不会有回显了,继续敲stty echo恢复回显
stty -icanon和stty icanon也会保存之前echo是否是"-"的状态
[-]icanon 加上-代表关闭erase、kill、werase 和rprnt 等特殊字符 去掉-代表开启
例:先敲stty -icanon,再敲stty -echo,终端还是会有回显
先敲stty icanon(开启功能),再敲stty -echo,终端就不会有回显了,继续敲stty echo恢复回显
stty -icanon和stty icanon也会保存之前echo是否是"-"的状态