Shift+Backspace 正在写入复选标记符号?

发布于 2024-12-22 17:42:15 字数 593 浏览 7 评论 0原文

我什至无法将 IDLE 解释器会话中的一个奇怪的复选标记字符复制并粘贴到此文本字段中...我正在运行 Linux Mint Julia,python 版本 2.6,但它也发生在 3.1 中。按住 shift 键并按 backspace 后会发生这种情况。

我尝试这样做:

>>> ord('[strange-checkmark]')
8

然后运行相反的操作:

>>> chr(8)
\x08'

我真的很想让这个奇怪的字符停止打印,而只是删除前一个字符。

我尝试在 geditterminalchrome 中重新创建这个字符。运气不好。搜索序数值的 ASCII 图表时会调用该字符退格

这是我的会话中的图像:

打印复选标记字符,然​​后将其传递到函数 ord() 的演示

I can't even copy and paste a strange checkmark looking character from my IDLE interpreter session into this text field...I am running Linux Mint Julia, python version 2.6, but it also happens in 3.1. This occurs after holding the shift key and pressing backspace.

I tried doing this:

>>> ord('[strange-checkmark]')
8

Then running the reverse:

>>> chr(8)
\x08'

I'd really like to get this strange character to stop printing, and just delete the previous character instead.

I tried to recreate this character in gedit, terminal, and chrome. No luck. Searching for a ASCII chart of ordinal values calls this character backspace.

Here's an image from my session:

A demonstration of printing the checkmark character, then passing it into the function ord()

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

傲影 2024-12-29 17:42:15

这是 Tkinter 中已确认的错误,并不一定是 IDLE。请参阅问题 1482122

简而言之:如果您想修复它,欢迎尝试 xmodmap -e "keycode 22 = BackSpace",但您将面临无法再发出 Ctrl 的风险+Alt+Backspace 终止您的 X 服务器。

我可以继续寻找有关该错误的更多信息;我不确定 Tkinter 上的工作人员是否已经解决了这个问题。

编辑:已确认问题的第二个来源 - 请参阅 Tkinter Wiki 上的 Linux%Shift-Backspace

It's a confirmed bug within Tkinter, and not necessarily IDLE. See Issue 1482122.

In brief: If you want to fix it, you're welcome to try xmodmap -e "keycode 22 = BackSpace", but you run the risk of no longer being able to issue a Ctrl+Alt+Backspace to kill your X Server.

I can keep looking for more information into the bug; I'm not sure if the folks working on Tkinter have resolved this yet.

EDIT: Confirmed second source on issue - See Linux%Shift-Backspace on the Tkinter Wiki

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文