emacs-jupyter/jupyter

ANSI escape characters not rendering correctly

开放

#197 创建于 2019年10月29日

 (4 条评论) (1 个反应) (0 位负责人)Emacs Lisp (106 个派生)auto 404
help wanted

仓库指标

星标
 (1,028 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

See #56 for more context.

As @dzop requested, here's some additional debugging output.

In an org-mode buffer I ran eval-expression and ran:

(with-temp-buffer
  (org-mode)
  (insert ": �[31mhello�[39m")
  (font-lock-ensure)
  (text-properties-at 8))

which returned

(face org-code wrap-prefix "" line-prefix "")

I created an elisp file (with the proper escape character which isn't displayed here):

(push "~/.emacs.d/elpa/26.3/develop/jupyter-20190917.1642" load-path)
(push "~/.emacs.d/elpa/26.3/develop/simple-httpd-20190110.1505" load-path)
(push "~/.emacs.d/elpa/26.3/develop/websocket-20190621.54" load-path)
(push "~/.emacs.d/elpa/26.3/develop/org-plus-contrib-20190909" load-path)
(require 'org)
(require 'jupyter-org-client)
(with-temp-buffer
  (org-mode)
  (insert ": hello")
  (font-lock-ensure)
  (prin1 (text-properties-at 8)))

And ran it with emacs -Q -batch -l /tmp/ansi-test.el. emacs exited with status 0 but otherwise didn't produce any output.

贡献者指南