diff --git a/pom.xml b/pom.xml
index 3737805..b59b061 100644
--- a/pom.xml
+++ b/pom.xml
@@ -15,41 +15,22 @@
UTF-8
-
-
- jline
- JLine Project Repository
- http://jline.sourceforge.net/m2repo
-
-
-
-
- true
- always
- fail
-
- com.loomcom
- Loom Communications Maven2 Repository
- http://www.loomcom.com/maven2
- default
-
-
ch.qos.logback
logback-classic
- 1.1.3
+ 1.2.3
junit
junit
- 4.11
+ 4.12
test
org.mockito
mockito-all
- 1.9.5
+ 1.10.19
test
@@ -83,7 +64,7 @@
org.apache.maven.plugins
maven-compiler-plugin
- 3.1
+ 3.7.0
-Xlint:unchecked
diff --git a/src/main/java/com/loomcom/symon/ui/Console.java b/src/main/java/com/loomcom/symon/ui/Console.java
index 525f8be..b9fafe9 100644
--- a/src/main/java/com/loomcom/symon/ui/Console.java
+++ b/src/main/java/com/loomcom/symon/ui/Console.java
@@ -51,7 +51,7 @@ public class Console extends JTerminal implements KeyListener, MouseListener {
private static final boolean SWAP_CR_AND_LF = true;
// If true, send CRLF (0x0d 0x0a) whenever CR is typed
- private boolean sendCrForLf = false;
+ private boolean sendCrForLf;
private FifoRingBuffer typeAheadBuffer;
public Console(int columns, int rows, Font font, boolean sendCrForLf) {
@@ -107,7 +107,7 @@ public class Console extends JTerminal implements KeyListener, MouseListener {
}
}
- if (sendCrForLf && keyTyped == 0x0d) {
+ if (sendCrForLf && (keyTyped == 0x0d)) {
typeAheadBuffer.push((char) 0x0d);
typeAheadBuffer.push((char) 0x0a);
} else {