X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=demos%2FDemo1.java;h=ada690d6703a14724eea6fd5fec9bda237492258;hb=05dbb28d6e8613216f43e8d0fae487c1d9c2fcd3;hp=94f0e9f22ce2ebfdc1cc63593adcb50075b372c7;hpb=7d4115a542abd938aa7fce607b062c6e393e5d67;p=fanfix.git diff --git a/demos/Demo1.java b/demos/Demo1.java index 94f0e9f..ada690d 100644 --- a/demos/Demo1.java +++ b/demos/Demo1.java @@ -30,12 +30,28 @@ * 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(); + } + } } /**