From 87cb4d8929afc64ef74879e72a8e2d66a76e69af Mon Sep 17 00:00:00 2001 From: Haarolean Date: Wed, 15 Nov 2017 20:46:32 +0300 Subject: [PATCH] preamble fix for unix. JLine didn't send line reset character --- pom.xml | 2 +- .../ryanmichela/sshd/ConsoleShellFactory.java | 22 +++++++++---------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/pom.xml b/pom.xml index f6c1f57..0128e88 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ com.ryanmichela SSHD - 1.3.2 + 1.3.3 http://dev.bukkit.org/server-mods/sshd/ diff --git a/src/main/java/com/ryanmichela/sshd/ConsoleShellFactory.java b/src/main/java/com/ryanmichela/sshd/ConsoleShellFactory.java index 3347352..14533c2 100644 --- a/src/main/java/com/ryanmichela/sshd/ConsoleShellFactory.java +++ b/src/main/java/com/ryanmichela/sshd/ConsoleShellFactory.java @@ -114,17 +114,17 @@ public class ConsoleShellFactory implements Factory { } private void printPreamble(ConsoleReader consoleReader) throws IOException { - consoleReader.println(" _____ _____ _ _ _____"); - consoleReader.println(" / ____/ ____| | | | __ \\"); - consoleReader.println("| (___| (___ | |__| | | | |"); - consoleReader.println(" \\___ \\\\___ \\| __ | | | |"); - consoleReader.println(" ____) |___) | | | | |__| |"); - consoleReader.println("|_____/_____/|_| |_|_____/"); - consoleReader.println("Connected to: " + Bukkit.getServer().getName()); - consoleReader.println("- " + Bukkit.getServer().getMotd()); - consoleReader.println(); - consoleReader.println("Type 'exit' to exit the shell."); - consoleReader.println("==============================================="); + consoleReader.println(" _____ _____ _ _ _____" + "\r"); + consoleReader.println(" / ____/ ____| | | | __ \\" + "\r"); + consoleReader.println("| (___| (___ | |__| | | | |" + "\r"); + consoleReader.println(" \\___ \\\\___ \\| __ | | | |" + "\r"); + consoleReader.println(" ____) |___) | | | | |__| |" + "\r"); + consoleReader.println("|_____/_____/|_| |_|_____/" + "\r"); + consoleReader.println("Connected to: " + Bukkit.getServer().getName() + "\r"); + consoleReader.println("- " + Bukkit.getServer().getMotd() + "\r"); + consoleReader.println("\r"); + consoleReader.println("Type 'exit' to exit the shell." + "\r"); + consoleReader.println("===============================================" + "\r"); } } } \ No newline at end of file