branch: externals/dtache
commit b7ea44d9e9c5c63f379f0dd8161cfde7a8c97d6e
Author: Rose Osterheld <[email protected]>
Commit: Niklas Eklund <[email protected]>

    Disable dtach from redrawing
    
    Normally, dtach will set the redraw flag to `none`, because dtache
    doesn't run programs in a terminal. If dtache-env is edited to use the
    `script` command, though, dtach will redraw using the ctrl_l
    method. Emacs doesn't handle this character well, so we should disable
    it for a more uniform experience
---
 dtache.el | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/dtache.el b/dtache.el
index c1e79c6a69..980a5e5410 100644
--- a/dtache.el
+++ b/dtache.el
@@ -789,18 +789,19 @@ Optionally CONCAT the command return command into a 
string."
              (mapconcat #'identity
                         `(,dtache-dtach-program
                           ,dtach-arg
-                          ,socket)
+                          ,socket
+                          "-r none")
                         " ")
-           `(,dtach-arg ,socket))
+           `(,dtach-arg ,socket "-r none"))
        (if concat
            (mapconcat #'identity
                       `(,dtache-dtach-program
                         ,dtach-arg
-                        ,socket "-z"
+                        ,socket "-z" "-r none"
                         ,dtache-shell-program "-c"
                         ,(shell-quote-argument (dtache--dtache-command 
session)))
                       " ")
-         `(,dtach-arg ,socket "-z"
+         `(,dtach-arg ,socket "-z" "-r none"
                       ,dtache-shell-program "-c"
                       ,(dtache--dtache-command session)))))))
 

Reply via email to