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
ECMA48Backend compiles
[fanfix.git]
/
demos
/
Demo1.java
diff --git
a/demos/Demo1.java
b/demos/Demo1.java
index 6f4869ae6c8100644b0fac8ae6c9d45ae227acc6..ada690d6703a14724eea6fd5fec9bda237492258 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.
@@
-44,6
+45,9
@@
class DemoApplication extends TApplication {
public DemoApplication() {
try {
ColorTheme theme = new ColorTheme();
public DemoApplication() {
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();
}