clean up threads and timers
[nikiroo-utils.git] / README.md
... / ...
CommitLineData
1Jexer - Java Text User Interface library
2========================================
3
4WARNING: THIS IS ALPHA CODE!
5
6This library is intended to implement a text-based windowing system
7loosely reminiscient of Borland's [Turbo
8Vision](http://en.wikipedia.org/wiki/Turbo_Vision) library. For those
9wishing to use the actual C++ Turbo Vision library, see [Sergio
10Sigala's updated version](http://tvision.sourceforge.net/) that runs
11on many more platforms.
12
13Two backends are available:
14
15* System.in/out to a command-line ECMA-48 / ANSI X3.64 type terminal
16 (tested on Linux + xterm). I/O is handled through terminal escape
17 sequences generated by the library itself: ncurses is not required
18 or linked to. xterm mouse tracking using UTF8 coordinates is
19 supported. This is the default backend on non-Windows platforms.
20
21* Java AWT UI. This backend can be selected by setting
22 jexer.AWT=true. This is the default backend on Windows platforms.
23 AWT is VERY experimental, please consider filing bugs when you
24 encounter them.
25
26A demo application showing the existing UI controls is available via
27'java -jar jexer.jar' or 'java -Djexer.AWT=true -jar jexer.jar' .
28
29
30
31License
32-------
33
34This project is licensed LGPL ("GNU Lesser General Public License")
35version 3 or greater. See the file LICENSE for the full license text,
36which includes both the GPL v3 and the LGPL supplemental terms.
37
38
39
40Acknowledgements
41----------------
42
43Jexer makes use of the Terminus TrueType font [made available
44here](http://files.ax86.net/terminus-ttf/) .
45
46
47
48Usage
49-----
50
51Usage patterns are still being worked on, but in general the goal will
52be to build applications somewhat as follows:
53
54```Java
55import jexer.*;
56
57public class MyApplication extends TApplication {
58
59 public MyApplication() {
60 super();
61
62 // Create standard menus for File and Window
63 addFileMenu();
64 addWindowMenu();
65 }
66
67 public static void main(String [] args) {
68 MyApplication app = new MyApplication();
69 app.run();
70 }
71}
72```
73
74See the file demos/Demo1.java for detailed examples.
75
76
77
78Known Issues / Arbitrary Decisions
79----------------------------------
80
81Some arbitrary design decisions had to be made when either the
82obviously expected behavior did not happen or when a specification was
83ambiguous. This section describes such issues.
84
85
86
87Roadmap
88-------
89
90Many tasks remain before calling this version 1.0:
91
920.0.2:
93
94- AWT:
95 - Blinking cursor
96- ECMA48Backend running on socket
97- TTreeView
98- TDirectoryList
99- TFileOpen
100- Decide on naming convention: getText, getValue, getLabel: one or all
101 of them?
102
1030.0.3:
104
105- TEditor
106
1070.0.4:
108
109- Bugs
110 - TTimer is jittery with I/O
111 - TSubMenu keyboard mnemonic not working
112 - Making TMenu keyboard accelerators active/inactive
113 - TDirectoryList cannot be navigated only with keyboard
114 - TTreeView cannot be navigated only with keyboard
115 - RangeViolation after dragging scrollbar up/down
116
1170.1.0:
118
119- TWindow
120 - "Smart placement" for new windows
121- ECMATerminal
122 - Mouse 1006 mode parsing
123
124Wishlist features (2.0):
125
126- TTerminal
127 - Handle resize events (pass to child process)
128 - xterm mouse handling
129- Screen
130 - Allow complex characters in putCharXY() and detect them in putStrXY().
131- TComboBox
132- TListBox
133- TSpinner
134- TCalendar widget
135- TColorPicker widget
136- Drag and drop
137 - TEditor
138 - TField
139 - TText
140 - TTerminal
141 - TComboBox
142
143
144Screenshots
145-----------
146