Helma Logo
main list history

Version 3 by hannes on 19. May 2009, 14:11

21The shell history is kept in a file called <code>.history</code> in the Helma NG home directory. To exit the shell <code>Ctrl-D</code> <code><Ctrl-D></code> or enter <code>quit()</code>.

Version 2 by hannes on 19. May 2009, 14:10

10You can enter and evaluate any JavaScript expression. You can scroll through your session history using the <Up> and <Down> keys, hitting <Tab> will try to auto-complete your current input. Use the <tt>include</tt>, <tt>require</tt>, or <tt>import</tt> functions to load any Helma NG modules:
11
12 helma> include('helma/file');
13 helma> var file = new File('README.txt');
14 helma> file.open();
15 true
16 helma> file.readln();
17 Helma NG
18 helma> file.close();
19 true
20

Version 1 by hannes on 19. May 2009, 14:04

1The Helma NG shell is great for interactive and explorative programming. To start it, either run <code>helma</code> without a script, or add the <code>-i</code> or <code>--interactive</code> switch before the script.
3The Helma shell uses *JLine|http://jline.sourceforge.net/* to provide a number of nice features, including:
4
5* Autocompletion for JavaScript and Java objects and methods
6* Input history using the up and down keys that persists between sessions
7* A readln() function with configurable prompt and echo characters
8* Multiline input for JS functions and object literals
9
10The shell history is kept in a file called <code>.history</code> in the Helma NG home directory. To exit the shell <code>Ctrl-D</code> or enter <code>quit()</code>.