]> git.saurik.com Git - redis.git/blobdiff - src/redis-cli.c
fixed compilation on Linux
[redis.git] / src / redis-cli.c
index a3987472283bd9de657464f7e143a724cc3daf55..2aedcc4a225b6ef070ce734f1f869ebca43cf609 100644 (file)
@@ -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;