Shell emacs外壳模式在回车时不清除行

Shell emacs外壳模式在回车时不清除行,shell,emacs,carriage-return,Shell,Emacs,Carriage Return,似乎我正在emacs shell模式下运行zsh会话。我对一些命令有问题,例如,npm、warn、其他节点内容。该行将不会清晰并重新渲染,但所有行将继续提供丑陋的长输出,这没有多大意义。我认为这与回车字符有关。知道怎么解决吗 yarn remove jest yarn remove v1.17.3 [1/2] Removing module jest... [2/2] Regenerating lockfile and installing missing dependencies... []

似乎我正在emacs shell模式下运行zsh会话。我对一些命令有问题,例如,
npm
warn
、其他节点内容。该行将不会清晰并重新渲染,但所有行将继续提供丑陋的长输出,这没有多大意义。我认为这与回车字符有关。知道怎么解决吗

yarn remove jest
yarn remove v1.17.3
[1/2] Removing module jest...
[2/2] Regenerating lockfile and installing missing dependencies...
[] 0/522[] 56/522[] 123/522[] 181/522[] 255/522[] 327/522[] 388/522[] 451/522[] 520/522info fsevents@2.0.7: The platform "linux" is incompatible with this module.
info "fsevents@2.0.7" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@1.2.9: The platform "linux" is incompatible with this module.
info "fsevents@1.2.9" is an optional dependency and failed compatibility check. Excluding it from installation.
[] 522/522[] 0/520[] 0/166[] 128/166[] 166/166[] 0/959[] 324/959[] 820/959[] 959/959
success Uninstalled packages.
Done in 3.83s.

