Here I saw the answer how to start the cygwin shell. However, the output of the cygwin shell is confused.
(defun cygwin-shell ()
"Run cygwin bash in shell mode."
(interactive)
(let ((explicit-shell-file-name "C:/cygwin/bin/bash"))
(call-interactively 'shell)))
(setq explicit-bash-args '("--login" "-i"))
and here is a sample output shell
]0;~
seth@seth ~
$ cd ~
]0;~
seth@seth ~
$ dir
]0;~
seth@seth ~
as you can see, the output is twisted. How to fix it?
edit: I just noticed that ^ [] 0 always appears at the end of each command \ otherwise the output text works fine. Anyway, to get rid of this ending?
source
share