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
checkstyle'd
[fanfix.git]
/
demos
/
Demo1.java
diff --git
a/demos/Demo1.java
b/demos/Demo1.java
index 6f4869ae6c8100644b0fac8ae6c9d45ae227acc6..62fce24c3022bb46560a067d4f56bba97319cd8d 100644
(file)
--- a/
demos/Demo1.java
+++ b/
demos/Demo1.java
@@
-33,6
+33,7
@@
import jexer.bits.*;
import jexer.TApplication;
import jexer.bits.*;
import jexer.TApplication;
+import jexer.session.TTYSessionInfo;
/**
* The demo application itself.
/**
* The demo application itself.
@@
-41,12
+42,18
@@
class DemoApplication extends TApplication {
/**
* Public constructor
*/
/**
* Public constructor
*/
- public DemoApplication() {
+ public DemoApplication() throws Exception {
+ super(null, null);
+ /*
try {
ColorTheme theme = new ColorTheme();
try {
ColorTheme theme = new ColorTheme();
+ TTYSessionInfo tty = new TTYSessionInfo();
+ System.out.println("width: " + tty.getWindowWidth());
+ System.out.println("height: " + tty.getWindowHeight());
} catch (Exception e) {
e.printStackTrace();
}
} catch (Exception e) {
e.printStackTrace();
}
+ */
}
}
}
}
@@
-60,8
+67,12
@@
public class Demo1 {
* @param args Command line arguments
*/
public static void main(String [] args) {
* @param args Command line arguments
*/
public static void main(String [] args) {
- DemoApplication app = new DemoApplication();
- app.run();
+ try {
+ DemoApplication app = new DemoApplication();
+ app.run();
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
}
}
}
}