X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=demos%2FDemo1.java;h=62fce24c3022bb46560a067d4f56bba97319cd8d;hb=b299e69c251b7639440bfb914dbbdc51aa689af5;hp=6f4869ae6c8100644b0fac8ae6c9d45ae227acc6;hpb=2420f903afc54a5bcf61f1bdd5e3dfada2fab5b2;p=nikiroo-utils.git diff --git a/demos/Demo1.java b/demos/Demo1.java index 6f4869a..62fce24 100644 --- a/demos/Demo1.java +++ b/demos/Demo1.java @@ -33,6 +33,7 @@ import jexer.bits.*; import jexer.TApplication; +import jexer.session.TTYSessionInfo; /** * The demo application itself. @@ -41,12 +42,18 @@ class DemoApplication extends TApplication { /** * 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(); } + */ } } @@ -60,8 +67,12 @@ public class Demo1 { * @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(); + } } }