我喜欢使用Emacs的shell模式,但它有一些不足之处.其中之一是,当shell命令试图调用编辑器时,打开新缓冲区并不够智能.例如,将环境变量VISUAL设置为vimI ,我将从中获取以下内容svn propedit:
$ svn propedit svn:externals . "svn-prop.tmp" 2L, 149C[1;1H ~ [4;1H~ [5;1H~ [6;1H~ [7;1H~ ...
(从表示中可能很难说,但这是一个可怕的,丑陋的混乱.)
随着VISUAL设置为"emacs -nw",我得到
$ svn propedit svn:externals . emacs: Terminal type "dumb" is not powerful enough to run Emacs. It lacks the ability to position the cursor. If that is not the actual type of terminal you have, use the Bourne shell command `TERM=... export TERM' (C-shell: `setenv TERM ...') to specify the …
当我在某些地方进行git登录时,输出会搞砸,并且不会让我回到命令行.在我的一些回购中,它工作正常.有任何想法吗?输出粘贴在下面:
[server]$ git log
commit c84acb29115822d94fe0112bacfb835911ffaa11
Author: My Name <myname@server.dreamhost.com>
Date: Sun Feb 14 03:13:05 2010 -0800
Correct spelling mistake
commit 4f613bdddc2b4965b75914c08017a916fa3d07be
Author: My Name <myname@server.dreamhost.com>
Date: Sat Feb 13 08:39:52 2010 -0800
slightly better gradient
commit 96d2a2bb74c287af18a491f616ce784cc30ff1ea
Author: My Name <myname@server.dreamhost.com>
Date: Sat Feb 13 08:31:15 2010 -0800
Add gradient background under menu
commit 80fab463530791e6e9ebb06e475b67211b88a8d4
Author: My Name <myname@server.dreamhost.com>
Date: Fri Feb 12 14:33:04 2010 -0800
change copy back
commit f0952894251854432a6b960d39460a926c819202
Author: My Name <myname@server.dreamhost.com>
Date: Fri Feb 12 …Run Code Online (Sandbox Code Playgroud)