X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/ce260f736e483d40967d3e551f04534154c12aba..57997664eaba82ad263c61b9cdbe7dd26ec8d08d:/src/redis-cli.c diff --git a/src/redis-cli.c b/src/redis-cli.c index a3987472..2aedcc4a 100644 --- a/src/redis-cli.c +++ b/src/redis-cli.c @@ -561,6 +561,8 @@ static void repl() { config.hostip = sdsnew(argv[1]); config.hostport = atoi(argv[2]); cliConnect(1); + } else if (argc == 1 && !strcasecmp(argv[0],"clear")) { + linenoiseClearScreen(); } else { long long start_time = mstime(), elapsed;