USER GUIDE
Version 1.6
To mark a text, place the cursor at the upper left corner of the text. Press left mouse button down and drag the cursor. A box is show. When the left mouse button is released the marked text is copied to the paste buffer.
The contents of the paste buffer can be copied to the cursor position, either with right mouse button or from the menu (edit-paste).
If the name service is not running correct or the host does not response, some workstations can hang for a minute or more. Mocha Telnet can do nothing about it. It is not possible to cancel a started request in the current version of Java.
See chapter 5 for a description of how to use and define function keys
The most useful mode will in most cases be mode 2 (applet).
where
Mocha Telnet will pop up as a window frame, which can be moved and scaled on the page.
If the signed CAB file version is use, it is possible with IE 4/5 to overrule the security limitation.
Following syntax is used in this chapter:
# This is a comment line
name=value
Example of a simple file:
#Configuration file for Mocha telnet
color_cursor=#203048
keyboard_bar=true
keyfile=keys.new
The different types of names are given in chapter 4.3 - 4.24.
<HTML> <HEAD> <TITLE> Mocha Telnet example </TITLE> </HEAD> <BODY> <APPLET CODE="telnet.class" WIDTH=700 HEIGHT=500> <param name=host value="unix"> <param name=port value="23"> <param name=color_cursor value="#203047"> <param name=keyboard_bar value="true"> <param name=type value="applet"> <param name=script1 value="login:=guest"> <param name=script2 value="Password:=anonymous"> </APPLET> </BODY> </HTML>CODE parameter must always be "telnet.class". It is the name of the master file for the binary Mocha Telnet product. WIDTH and HEIGHT gives the size of the applet. If running in mode 3 as a pop-up window, state the WIDTH and HEIGHT to 1.
Just as for the configuration file in chapter 4.1, each parameter is build of a name and a value. In the example above parameter host is given value unix. It is very important to remember <> around each line, and the value must be surrounded with "".
Syntax:
Frame is a pop-up window.
Syntax:
Syntax:
Syntax:
Also only use the script option for login and password, as it cost a lot of cpu to scan all text from the host for a match.
Syntax:
Example:
Syntax:
Default is false.
Syntax:
Default is false.
Syntax:
Default is true.
Syntax:
Default is false, which means only <cr>.
Syntax:
Default is true.
Syntax:
Default is true.
Syntax:
where
The syntax is the same as used in the HTML language.
Example:
Syntax:
where
The syntax is the same as used in the HTML language.
Syntax:
where
The syntax is the same as used in the HTML language.
Syntax:
where
The syntax is the same as used in the HTML language.
Syntax:
where
The syntax is the same as used in the HTML language.
Syntax:
Default is 600 x 600.
Syntax:
Default is 100,75.
Syntax:
Default port is 23. The host name can either be a name or an internet address as 198.66.23.11
Syntax:
Default is true.
Syntax:
Default is vt220
SYNTAX:
Default is false
Either Mocha W32 Telnet can be configurated to use SOCKS Version 4 protocol, or it can be defined to send an ASCII connect sequence to the Proxy Telnet Server.
SYNTAX:
proxy_syntax defines how to format the connect sequence send to the proxy host.
Example:
Mocha Telnet will connect to myproxy port 911, and send the connect sequence: <LF>Connect wintermute:23<CR><LF>
It is also possible to enter the login sequence to the proxy host from the keyboard. Just define the value of proxy_syntax as "\015" or " ".
From version 1.7 of Mocha Telnet it is possible to use the SOCKS protocol.
Use parameters
proxy_socks=true
proxy_port=1080
If SOCKS protocol is used, Proxy Syntax can be left unused. Any text in this field is send as USERID in the SOCKS Connect request. Some proxy servers uses this field as identification, and Guest could be a possible entry.
As the use of a host name, which must use DNS to be resolved can give a security violation in the browser, it is a good idea to define the parameter host as a raw ip address, as 152.1.1.1.
SYNTAX:
Default is MOCHASOFT_TELNET
SYNTAX:
Default is Courier
The default configuration file is named "keys", and should exist in the same catalog as the *.class files of Mocha Telnet.
Syntax for file "keys":
Example of a "keys" file:
# VT220 keymap file # \033 = ESC UP \033[A DOWN \033[B RIGHT \033[C LEFT \033[D f1 \033[11~ f2 \033[12~ f3 \033[13~ # a comment ....remark none ASCII characters are written in octal as \xxx , where xxx is the octal value.
The comments (#) at end of the lines are not used by Mocha Telnet.
Key mapping Key mapping ----------------------- ---------------------------- f1 f1 crtl f1 f11 f2 f2 ctrl f2 f12 f3 f3 ctrl f3 f13 f4 f4 ctrl f4 f14 f5 f5 ctrl f5 f15 f6 f6 ctrl f6 f16 f7 f7 ctrl f7 f17 f8 f8 ctrl f8 f18 f9 f9 ctrl f9 f19 f10 f10 ctrl f10 f20 f11 f11 ctrl f11 f10 f12 f12 ctrl f12 f20 Key mapping Key mapping ----------------------- ---------------------------- shift f1 f1 crtl shift f1 pf1 shift f2 f2 ctrl shift f2 pf2 shift f3 f3 ctrl shift f3 pf3 shift f4 f4 ctrl shift f4 pf4 shift f5 f5 ctrl shift f5 f15 shift f6 f6 ctrl shift f6 f16 shift f7 f7 ctrl shift f7 f17 shift f8 f8 ctrl shift f8 f18 shift f9 f9 ctrl shift f9 f19 shift f10 f10 ctrl shift f10 f20 shift f11 f11 ctrl shift f11 f10 shift f12 f12 ctrl shift f12 f20
Remark shifted function keys sends the same codes as unshifted. It is up to the System Administrator to define a better use for these keys, as they are not part of a standard vt220 terminal.
Part of the auxiliary keypad can be used as:
key mapping key mapping -------------------------- ---------------------------- ctrl 1 (End) keypad 1 crtl shift f1 PF1 ctrl 2 (down) keypad 2 crtl shift f2 PF2 ctrl 3 (pgdn) keypad 3 crtl shift f3 PF3 ctrl 4 (left) keypad 4 crtl shift f4 PF4 ctrl 6 (right) keypad 6 ctrl 7 (home) keypad 7 ctrl 8 (up) keypad 8 ctrl 9 (pgup) keypad 9If other keys in the auxiliary keypad are needed, some function keys must be changed in the "keys" file.
Editing Keys:
key codes -------------- HOME CSI 1 ~ END CSI 2 ~ PGUP CSI 5 ~ PGDN CSI 6 ~Cursor Control Keys:
key normal application vt52 --------------------------------------- UP CSI A SS3 A ESC A DOWN CSI B SS3 B ESC B RIGHT CSI C SS3 C ESC C LEFT CSI D SS3 D ESC D
Auxiliary keypad keys
key normal vt52 ------------------------- 0 * SS3 p ESC?p 1 SS3 q ESC?q 2 SS3 r ESC?r 3 SS3 s ESC?s 4 SS3 t ESC?t 5 * SS3 u ESC?u 6 SS3 v ESC?v 7 SS3 w ESC?w 8 SS3 x ESC?x 9 SS3 y ESC?y - * SS3 m ESC?m , * SS3 l ESC?l . * SS3 n ESC?n enter* SS3 M ESC?M pf1 SS3 P ESC?P pf2 SS3 Q ESC?Q pf3 SS3 R ESC?R pf4 SS3 S ESC?S
(*) not implemented in Mocha Telnet, as the browser does not give access to the keys.
Function Keys
key codes key codes ------------------------- --------------------------------- F1 \033[11~ shift F1 \033[11~ F2 \033[12~ shift F2 \033[12~ F3 \033[13~ shift F3 \033[13~ F4 \033[14~ shift F4 \033[14~ F5 \033[15~ shift F5 \033[15~ F6 \033[17~ shift F6 \033[17~ F7 \033[18~ shift F7 \033[18~ F8 \033[19~ shift F8 \033[19~ F9 \033[20~ shift F9 \033[20~ F10 \033[21~ shift F10 \033[21~ F11 \033[23~ shift F11 \033[23~ F12 \033[24~ shift F12 \033[24~ F13 \033[25~ shift F13 \033[25~ F14 \033[26~ shift F14 \033[26~ F15 \033[28~ shift F15 \033[28~ F16 \033[29~ shift F16 \033[29~ F17 \033[31~ shift F17 \033[31~ F18 \033[32~ shift F18 \033[32~ F19 \033[33~ shift F19 \033[33~ F20 \033[34~ shift F20 \033[34~ key codes key codes --------------------------- ------------------------------ ctrl F1 \033[23~ ctrl shift F1 \217P ctrl F2 \033[24~ ctrl shift F2 \217Q ctrl F3 \033[25~ ctrl shift F3 \217R ctrl F4 \033[26~ ctrl shift F4 \217S ctrl F5 \033[28~ ctrl shift F5 \033[28~ ctrl F6 \033[29~ ctrl shift F6 \033[29~ ctrl F7 \033[31~ ctrl shift F7 \033[31~ ctrl F8 \033[32~ ctrl shift F8 \033[32~ ctrl F9 \033[33~ ctrl shift F9 \033[33~ ctrl F10 \033[34~ ctrl shift F10 \033[34~ ctrl F11 \033[21~ ctrl shift F11 \033[21~ ctrl F12 \033[34~ ctrl shift F12 \033[34~ ctrl F13 \033[34~ ctrl shift F13 \033[34~ ctrl F14 \033[34~ ctrl shift F14 \033[34~ ctrl F15 \033[34~ ctrl shift F15 \033[34~ ctrl F16 \033[34~ ctrl shift F16 \033[34~ ctrl F17 \033[34~ ctrl shift F17 \033[34~ ctrl F18 \033[34~ ctrl shift F18 \033[34~ ctrl F19 \033[34~ ctrl shift F19 \033[34~ ctrl F20 \033[34~ ctrl shift F20 \033[34~
If parameter "license_key" is not given, the program will run in Demo mode, and display a banner in the title line. There will be no limitations on functionality.