Cmder: 'clear' is not work in windows.

Created on 26 Mar 2016  ·  11Comments  ·  Source: cmderdev/cmder

if I ssh to an virtualbox like vagrant, clear is not work.
For example:
image

Most helpful comment

To fix this for Windows, need to call this first thing: export TERM=cygwin

I'm unsure why this works while others don't, but it certainly works. Not sure what it will effect later though.

All 11 comments

@Tiny-Box in aliases file insert this clear=cls.

try Cont-L

use Ctrl+L

Ctrl+L is not work.

I'm having this same issue when ssh'd to a remote (linux) host - invoking clear moves the cursor and current input line to the top of the window, but the previous output is not overdrawn with the background. Likewise to @Tiny-Box, ctrl-l has the same behaviour in this scenario.

I should mention that I'm running Windows 7 Enterprise, with the latest cmder release, 1.3.1.

use Ctrl+L

To fix this for Windows, need to call this first thing: export TERM=cygwin

I'm unsure why this works while others don't, but it certainly works. Not sure what it will effect later though.

https://github.com/cmderdev/cmder/issues/594

in remote mechine, add:
export TERM=vt100

I have solved my question。

@shengbinxu

这不是一个好办法吧?如果老是要操作一些线上的服务器怎么办啊

@hailongs 是的。所以我现在就不用cmder了。问题太多,兼容性很差。还是xshell比较顺手。

This has nothing to do with Cmder since it is on a remote machine. Closing.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

justinmchase picture justinmchase  ·  3Comments

giuliannosbrugnera picture giuliannosbrugnera  ·  3Comments

sathishsoundharajan picture sathishsoundharajan  ·  3Comments

spooky picture spooky  ·  3Comments

edgariscoding picture edgariscoding  ·  3Comments