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

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

[nongnu] elpa/emacsql fcba876d0e 251/427: Solve the tty (pty) issue in M


From: ELPA Syncer
Subject: [nongnu] elpa/emacsql fcba876d0e 251/427: Solve the tty (pty) issue in MySQL.
Date: Tue, 13 Dec 2022 02:59:49 -0500 (EST)

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

    Solve the tty (pty) issue in MySQL.
---
 emacsql-mysql.el | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/emacsql-mysql.el b/emacsql-mysql.el
index 0811a32320..89e51797b7 100644
--- a/emacsql-mysql.el
+++ b/emacsql-mysql.el
@@ -22,10 +22,14 @@
                       (nil "LONGTEXT")))))
 
 (defun emacsql-mysql (dbname)
-  (let* ((buffer (generate-new-buffer " *emacsql-mysql*"))
+  (let* ((process-connection-type t)
+         (buffer (generate-new-buffer " *emacsql-mysql*"))
          (mysql emacsql-mysql-executable)
-         (process (start-process "emacsql-mysql" buffer mysql
-                                 "-rfBNL" "--skip-pager" dbname))
+         (command (mapconcat #'shell-quote-argument
+                             (list mysql "-rfBNL" "--skip-pager" dbname)
+                             " "))
+         (process (start-process-shell-command
+                   "emacsql-mysql" buffer (concat "stty raw &&" command)))
          (connection (make-instance 'emacsql-mysql-connection
                                     :process process
                                     :dbname dbname)))



reply via email to

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