Compare commits
No commits in common. "bdf7e6bbae53037d811228d0d7a0fdf342055acf" and "6dace63cb043c0e137222a4fd9b12bd2126b5ec5" have entirely different histories.
bdf7e6bbae
...
6dace63cb0
@ -4,7 +4,7 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
group = 'net.pixtaded'
|
group = 'net.pixtaded'
|
||||||
version = '1.0.2'
|
version = '1.0.1'
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
|
@ -82,7 +82,9 @@ public class CrabClient implements Crab {
|
|||||||
private void communicate() throws IOException {
|
private void communicate() throws IOException {
|
||||||
Scanner scanner = new Scanner(System.in);
|
Scanner scanner = new Scanner(System.in);
|
||||||
String message;
|
String message;
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
|
System.out.print("\033[H\033[2J");
|
||||||
getLogs();
|
getLogs();
|
||||||
System.out.print("Enter a message (or type '/exit' to exit): ");
|
System.out.print("Enter a message (or type '/exit' to exit): ");
|
||||||
message = scanner.nextLine();
|
message = scanner.nextLine();
|
||||||
@ -112,7 +114,6 @@ public class CrabClient implements Crab {
|
|||||||
lastBufferLength = Integer.parseInt(new String(buffer).trim());
|
lastBufferLength = Integer.parseInt(new String(buffer).trim());
|
||||||
} case LOGS -> {
|
} case LOGS -> {
|
||||||
byte[] bytes = socket.getInputStream().readNBytes(lastBufferLength);
|
byte[] bytes = socket.getInputStream().readNBytes(lastBufferLength);
|
||||||
System.out.print("\033[H\033[2J");
|
|
||||||
System.out.print(Sanitizer.sanitizeString(new String(bytes, StandardCharsets.UTF_8), false));
|
System.out.print(Sanitizer.sanitizeString(new String(bytes, StandardCharsets.UTF_8), false));
|
||||||
} default -> {
|
} default -> {
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user