From db9a62cdfc197f5905f142ffebd1d5bcb978944c Mon Sep 17 00:00:00 2001 From: jao Date: Sat, 25 Apr 2026 12:54:32 +0100 Subject: filtering out ansi colour codes coming from a connection might address #74 --- elisp/geiser-connection.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'elisp/geiser-connection.el') diff --git a/elisp/geiser-connection.el b/elisp/geiser-connection.el index 24c9a2c..2d32d50 100644 --- a/elisp/geiser-connection.el +++ b/elisp/geiser-connection.el @@ -1,6 +1,6 @@ ;;; geiser-connection.el --- Talking to a scheme process -*- lexical-binding: t; -*- -;; Copyright (C) 2009-2011, 2013, 2021-2022, 2025 Jose Antonio Ortega Ruiz +;; Copyright (C) 2009-2011, 2013, 2021-2022, 2025-2026 Jose Antonio Ortega Ruiz ;; This program is free software; you can redistribute it and/or ;; modify it under the terms of the Modified BSD License. You should @@ -23,6 +23,7 @@ (require 'geiser-impl) (require 'tq) +(require 'ansi-color) (eval-when-compile (require 'subr-x)) @@ -81,7 +82,7 @@ (progn (geiser-log--error "Unexpected queue input:\n %s" in) (delete-region (point-min) (point-max))) (goto-char (point-max)) - (insert in) + (insert (ansi-color-filter-apply in)) (goto-char (point-min)) (when (re-search-forward (tq-queue-head-regexp tq) nil t) (unwind-protect -- cgit v1.2.3