为什么 Debian 上的 dialog 不支持 emacs shell?

Mir*_*lov 3 shell terminal emacs

Dialog是一个从 shell 脚本提供对话框的实用程序,您可能在升级过程中已经在 aptitude 中看到过它们。当我使用 Emacs shell ( M-x shell) 并键入时sudo aptitude safe-upgrade,我多次收到以下错误:

debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: falling back to frontend: Readline
Run Code Online (Sandbox Code Playgroud)

为什么 Dialog 不适用于 Emacs shell?我应该使用一些替代品吗?

sr_*_*sr_ 5

Dialog 使用ncurses,它在 Emacs' 中不起作用shell-mode,并且根据SO:“在 emacs shell 下工作的 ncurses 有什么好的替代方案?” ,有没有合适的替代ncurses,将工作中emacs-shell它暗示,以全终端能力等Emacs的模式(不幸的是我什么都不知道),也许多期限

  • 无论是链接到 `ncurses`、`slang`,还是仅仅发送原始终端指令(恐怖),对于在终端上运行的全屏应用程序,**终端** 必须理解终端指令(即它已启动)到终端,而不是库),并且操作系统必须有一个合适的 termcap/terminfo 条目。根据定义,哑终端是不理解终端指令的终端。没有它们,您只能输出字符(包括 ASCII 控制字符)。没有光标重新定位、字符属性、清除屏幕等。它基本上是一个 ASR-33。 (3认同)