这可能是因为
shell模式
不是真正的终端,而那些工具并没有检测到它本身。你到底在运行什么?我已经用示例更新了问题。我的
纱线
表现合理:。它甚至有进度条,在最终结果中不会显示。你应该使用更新的
纱线
或真正的终端(比如
术语模式
),所以前几天我把它弄得一团糟。我仍然有同样的行为,一个长时间运行的Emacs工作得很好,一个新的Emacs的行为和你的一样。我尝试在新会话中加载旧会话中打开的所有文件,尝试将旧会话中的所有
功能
也加载到新会话中,然后启动
M-x shell
。同样的行为。我不知道是什么使它起作用。如果你感兴趣,我的配置在。如果我能弄明白的话,我会发布一个答案,但我不是很有希望。此外,以下是会话的
功能与
shell
配合得很好:。这可能是因为
shell模式
不是真正的终端,而那些工具并没有检测到它本身。你到底在运行什么?我已经用示例更新了问题。我的
纱线
表现合理:。它甚至有进度条,在最终结果中不会显示。你应该使用更新的
纱线
或真正的终端(比如
术语模式
),所以前几天我把它弄得一团糟。我仍然有同样的行为,一个长时间运行的Emacs工作得很好,一个新的Emacs的行为和你的一样。我尝试在新会话中加载旧会话中打开的所有文件,尝试将旧会话中的所有
功能
也加载到新会话中,然后启动
M-x shell
。同样的行为。我不知道是什么使它起作用。如果你感兴趣,我的配置在。如果我能找到答案,我会发布一个答案,但我不是很有希望。另外,下面是本课程的
功能
,这些功能与
shell
配合得很好:。
yarn add jest
yarn add v1.17.3
[1/4] Resolving packages...
⠈ resolve-cwd@^2.0.0⠁ resolve-from@^3.0.0⠂ resolve-from@^3.0.0⠄ resolve-from@^3.0.0⡀ resolve-from@^3.0.0⢀ resolve-from@^3.0.0⠠ resolve-from@^3.0.0⠐ resolve-from@^3.0.0⠈ resolve-from@^3.0.0⠁ resolve-from@^3.0.0⠂ resolve-from@^3.0.0⠄ resolve-from@^3.0.0⡀ resolve-from@^3.0.0⢀ resolve-from@^3.0.0⠠ resolve-from@^3.0.0⠐ yargs@^13.3.0⠈ yargs@^13.3.0⠁ yargs@^13.3.0⠂ yargs@^13.3.0⠄ yargs@^13.3.0⡀ yargs@^13.3.0⢀ yargs@^13.3.0⠠ yargs@^13.3.0⠐ yargs@^13.3.0⠈ yargs@^13.3.0⠁ yargs@^13.3.0⠂ yargs@^13.3.0⠄ ci-info@^2.0.0⡀ ci-info@^2.0.0⢀ @types/istanbul-lib-coverage@^2.0.0⠠ @types/istanbul-lib-coverage@^2.0.0⠐ @types/istanbul-lib-coverage@^2.0.0⠈ strip-ansi@^5.0.0⠁ strip-ansi@^5.0.0⠂ strip-ansi@^5.0.0⠄ strip-ansi@^5.0.0⡀ strip-ansi@^5.0.0⢀ strip-ansi@^5.0.0⠠ pretty-format@^24.9.0⠐ source-map@^0.6.0⠈ sisteransi@^1.0.3⠁ sisteransi@^1.0.3⠂ realpath-native@^1.1.0⠄ realpath-native@^1.1.0⡀ realpath-native@^1.1.0⢀ realpath-native@^1.1.0⠠ realpath-native@^1.1.0⠐ realpath-native@^1.1.0⠈ realpath-native@^1.1.0⠁ @types/istanbul-lib-report@*⠂ @types/istanbul-lib-report@*⠄ @types/istanbul-lib-report@*⡀ @types/istanbul-lib-report@*⢀ yargs-parser@^13.1.1⠠ slash@^2.0.0⠐ slash@^2.0.0⠈ slash@^2.0.0⠁ string-length@^2.0.0⠂ string-length@^2.0.0⠄ write-file-atomic@2.4.1⡀ write-file-atomic@2.4.1⢀ write-file-atomic@2.4.1⠠ write-file-atomic@2.4.1⠐ write-file-atomic@2.4.1⠈ write-file-atomic@2.4.1⠁ write-file-atomic@2.4.1⠂ write-file-atomic@2.4.1⠄ write-file-atomic@2.4.1⡀ write-file-atomic@2.4.1⢀ write-file-atomic@2.4.1⠠ write-file-atomic@2.4.1⠐ throat@^4.0.0⠈ throat@^4.0.0⠁ throat@^4.0.0⠂ throat@^4.0.0⠄ throat@^4.0.0⡀ throat@^4.0.0⢀ fsevents@^1.2.7⠠ fsevents@^1.2.7⠐ fsevents@^1.2.7⠈ jest-snapshot@^24.9.0⠁ jest-snapshot@^24.9.0⠂ throat@^4.0.0⠄ throat@^4.0.0⡀ throat@^4.0.0⢀ throat@^4.0.0⠠ throat@^4.0.0⠐ p-reduce@^1.0.0⠈ p-reduce@^1.0.0⠁ string-length@^2.0.0⠂ string-length@^2.0.0⠄ string-length@^2.0.0⡀ yargs@^13.3.0⢀ yargs@^13.3.0⠠ semver@^6.2.0⠐ semver@^6.2.0⠈ semver@^6.2.0⠁ semver@^6.2.0⠂ semver@^6.2.0⠄ semver@^6.2.0⡀ semver@^6.2.0⢀ semver@^6.2.0⠠ semver@^6.2.0⠐ semver@^6.2.0⠈ semver@^6.2.0⠁ semver@^6.2.0⠂ source-map@^0.6.0⠄ object.getownpropertydescriptors@^2.0.3⡀ object.getownpropertydescriptors@^2.0.3⢀ object.getownpropertydescriptors@^2.0.3⠠ object.getownpropertydescriptors@^2.0.3⠐ react-is@^16.8.4⠈ react-is@^16.8.4⠁ react-is@^16.8.4⠂ react-is@^16.8.4⠄ react-is@^16.8.4⡀ jest-runtime@^24.9.0⢀ jest-runtime@^24.9.0⠠ jest-runtime@^24.9.0⠐ jest-runtime@^24.9.0⠈ jest-runtime@^24.9.0⠁ jest-runtime@^24.9.0⠂ @types/istanbul-lib-coverage@*⠄ @types/istanbul-lib-coverage@*⡀ @types/istanbul-lib-coverage@*⢀ @types/istanbul-lib-coverage@*⠠ @types/istanbul-lib-coverage@*⠐ @types/istanbul-lib-coverage@*⠈ slash@^2.0.0⠁ jsdom@^11.5.1⠂ jsdom@^11.5.1⠄ jsdom@^11.5.1⡀ jsdom@^11.5.1⢀ jsdom@^11.5.1⠠ jsdom@^11.5.1⠐ throat@^4.0.0⠈ throat@^4.0.0⠁ throat@^4.0.0⠂ throat@^4.0.0⠄ jest-util@^24.9.0⡀ jest-util@^24.9.0⢀ jest-util@^24.9.0⠠ jest-util@^24.9.0⠐ jest-util@^24.9.0⠈ jest-util@^24.9.0⠁ jest-util@^24.9.0⠂ decamelize@^1.2.0⠄ decamelize@^1.2.0⡀ decamelize@^1.2.0⢀ decamelize@^1.2.0⠠ decamelize@^1.2.0⠐ jest-mock@^24.9.0⠈ supports-color@^6.1.0⠁ source-map@^0.6.1⠂ source-map@^0.6.1⠄ handlebars@^4.1.2⡀ handlebars@^4.1.2⢀ semver@^6.0.0⠠ semver@^6.0.0⠐ strip-ansi@^4.0.0⠈ strip-ansi@^4.0.0⠁ strip-ansi@^4.0.0⠂ which@^1.3.0⠄ supports-color@^6.1.0⡀ supports-color@^6.1.0⢀ supports-color@^6.1.0⠠ supports-color@^6.1.0⠐ test-exclude@^5.2.3⠈ test-exclude@^5.2.3⠁ test-exclude@^5.2.3⠂ signal-exit@^3.0.2⠄ signal-exit@^3.0.2⡀ signal-exit@^3.0.2⢀ signal-exit@^3.0.2⠠ strip-eof@^1.0.0⠐ bser@^2.0.0⠈ bser@^2.0.0⠁ bser@^2.0.0⠂ bser@^2.0.0⠄ bser@^2.0.0⡀ bser@^2.0.0⢀ bser@^2.0.0⠠ bser@^2.0.0⠐ bser@^2.0.0⠈ makeerror@1.0.x⠁ makeerror@1.0.x⠂ makeerror@1.0.x⠄ walker@~1.0.5⡀ walker@~1.0.5⢀ resolve@1.1.7⠠ resolve@1.1.7⠐ resolve@1.1.7⠈ resolve@1.1.7⠁ resolve@1.1.7⠂ detect-newline@^2.1.0⠄ detect-newline@^2.1.0⡀ pretty-format@^24.9.0⢀ pretty-format@^24.9.0⠠ pretty-format@^24.9.0⠐ pretty-format@^24.9.0⠈ pretty-format@^24.9.0⠁ pretty-format@^24.9.0⠂ pretty-format@^24.9.0⠄ pretty-format@^24.9.0