many fixes
[fanfix.git] / README.md
CommitLineData
7d4115a5
KL
1Jexer - Java Text User Interface library
2========================================
3
30bd4abd
KL
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.
7d4115a5 12
1ac2ccb1
KL
13Two backends are available:
14
30bd4abd
KL
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.
1ac2ccb1 20
30bd4abd
KL
21* Java AWT UI. This backend can be selected by setting
22 jexer.AWT=true. This is the default backend on Windows platforms.
bd8d51fa
KL
23 AWT is experimental, please consider filing bugs when you encounter
24 them. The default window size for AWT is 132x40, which is set in
25 jexer.session.AWTSession.
1ac2ccb1
KL
26
27A demo application showing the existing UI controls is available via
28'java -jar jexer.jar' or 'java -Djexer.AWT=true -jar jexer.jar' .
29
30
7d4115a5
KL
31
32License
33-------
34
30bd4abd 35This project is licensed LGPL ("GNU Lesser General Public License")
7d4115a5
KL
36version 3 or greater. See the file LICENSE for the full license text,
37which includes both the GPL v3 and the LGPL supplemental terms.
38
39
30bd4abd
KL
40
41Acknowledgements
42----------------
43
44Jexer makes use of the Terminus TrueType font [made available
45here](http://files.ax86.net/terminus-ttf/) .
46
47
48
7d4115a5
KL
49Usage
50-----
51
30bd4abd
KL
52Usage patterns are still being worked on, but in general the goal will
53be to build applications somewhat as follows:
7d4115a5
KL
54
55```Java
56import jexer.*;
57
58public class MyApplication extends TApplication {
59
60 public MyApplication() {
fca67db0 61 super();
7d4115a5 62
fca67db0
KL
63 // Create standard menus for File and Window
64 addFileMenu();
65 addWindowMenu();
7d4115a5
KL
66 }
67
68 public static void main(String [] args) {
fca67db0
KL
69 MyApplication app = new MyApplication();
70 app.run();
7d4115a5
KL
71 }
72}
73```
74
87a17f3c 75See the file demos/Demo1.java for detailed examples.
30bd4abd
KL
76
77
7d4115a5 78
92554d64
KL
79Known Issues / Arbitrary Decisions
80----------------------------------
81
82Some arbitrary design decisions had to be made when either the
83obviously expected behavior did not happen or when a specification was
84ambiguous. This section describes such issues.
85
bb35d919
KL
86 TTerminalWindow
87 ---------------
88
89 - TTerminalWindow will hang on input from the remote if the
90 TApplication is exited before closing the TTerminalWindow. This
91 is due to a Java limitation/interaction between blocking reads
92 (necessary to get UTF8 translation correct) and file streams.
92554d64 93
bd8d51fa
KL
94 - See jexer.tterminal.ECMA48 for more specifics of terminal
95 emulation limitations.
96
92554d64 97
7d4115a5
KL
98Roadmap
99-------
100
30d336cc 101Many tasks remain before calling this version 1.0:
7d4115a5 102
7d4115a5
KL
1030.0.2:
104
30bd4abd
KL
105- AWT:
106 - Blinking cursor
bd8d51fa 107 - Handle kbTab (disable focus traversal BS)
1ac2ccb1 108- ECMA48Backend running on socket
cc99cba8
KL
109- TTreeView
110- TDirectoryList
b1b355b8 111- TFileOpen
30bd4abd
KL
112- Decide on naming convention: getText, getValue, getLabel: one or all
113 of them?
7d4115a5
KL
114
1150.0.3:
116
cc99cba8 117- TEditor
cc99cba8
KL
118
1190.0.4:
120
b1b355b8
KL
121- Bugs
122 - TSubMenu keyboard mnemonic not working
a83fea2b 123 - Making TMenu keyboard accelerators active/inactive
cc99cba8
KL
124 - TDirectoryList cannot be navigated only with keyboard
125 - TTreeView cannot be navigated only with keyboard
126 - RangeViolation after dragging scrollbar up/down
9edb442b 127
cc99cba8 1280.1.0:
9edb442b 129
cc99cba8
KL
130- TWindow
131 - "Smart placement" for new windows
7d4115a5
KL
132- ECMATerminal
133 - Mouse 1006 mode parsing
7d4115a5
KL
134
135Wishlist features (2.0):
136
137- TTerminal
138 - Handle resize events (pass to child process)
139 - xterm mouse handling
7d4115a5
KL
140- Screen
141 - Allow complex characters in putCharXY() and detect them in putStrXY().
142- TComboBox
143- TListBox
144- TSpinner
145- TCalendar widget
146- TColorPicker widget
147- Drag and drop
148 - TEditor
149 - TField
150 - TText
151 - TTerminal
152 - TComboBox
92554d64
KL
153
154
155Screenshots
156-----------
157
bb35d919
KL
158![Several Windows Open Including A Terminal](/screenshots/screenshot1.png?raw=true "Several Windows Open Including A Terminal")
159