type longfile.txt | more
Advanced Mode works by “polling” the contents of a console window screen buffer and
sending across any changes since the last “poll”. For this reason, Advanced Mode is
somewhat CPU intensive. Also, this mode is rather data intensive because it frequently
redraws your screen. The data intensity is normally only a problem for remote users with
a slow modem link.
10.4.1.2
Simple Mode
Simple Mode has very low overhead. It allows you to use most console-mode programs
that read from standard input and write to standard output.
Limited command line editing is available in Simple Mode:
, ^U
Erase the current line.
^H, ^?
Erase the last character typed.
^C
Interrupt Process (as in CMD.EXE).
^S
Suspend Output (as in CMD.EXE).
^Z
Send End Of File (as in CMD.EXE).
Simple Mode is well suited for use with custom software. See the
Programming
Considerations
section for details.
10.4.2 User Environment
1. When users logon, they will receive their normal user environment and other profile
settings
Additionally, the Ataman TCP Remote Logon Services automatically set the following
environment variables:
HOME
The path name of the ATRLS-defined home directory of the
user. If the user’s home directory is listed as a local path name,
the environment variables HOMEDRIVE and HOMEPATH will
also be set as in a normal Windows logon.
REMOTEADDRESSS The IP address of the remote host that made this connection.
TERM
When in Simple Mode, the value passed by your client program
is put into the TERM environment variable. Advanced Mode
works best with programs that use the native Win32 Console
API instead of terminal escape sequences. For this reason the
TERM variable is not set in Advanced Mode.
EMULATION
Set in Advanced Mode to the terminal type selected at logon.
BELL_CHARACTER
Set in Advanced Mode, but only if you have a bell character
defined. See
Sending Bells in Advanced Mode
for details.
22
10.4.3 Sending Special Keys – (Advanced Mode Only).
The rlogin and telnet protocols are defined using only the ASCII character set. However,
many DOS, OS/2 and Windows applications expect the availability of keys defined
outside the ASCII set. Unfortunately, there is no ANSI specification for special keys. In
place of such a standard, the following sequences were adopted. Ataman hopes they are
reasonably easy to generate manually and to remember.
Check the documentation that came with your client rlogin or telnet program. Many such
programs contain the ability to create keymaps.
Character Sequence Typed Special Character Generated
^A^A
^A
^Aa
The next character sent will be sent as an “Alt” character.
Example: to send Alt-F1, type: ^A^a^A1.
*
This sequence
may be combined with the Ctrl and Shift sequences. If you
need to simulate the press and immediate release of the Alt
key, see the sequence ^Az below.
^Az
Simulate the pressing and immediate release of the Alt
key. This sequence is needed in many CUA-compliant
programs to activate the program's menu bar.
^Ac
The next character sent will be sent as a control character.
Example: to send Ctrl-F1, type: ^A^c^A1.
*
This
sequence may be combined with the Alt and Shift
sequences.
^As
The next character sent will be sent shifted. Example: to
send Shift-F1, type: ^A^s^A1.
*
This sequence may be
combined with the Alt and Ctrl sequences.
^A^R
Causes the screen to be redrawn.
For applications that work in line input mode (for example
the Command Prompt itself) ^R alone works too.
^Au
Up Arrow
^Ad
Down Arrow
^Al
Left Arrow
^Ar
Right Arrow
^Ai
Insert
^Ax
Delete
^Ah
Home
*
Due to the many different ways DOS programs handle special keys, Windows is not
always able to
send the Alt, Ctrl, and Shift modifiers in the manner the program expects.
Experimentation with an application on files containing non-critical data is the only way
we have found to know whether or not these keys can be reliably sent.
23
^Ae
End
^Ap
PageUp (Previous)
^An
PageDown (Next)
^A1
F1
^A2
F2
^A3
F3
^A4
F4
^A5
F5
^A6
F6
^A7
F7
^A8
F8
^A9
F9
^A0
F10
^A-
F11
^A=
F12
For the convenience of users that have VT100/VT102/VT220/VT320/VT420 emulators,
we also support the limited subset of keys that the emulators provide. In the table below
can be [ or \x9a and can be O or \x8f.
VT Key
PC Key
ANSI Escape Sequence
Expected
A
B
C
D
1~
2~
3~
24