From a9da6ee7ef1ae4e0468d5b9e71baa34cdb3bebb9 Mon Sep 17 00:00:00 2001 From: Eric Bottard Date: Fri, 18 Apr 2014 15:52:45 +0200 Subject: [PATCH] Make cls really end up at 0,0 --- .../org/springframework/shell/commands/ConsoleCommands.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/springframework/shell/commands/ConsoleCommands.java b/src/main/java/org/springframework/shell/commands/ConsoleCommands.java index 2c132c17..d9d2caac 100644 --- a/src/main/java/org/springframework/shell/commands/ConsoleCommands.java +++ b/src/main/java/org/springframework/shell/commands/ConsoleCommands.java @@ -23,7 +23,7 @@ import org.springframework.shell.core.annotation.CliCommand; import org.springframework.stereotype.Component; /** - * Commands related to the manipulation of the jline console + * Commands related to the manipulation of the jline console. * * @author Mark Pollack * @@ -33,7 +33,7 @@ public class ConsoleCommands implements CommandMarker { @CliCommand(value = { "cls", "clear" }, help = "Clears the console") public void clear() { - AnsiConsole.out().println(ansi().eraseScreen().cursor(0, 0)); + AnsiConsole.out().print(ansi().eraseScreen().cursor(0, 0)); } }