跳转至内容
  • 本社区论坛有关的通知与公告

    8 17
    8 主题
    17 帖子
    N
    0.22.5 (2026-05-02) 功能新增: 为Session类型增加 invalidate 方法,调用该方法时,只有本会话是当前会话时,该方法才会调用 PyMudApp.invalidate() 进行刷新。 注意事项: 对于在个人脚本中调用的 session.application.invalidate() 方法,建议改成 session.invalidate()。因为会话的刷新会判断前台,而application的刷新会强制刷新。 功能新增: 增加 lazy 模式,当设置为 lazymode 模式时,即使 PyMudApp.invalidate() 的调用也不会进行显示刷新,系统仅保留在切换会话、以及定时1s材记性刷新。该模式可以通过快捷键F4切换。在lazy模式下,最底下状态栏右侧会显示"LAZY"提示。该模式可以用于在后台挂机运行时,降低CPU占用率。 功能新增: 增加 verbatim 模式,当设置为 verbatim 模式时,所有命令行输入的命令,都不会进行解析,直接发送到服务器。该模式可以通过快捷键F3切换。在 verbatim 模式下,最底下状态栏右侧会显示"VERB"提示。 功能新增: 增加一个非解析提示符"/",当在命令行行首使用该提示符时,所有后续命令不进行任何解析,直接发送到服务器。该提示符可以通过 pymud.cfg 中的 noparser 进行覆盖。此提示符相当于临时使用 verbatim 模式。 功能新增: 增加设置 "cmd_prefix",当配置该参数后,在窗口中的命令回显或者log记录中,输入的命令会带有该前缀。改配置默认为空白,可以通过 pymud.cfg 中的 cmd_prefix 进行覆盖。同步调整了命令的显示样式,与info默认值相同。 功能调整:在#var等命令执行之后,会调用del删除创建的临时列表,以加快内存释放。 功能调整: 在会话被关闭时,会调用del对会话中的相关对象同步进行清除,并使用代码调用执行垃圾回收(但我测试了,并没有啥用处,内存占没什么变化)。 问题修复: 修复了在使用网络配置(包括指定IP和使用socks5代理)连接服务器后,当断开后,再重新执行 #con 不会再次调用网络配置,而是直接使用默认配置的问题。 English update history is translated by TRAE (GLM5) 0.22.5 (2026-05-02) New Feature: Added invalidate method to Session class. When called, it only triggers PyMudApp.invalidate() for refresh if the current session is the active session. Note: For session.application.invalidate() calls in personal scripts, it is recommended to change to session.invalidate(). Because session refresh checks for foreground status, while application refresh forces a refresh. New Feature: Added lazy mode. When lazy mode is enabled, even PyMudApp.invalidate() calls will not trigger display refresh. The system only refreshes when switching sessions or on a 1-second timer. This mode can be toggled with the F4 hotkey. In lazy mode, "LAZY" is displayed on the right side of the bottom status bar. This mode can be used to reduce CPU usage when running in the background. New Feature: Added verbatim mode. When verbatim mode is enabled, all commands entered in the command line are sent directly to the server without any parsing. This mode can be toggled with the F3 hotkey. In verbatim mode, "VERB" is displayed on the right side of the bottom status bar. New Feature: Added a non-parsing prefix "/". When this prefix is used at the beginning of a command line, all subsequent commands are sent directly to the server without any parsing. This prefix can be overridden via noparser in pymud.cfg. This prefix is equivalent to temporarily using verbatim mode. New Feature: Added "cmd_prefix" setting. When configured, command echo in the window or log records will display commands with this prefix. Default is empty, can be overridden via cmd_prefix in pymud.cfg. Also adjusted command display style to match the default info style. Improvement: After executing commands like #var, temporary lists created are deleted using del to speed up memory release. Improvement: When a session is closed, related objects in the session are cleared synchronously using del, and garbage collection is triggered programmatically (however, testing showed no significant effect on memory usage). Bug Fix: Fixed the issue where after disconnecting, when you using #con, the default network configuration is used instead of the one you specified.
  • 本版可以讨论所有与PyMUD使用有关的内容

    18 84
    18 主题
    84 帖子
    B
    实测有效. trae里鼠标支持有问题.vscode正常.
  • 本版可以讨论所有MUD游戏的相关内容

    3 10
    3 主题
    10 帖子
    收到,好东西,谢谢分享
  • 想讨论如何写代码?来这里吧!不限任何编程语言。不论是Python,Java,C#,还是Html, CSS,Javascript,异或是SQL、LINQ,都可以探讨。

    1 2
    1 主题
    2 帖子
    N
    结果很快就被打脸了 https://m.toutiao.com/article/7596878729889071651/?app=news_article&timestamp=1768895064&use_new_style=1&req_id=2026012015442459992E389CA4B86EA3F6&group_id=7596878729889071651&req_id_new=2026012015442459992E389CA4B86EA3F6&chn_id=-3&share_did=MS4wLjACAAAAlmN2N2xl45m9DDeD3nvO8q6O3z7rT3nl__fkiK7DyVN8qDpvraWOQtfNac-DtgDZ&share_uid=MS4wLjABAAAAnPLB9vmFy-HOkJvCwwnpOsLW9ionGSGMcG7SBIjSexDXabGKsm-Jq9qVVWGHoLz8
  • 来这里,随便发点什么吧

    1 2
    1 主题
    2 帖子
    T
    明天就是2026了
  • 与站点建站有关的评论和讨论区

    0 0
    0 主题
    0 帖子
    没有新主题
  • 个人博客发布区

    4 8
    4 主题
    8 帖子
    N
    按字母顺序排列的详解速查: SSH 客户端参数详解 ssh (Secure Shell) 是一个用于安全远程登录和执行命令的工具。以下参数基于 OpenSSH 客户端。 常用参数概览 ssh [-46AaCfGgKkMNnqsTtVvXxYy] [-B bind_interface] [-b bind_address] [-c cipher_spec] [-D [bind_address:]port] [-E log_file] [-e escape_char] [-F configfile] [-I pkcs11] [-i identity_file] [-J destination] [-L address] [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-P tag] [-p port] [-R address] [-S ctl_path] [-W host:port] [-w local_tun[:remote_tun]] destination [command [argument ...]] ssh [-Q query_option] 参数详细说明 参数 说明 -4 强制使用 IPv4 地址。 -6 强制使用 IPv6 地址。 -A 启用认证代理转发。允许远程主机通过本地 SSH 代理进行认证。 -a 禁止认证代理转发。 -C 启用压缩。所有数据在传输前都会被压缩。 -f 后台运行。SSH 会在执行命令前转入后台,通常与 -n 配合使用。 -g 允许远程主机连接本地转发的端口。如果不使用此选项,端口转发仅绑定到本地回环地址。 -i identity_file 指定用于公钥认证的私钥文件路径(例如 ~/.ssh/id_rsa)。 -l login_name 指定登录远程主机的用户名。 -N 不执行远程命令。仅用于端口转发。 -n 将标准输入重定向到 /dev/null。通常用于后台运行 SSH。 -p port 指定远程 SSH 服务监听的端口号(默认为 22)。 -q 静默模式。抑制所有警告和诊断信息。 -t 强制分配伪终端。对于运行全屏程序(如 top 或文本菜单)非常有用。 -v 详细模式。打印调试信息。可使用多个 -v(如 -vvv)以增加详细程度。 -X 启用可信的 X11 转发。 -x 禁用 X11 转发。 -Y 启用可信的 X11 转发(比 -X 更宽松的信任级别)。 -y 启用信任的 X11 转发(与 -Y 类似,具体行为可能依赖于实现)。 -B bind_interface 指定 SSH 客户端发送数据包的网络接口。 -b bind_address 在本地主机上绑定指定的源地址(源 IP)发出连接。 -c cipher_spec 指定用于加密会话的加密算法。 -D [bind_address:]port 指定本地动态应用程序级端口转发。SSH 将充当 SOCKS 代理服务器。 -E log_file 将调试日志追加到指定的文件中。 -e escape_char 设置转义字符(默认为 ~)。 -F configfile 指定一个替代的配置文件(默认为 ~/.ssh/config)。 -I pkcs11 指定 PKCS#11 共享库的路径,用于硬件安全密钥。 -J destination 指定跳转主机(Jump Host)。格式为 [user@]host[:port],可指定多个。 -L address 指定本地端口转发。将本地端口映射到远程主机的某个端口。 -m mac_spec 指定用于数据完整性校验的消息认证码(MAC)算法。 -O ctl_cmd 控制一个正在运行的 SSH 多路复用主进程(如 check, exit, stop)。 -o option 以 选项=值 的形式指定配置选项(如 -o StrictHostKeyChecking=no)。 -P tag 与 -Q 一起使用,用于查询特定的配置参数。 -R address 指定远程端口转发。将远程主机的端口映射到本地主机的某个端口。 -S ctl_path 指定用于连接共享的控制套接字路径。 -W host:port 将本地标准输入输出直接连接到远程主机的指定端口。 -w local_tun[:remote_tun] 请求 TUN/TAP 接口转发,用于创建虚拟专用网络(VPN)。 -Q query_option 查询可用的加密算法、MAC 等信息(如 ssh -Q cipher)。 使用示例 基本连接: ssh user@hostname 指定端口: ssh -p 2222 user@hostname 本地端口转发: ssh -L 8080:localhost:80 user@hostname (将本地 8080 转发到远程的 80) 动态端口转发(SOCKS 代理): ssh -D 1080 user@hostname 后台运行并静默: ssh -f -N -L 8080:localhost:80 user@hostname