【问题标题】:Ascii graphic interface library (ncurses-like) for emacs scripts?用于 emacs 脚本的 Ascii 图形界面库(类似 ncurses)?
【发布时间】:2013-05-19 07:51:36
【问题描述】:

是否有任何 emacs 脚本的接口库,允许在 emacs 缓冲区中绘制各种 gui?

据我所知,emacs 扩展接口受到消息缓冲区中的键绑定和对话的限制。 同时,您可以在缓冲区中绘制任何东西(艺术家模式),并且可以对任何用户操作(键盘和鼠标点击)做出反应,因此完全可以在 elisp 中实现这样的库。

【问题讨论】:

    标签: emacs elisp ncurses ascii-art


    【解决方案1】:

    Emacs Widget Library。它具有可编辑的字段、按钮、菜单等 - 全部采用文本模式。比如

    (widget-create 'editable-field
                      :size 13
                      :format "Name: %v " ; Text after the field!
                      "My Name")
    

    【讨论】:

      猜你喜欢
      • 2011-10-02
      • 1970-01-01
      • 1970-01-01
      • 2010-12-05
      • 1970-01-01
      • 2022-01-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多