Update copyright to 2017
[nikiroo-utils.git] / src / jexer / demos / Demo2.java
index e21d9444f775adba25dc7bc887ffbae93332a264..74046b02659f6f79a8592f92bef4dc37059706cc 100644 (file)
@@ -3,7 +3,7 @@
  *
  * The MIT License (MIT)
  *
- * Copyright (C) 2016 Kevin Lamonte
+ * Copyright (C) 2017 Kevin Lamonte
  *
  * Permission is hereby granted, free of charge, to any person obtaining a
  * copy of this software and associated documentation files (the "Software"),
@@ -57,6 +57,9 @@ public class Demo2 {
                 System.out.printf("New connection: %s\n", socket);
                 DemoApplication app = new DemoApplication(socket.getInputStream(),
                     socket.getOutputStream());
+                System.out.printf("   language: %s\n",
+                    ((jexer.net.TelnetInputStream) socket.getInputStream()).
+                        getLanguage());
                 (new Thread(app)).start();
             }
         } catch (Exception e) {