TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Is backspace supposed to be 0x08 or 0x7f?

5 点作者 freedrull将近 14 年前

3 条评论

freedrull将近 14 年前
One of the posts mentions:<p>"Most of the Linux distributions make changes as needed to make the terminal emulators send ^? for "backspace", while almost everyone else uses ^H. They should also modify the terminfo entries in ncurses, but not all of the Linux distributions do _that_."<p>Almost every ncurses program I've seen seems to hack around this by checking for the ncurses definition of KEY_BACKSPACE as well as 0x7f.
teilo将近 14 年前
This is elementary TERMINFO stuff. Nothing significant about this at all.
gte910h将近 14 年前
Why is this important? I don't see the significance.