stubs for TTableWidget
[fanfix.git] / src / jexer / net / TelnetInputStream.java
index ac010e8f0ab3db06f9c5a038e0ae2464ec209216..3e74561a40c20e6ea9b166dea9de4d2e24e00f1c 100644 (file)
@@ -199,6 +199,15 @@ public class TelnetInputStream extends InputStream implements SessionInfo {
         this.language = language;
     }
 
+    /**
+     * Get the terminal type as reported by the telnet Terminal Type option.
+     *
+     * @return the terminal type
+     */
+    public String getTerminalType() {
+        return master.terminalType;
+    }
+
     /**
      * Text window width getter.
      *
@@ -311,6 +320,7 @@ public class TelnetInputStream extends InputStream implements SessionInfo {
 
         // If we got something, return it.
         if (rc > 0) {
+            readBufferEnd += rc;
             readBufferStart++;
             return readBuffer[readBufferStart - 1];
         }