Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在通过将擦除键设置为退格键以外的其他东西来试验 stty。例如,设置常规退格键将是:
stty erase ^?
如果您想让擦除命令实际上是 ENTER,那么当您在终端中按 Enter 时它实际上删除了最后一个字符,您会将哪些字符作为参数传递给 stty erase?
stty erase ^M
通常,您可以使用Ctrl-来计算控制代码。V<key>