ECMA48Backend compiles
[fanfix.git] / demos / Demo1.java
index 94f0e9f22ce2ebfdc1cc63593adcb50075b372c7..ada690d6703a14724eea6fd5fec9bda237492258 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  * 02110-1301 USA
  */
+
+import jexer.bits.*;
 import jexer.TApplication;
+import jexer.session.TTYSessionInfo;
 
 /**
  * The demo application itself.
  */
 class DemoApplication extends TApplication {
+    /**
+     * Public constructor
+     */
+    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();
+       }
+    }
 }
 
 /**