index | ~dongdigua

GNU screen 的 nethack 模式

$Id: screen_nethack.org,v 25.6 2025/06/23 21:26:05 dongdigua Exp $

最近搞 Gentoo的时候发现 app-misc/screen 有 nethack 这个 USE, euse -i nethack "Express error messages in nethack style",
作为半个 nethack 玩家(虽然从没成功通关过),当然要一探究竟。

manual 里说

The default setting is then determined by the presence of the environment variable $NETHACKOPTIONS and the file ~/.nethackrc - if either one is present, the default is on.

所以一共有什么 message 呢
clone 下来 https://git.savannah.gnu.org/git/screen.git ,rg 一下,发现

1-Version 5.0.0 (28/08/24):
...skipped...
15-  * Removed commands:
16-     - time
17-     - debug
18-     - password
19-     - maxwin
20:     - nethack

呀,为啥给移除了,多有意思的一个特性啊!
所以去 4.9 看下吧
src/nethack.c 定义了所有 nethack 的翻译,很有意思

commit 9109409 移除了 nethack 相关东西,不知道为什么要这么做

所以我发了个邮件
https://lists.gnu.org/archive/html/screen-users/2025-06/msg00000.html

dongdigua CC BY-NC-SA 禁止转载到私域(公众号,非自己托管的博客等)

Email me to add comment

Proudly made with Emacs Org mode

Date: 2025-06-16 Mon 00:00 Size: 2.7K (≈ 0.3947 mg CO2e)