]> git.eshelyaron.com Git - sweep.git/commitdiff
Set 'comint-process-echoes' for top-levels that use a tty
authorEshel Yaron <me@eshelyaron.com>
Sat, 16 Sep 2023 21:00:06 +0000 (23:00 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sat, 16 Sep 2023 21:00:06 +0000 (23:00 +0200)
sweeprolog.el

index 7b05c2a28332e6f47f6613f6905767fd44de115a..a507d6753cf9d73ac9e23aaa5fc5ea77019c9b97 100644 (file)
@@ -3194,6 +3194,7 @@ top-level."
               (if sweeprolog-top-level-use-pty
                   (progn
                     (make-comint-in-buffer "sweeprolog-top-level" buf nil)
+                    (setq-local comint-process-echoes t)
                     (process-send-eof (get-buffer-process buf))
                     (sweeprolog--query-once "sweep" "sweep_top_level_start_pty"
                                             (process-tty-name (get-buffer-process buf))))
@@ -3203,6 +3204,7 @@ top-level."
                                        buf
                                        (cons "localhost"
                                              sweeprolog-prolog-server-port))
+                (setq-local comint-process-echoes nil)
                 (sweeprolog--query-once "sweep" "sweep_accept_top_level_client" nil)))
         (let ((proc (get-buffer-process buf)))
           (set-process-filter proc