import jexer.bits.*;
import jexer.TApplication;
+import jexer.session.TTYSessionInfo;
/**
* The demo application itself.
/**
* Public constructor
*/
- public DemoApplication() {
+ public DemoApplication() throws Exception {
+ super(null, null);
+ /*
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();
}
+ */
}
}
* @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();
+ }
}
}