merge
authorKevin Lamonte <kevin.lamonte@gmail.com>
Sat, 21 Mar 2015 02:06:59 +0000 (22:06 -0400)
committerKevin Lamonte <kevin.lamonte@gmail.com>
Sat, 21 Mar 2015 02:06:59 +0000 (22:06 -0400)
README.md
src/jexer/TTerminalWindow.java

index 570a0170c095aaf55cc2f6d15ef4ad13839f633f..746b1686b171904fea0def6e1652015e9561ad60 100644 (file)
--- a/README.md
+++ b/README.md
@@ -87,9 +87,10 @@ ambiguous.  This section describes such issues.
   ---------------
 
   - TTerminalWindow will hang on input from the remote if the
-    TApplication is exited before closing the TTerminalWindow.  This
-    is due to a Java limitation/interaction between blocking reads
-    (necessary to get UTF8 translation correct) and file streams.
+    TApplication is exited before the TTerminalWindow's process has
+    closed on its own.  This is due to a Java limitation/interaction
+    between blocking reads (which is necessary to get UTF8 translation
+    correct) and file streams.
 
   - See jexer.tterminal.ECMA48 for more specifics of terminal
     emulation limitations.
@@ -102,15 +103,22 @@ Many tasks remain before calling this version 1.0:
 
 0.0.2:
 
+- Making TMenu keyboard accelerators active/inactive
 - AWT:
   - Blinking cursor
   - Handle kbTab (disable focus traversal BS)
+  - Block cursor
 - ECMA48Backend running on socket
 - TTreeView
 - TDirectoryList
 - TFileOpen
 - Decide on naming convention: getText, getValue, getLabel: one or all
   of them?
+- Refactor:
+  - TKeypress:
+    - getCh() --> getChar()
+    - getAlt/getCtrl/getShift --> isAltDown / isCtrlDown / isShiftDown
+  - Other boolean getters --> isSomething
 
 0.0.3:
 
@@ -120,7 +128,6 @@ Many tasks remain before calling this version 1.0:
 
 - Bugs
   - TSubMenu keyboard mnemonic not working
-  - Making TMenu keyboard accelerators active/inactive
   - TDirectoryList cannot be navigated only with keyboard
   - TTreeView cannot be navigated only with keyboard
   - RangeViolation after dragging scrollbar up/down
index 336c3ff8db7cd19c2a6761f98469cc869f0b6b78..010cc4993eaa139f5b67ad2a5dedac36f00b3e44 100644 (file)
@@ -242,7 +242,12 @@ public class TTerminalWindow extends TWindow {
      * Handle window close.
      */
     @Override public void onClose() {
-        emulator.close();
+        if (shell != null) {
+            shell.destroy();
+            shell = null;
+        } else {
+            emulator.close();
+        }
     }
 
     /**