git://git.nikiroo.be
/
fanfix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix double-width/height on xterm backend
[fanfix.git]
/
src
/
jexer
/
backend
/
SwingTerminal.java
diff --git
a/src/jexer/backend/SwingTerminal.java
b/src/jexer/backend/SwingTerminal.java
index 314e6f5a89e6854dc354e0cd70afac6531cbafc6..4cd6d07624010ae8facb31969042f118d59ce44b 100644
(file)
--- a/
src/jexer/backend/SwingTerminal.java
+++ b/
src/jexer/backend/SwingTerminal.java
@@
-301,6
+301,13
@@
public class SwingTerminal extends LogicalScreen
// Constructors -----------------------------------------------------------
// ------------------------------------------------------------------------
// Constructors -----------------------------------------------------------
// ------------------------------------------------------------------------
+ /**
+ * Static constructor.
+ */
+ static {
+ setDOSColors();
+ }
+
/**
* Public constructor creates a new JFrame to render to.
*
/**
* Public constructor creates a new JFrame to render to.
*
@@
-316,7
+323,6
@@
public class SwingTerminal extends LogicalScreen
this.fontSize = fontSize;
this.fontSize = fontSize;
- setDOSColors();
reloadOptions();
try {
reloadOptions();
try {
@@
-438,7
+444,6
@@
public class SwingTerminal extends LogicalScreen
this.fontSize = fontSize;
this.fontSize = fontSize;
- setDOSColors();
reloadOptions();
try {
reloadOptions();
try {
@@
-715,6
+720,15
@@
public class SwingTerminal extends LogicalScreen
return blinkMillis;
}
return blinkMillis;
}
+ /**
+ * Get the current status of the blink flag.
+ *
+ * @return true if the cursor and blinking text should be visible
+ */
+ public boolean getCursorBlinkVisible() {
+ return cursorBlinkVisible;
+ }
+
/**
* Get the font size in points.
*
/**
* Get the font size in points.
*