X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=demos%2FDemo1.java;h=ada690d6703a14724eea6fd5fec9bda237492258;hb=c8496daccfbef15d8d63b448c9999710ea60d71d;hp=6f4869ae6c8100644b0fac8ae6c9d45ae227acc6;hpb=df8de03f80590dde35f26616db91ad6163007b7e;p=nikiroo-utils.git diff --git a/demos/Demo1.java b/demos/Demo1.java index 6f4869a..ada690d 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. @@ -44,6 +45,9 @@ class DemoApplication extends TApplication { 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(); }