[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/inf-clojure 872c143 101/313: Handle properly ANSI color es
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/inf-clojure 872c143 101/313: Handle properly ANSI color escape sequences in the REPL |
Date: |
Wed, 11 Aug 2021 09:59:55 -0400 (EDT) |
branch: elpa/inf-clojure
commit 872c143b68e751d737b79751d43b303d24cab0ed
Author: Bozhidar Batsov <bozhidar@batsov.com>
Commit: Bozhidar Batsov <bozhidar@batsov.com>
Handle properly ANSI color escape sequences in the REPL
---
CHANGELOG.md | 1 +
inf-clojure.el | 4 +++-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5f3a98e..5314cd3 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,6 +9,7 @@
* New interactive command `inf-clojure-display-version`.
* [#42](https://github.com/clojure-emacs/inf-clojure/issues/42): Add a
defcustom controlling the window in which the REPL buffer is displayed
(`inf-clojure-repl-use-same-window`).
* Font-lock the code in the REPL.
+* Handle properly ANSI color escape sequences in the REPL.
### Changes
diff --git a/inf-clojure.el b/inf-clojure.el
index 43f4307..a193f95 100644
--- a/inf-clojure.el
+++ b/inf-clojure.el
@@ -42,6 +42,7 @@
(require 'clojure-mode)
(require 'eldoc)
(require 'thingatpt)
+(require 'ansi-color)
(defgroup inf-clojure nil
@@ -281,7 +282,8 @@ to continue it."
(setq comint-input-filter #'inf-clojure-input-filter)
(setq-local comint-prompt-read-only inf-clojure-prompt-read-only)
(add-hook 'comint-preoutput-filter-functions #'inf-clojure-preoutput-filter
nil t)
- (add-hook 'completion-at-point-functions #'inf-clojure-completion-at-point
nil t))
+ (add-hook 'completion-at-point-functions #'inf-clojure-completion-at-point
nil t)
+ (ansi-color-for-comint-mode-on))
(defun inf-clojure-get-old-input ()
"Return a string containing the sexp ending at point."
- [nongnu] elpa/inf-clojure 6758a31 069/313: Fix for older Emacs, (continued)
- [nongnu] elpa/inf-clojure 6758a31 069/313: Fix for older Emacs, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 0a7c61b 079/313: Fix a docstring, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 0259801 080/313: Kill a trailing space, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 63c2f9e 082/313: Add possibility to customize more vars, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure d9e4400 087/313: Tweak the README a bit, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 117d8cb 090/313: Bump the clojure-mode and Emacs deps, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure e12db12 091/313: Fix prompt being included in input history, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure e6a4ef3 093/313: Add some handy GitHub templates to improve the contribution process, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 6a354dc 097/313: Add defcustom `inf-clojure-prompt-on-set-ns` (#46), ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 6e55048 099/313: [Fix #42] Add a defcustom controlling the window in which the REPL buffer is displayed, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 872c143 101/313: Handle properly ANSI color escape sequences in the REPL,
ELPA Syncer <=
- [nongnu] elpa/inf-clojure 2e1dd6c 108/313: Update the "Usage" section of the README, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 916ec97 106/313: Infer the customization group from defcustom names, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure a36d2a0 111/313: Remove unwanted ansi chars from the REPL output, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 3929054 113/313: Modify CHANGELOG and README for REPL types, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure d265232 115/313: Fix a problem with pcase on inf-clojure-repl-type, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure ac74e20 117/313: Kill inf-clojure-var-at-point, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure cfad839 122/313: Officially support lumo -d (dumb terminal) only, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure dda0a43 125/313: Fix newline append on eval functions, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure 896edd1 131/313: Handle inf-clojure-arglists corner cases, ELPA Syncer, 2021/08/11
- [nongnu] elpa/inf-clojure ebd1494 135/313: Support lumo's apropos, ELPA Syncer, 2021/08/11