emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/emacsql 847196cafa 226/427: Set tty to raw in psql.


From: ELPA Syncer
Subject: [nongnu] elpa/emacsql 847196cafa 226/427: Set tty to raw in psql.
Date: Tue, 13 Dec 2022 02:59:46 -0500 (EST)

branch: elpa/emacsql
commit 847196cafa59c920f9a4b5c641a59026d094ad28
Author: Christopher Wellons <wellons@nullprogram.com>
Commit: Christopher Wellons <wellons@nullprogram.com>

    Set tty to raw in psql.
---
 emacsql-psql.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/emacsql-psql.el b/emacsql-psql.el
index d873ff128b..624a6e8250 100644
--- a/emacsql-psql.el
+++ b/emacsql-psql.el
@@ -51,7 +51,9 @@
     (setf args (nreverse args))
     (let* ((buffer (generate-new-buffer "*emacsql-psql*"))
            (psql emacsql-psql-executable)
-           (process (apply #'start-process "emacsql-psql" buffer psql args))
+           (command (mapconcat #'shell-quote-argument (cons psql args) " "))
+           (process (start-process-shell-command
+                     "emacsql-psql" buffer (concat "stty raw && " command)))
            (connection (make-instance 'emacsql-psql-connection
                                       :process process
                                       :dbname dbname)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]