|
# Overview #
|
The Jext console behaves exactly
like any system console (or terminal). Thus, it can be used to browse disks, launch
applications, etc...
|
|
# Using the console #
|
To use the console, simply
click in it and type in your command, followed by ENTER to execute it. Jext
console provides many internal commands and variables (which generaly change according
to the current selected document) as well as special keys.
|
|
# Internal commands #
|
- help: Displays the console help summary.
This summary reminds you of the available internal commands and variables.
- clear: Clears the console screen.
- cd: Stands for change directory command. This command
is a little bit different from your OS one as it accepts both / and \ path separators
whatever your OS is. It also offers the use of the ~ character which stands for
your home directory. Type cd -help to get more information about it.
- exit: Exits Jext.
- home:
This command does a cd <jext home dir>.
- ls:
Un*x users already know this function. Windows users have to know that this function
is the equivalent of their dir command. The ls command accepts many flags, type
ls -help to get a description of each of them. Note that the command dir
can be substituted with the ls command.
- pwd:
Print working directory. This is useful when you choose a non-DOS prompt type (Linux
or Solaris type).
- file:filename:
Typing file:filename will open the file called filename. The path to this
file can be relative (i.e file:../infos.txt) or absolute (i.e file:/etc/.bashrc).
Note the path is built using the cd command.
- http://URL:
Opens a specified URL. Typing http://www.jext.com/index.html will for instance
open Jext (virtual ;-) web site welcome page in Jext.
- run:scriptname:
Runs the script scriptname. To get more informations about Jext internal
scripts, please see the Scripts section.
|
|
# Using variables #
|
If you insert an internal
variable in your command, the console will automatically expand it to its current
value before executing the command line. Imagine you've opened the file Hello.java
from directory /home/Gfx/java/hello and you want to compile it. Even if you use
the cd command to go in the directory /home/Gfx/java/hello, you won't be able to
compile the file. This is a Java limitation (usually done for portability concerns).
But you can do it using a variable. To compile the file, just type the command javac
$n/Hello.java. Then, to run the class Hello.class, type java -classpath $n
$e. Variables can be very useful in many other cases, to go into the file directory
for instance: cd $n or to delete the file: rm -f $f (Un*x users only).
|
|
# Internal variables #
|
- $j: Jext home directory.
- $h: User's home directory (/home/user under Un*x,
C:\Windows or C:\Windows\Profiles\User under Win32 environment).
- $d: Current directory.
- $f:
Current (selected document) file (designed by its absolute path. Ex: C:\Gfx\Login.rtf).
- $p: Current (selected document)
file name.
- $n: Current (selected
document) file name with no extension.
- $n:
Current (selected document) file directory.
|
|
# Console keys #
|
The console also provides
many keys to simplify and streamline its use. Here is a list of them:
|
- ESCAPE: Deletes the whole command line.
If you typed a long command line and then changed your mind, simply hit ESCAPE
to clear it and place your caret at the prompt.
- LEFT:
Moves caret to the left in the command line.
- RIGHT:
Moves caret to the right in the command line.
- UP:
Get previous typed command from the history (up to 25 commands in the history, the
history is saved from one session to the next).
- DOWN:
Get next typed command from the history.
- TAB:
Completes command if a match is found in the history. For example, if you already
typed the command ls -rind and if you only typed ls in the console,
then pressed TAB, the console will expand your command line to ls -rind.
- C+c: Copies selected text to the
clipboard.
- C+d: Kills (terminates)
current process. If you runned an app which seems to have crashed or which you need
to be terminated, press C+d. C+d used in favor of the standard C+c because
it is already used for copying selected text.
|
[ Previous |
Index | Next
]
|
by Romain Guy Last update: 05/05/2000
Generated by Gaïa v1.4
|