TTYSessionInfo
[fanfix.git] / demos / Demo1.java
index 6f4869ae6c8100644b0fac8ae6c9d45ae227acc6..ada690d6703a14724eea6fd5fec9bda237492258 100644 (file)
@@ -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();
        }