mirror of
https://codeberg.org/sethm/symon.git
synced 2026-11-09 11:32:23 +00:00
Add jterminal to source
This commit is contained in:
1 parent
8ffb130300
commit
18ce120984
2 files changed
+6
-8
No files matched your search
@@ -46,11 +46,6 @@
|
|||||||
<version>4.11</version>
|
<version>4.11</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>com.grahamedgecombe.jterminal</groupId>
|
|
||||||
<artifactId>jterminal</artifactId>
|
|
||||||
<version>1.0.2.3-loomcom</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.mockito</groupId>
|
<groupId>org.mockito</groupId>
|
||||||
<artifactId>mockito-all</artifactId>
|
<artifactId>mockito-all</artifactId>
|
||||||
|
|||||||
@@ -23,8 +23,8 @@
|
|||||||
|
|
||||||
package com.loomcom.symon.ui;
|
package com.loomcom.symon.ui;
|
||||||
|
|
||||||
import com.grahamedgecombe.jterminal.JTerminal;
|
import com.loomcom.symon.jterminal.JTerminal;
|
||||||
import com.grahamedgecombe.jterminal.vt100.Vt100TerminalModel;
|
import com.loomcom.symon.jterminal.vt100.Vt100TerminalModel;
|
||||||
import com.loomcom.symon.exceptions.FifoUnderrunException;
|
import com.loomcom.symon.exceptions.FifoUnderrunException;
|
||||||
import com.loomcom.symon.util.FifoRingBuffer;
|
import com.loomcom.symon.util.FifoRingBuffer;
|
||||||
|
|
||||||
@@ -44,7 +44,9 @@ import java.awt.event.MouseListener;
|
|||||||
|
|
||||||
public class Console extends JTerminal implements KeyListener, MouseListener {
|
public class Console extends JTerminal implements KeyListener, MouseListener {
|
||||||
|
|
||||||
private static final int DEFAULT_BORDER_WIDTH = 10;
|
private static final long serialVersionUID = 6633818486963338126L;
|
||||||
|
|
||||||
|
private static final int DEFAULT_BORDER_WIDTH = 10;
|
||||||
// If true, swap CR and LF characters.
|
// If true, swap CR and LF characters.
|
||||||
private static final boolean SWAP_CR_AND_LF = true;
|
private static final boolean SWAP_CR_AND_LF = true;
|
||||||
|
|
||||||
@@ -54,6 +56,7 @@ public class Console extends JTerminal implements KeyListener, MouseListener {
|
|||||||
|
|
||||||
public Console(int columns, int rows, Font font, boolean sendCrForLf) {
|
public Console(int columns, int rows, Font font, boolean sendCrForLf) {
|
||||||
super(new Vt100TerminalModel(columns, rows), font);
|
super(new Vt100TerminalModel(columns, rows), font);
|
||||||
|
//super(new Vt100TerminalModel(columns, rows));
|
||||||
// A small type-ahead buffer, as might be found in any real
|
// A small type-ahead buffer, as might be found in any real
|
||||||
// VT100-style serial terminal.
|
// VT100-style serial terminal.
|
||||||
this.typeAheadBuffer = new FifoRingBuffer<>(128);
|
this.typeAheadBuffer = new FifoRingBuffer<>(128);
|
||||||
|
|||||||
Reference in new issue
Block a user