home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 3 Comm
/
03-Comm.zip
/
XKOKER.ZIP
/
CKOPM.DOC
< prev
next >
Wrap
Text File
|
1990-04-18
|
12KB
|
225 lines
Suppliment to the OS/2 Kermit manual.
C-Kermit for the OS/2 Presentation Manager
Files
The latest version of C-kermit for PM consists of two files. The
Kermit executable and a .DLL file. The .DLL file is not a dynamic
link library as the extension might suggest. Rather it is a font
file. This file sould be placed in a place referenced by the
config.sys "libpath" parameter. The executable should be place
somewhere in "PATH", or added to the program list.
Due to an idiosyncracy in the PM font loading procedure "libpath"
is only used to search for the font file if no pathname and extension
are supplied. In this case the supplied extension is .DLL, not .FON
as would seem sensible. Using a .FON extension causes the font not to
be loaded.
The .DLL file contains a custom font used in displaying Tektronix
graphics text. It is much smaller than the usual system font to make
it legible even when a smaller than full screen window is used. The
normal sized system font characters tend to overlap. The Tektronix
font was designed to be legible on a VGA screen, the spacings etc.
still may not be correct on lower resolution devices. (Anyone caring
to submit a font for use with lower resolution devices should send
the .FNT file to <ARMSTRONG@E11.PHY.BNL.GOV> - if anyone knows how to
make a vector font file please let me know). A vector font is not
used as character drawing is EXTREMELY slow and to date I have not
managed to plot to a PM window from a non-queue thread (if anyone
knows how.....).
Since the original "kernel" mode OS/2 Kermit a number of new
features have been added to the generic C-Kermit. These include
macros and a take file command language similar to that of MS-DOS
Kermit. These features will not be described in this suppliment.
Some new commands specific to OS/2 Kermit are the "SET TERMINAL
TYPE" command and a number of "SET FLOW" commands. The syntax for
these is shown below.
New Commands
SET TERMINAL TYPE VT100 - VT100 emulation
TEK4014 - Tektronix emulation
SET FLOW ODSR ON - Turn output DSR handshake ON
OFF - Turn output DSR handshake OFF
SET FLOW IDSR ON - Turn input DSR handshake ON
OFF - Turn input DSR handshake OFF
SET FLOW OCTS ON - Turn output CTS handshake ON
OFF - Turn output CTS handshake OFF
(These commands correspond to the MODE ODSR, IDSR and OCTS
options)
A number of commands have been implimented as menu items. At present
there are more menu items displayed than implimented. The
"Terminal.." and "Communications..." menu items are implimented. All
of the "Log" menu items are implimented and the "Copy", "Paste",
"Append" and "Copy and Paste" items in the "Edit" menu are
implimented.
"Terminal..."
This displays a dialog which allows various terminal emulation
characteristics to be modified. This can be done at any time, i.e.
in "Command line" mode, during "Connect" mode or during file
transfer. Non of the terminal dialog parameters should affect file
transfer. The "Tektronix plot file format" refers to a dump file
which is made while receiveing Tektronix graphics commands. At
present only the HPGL format is supported. The dump file can be sent
to a printer using the Shift-PrintScreen key combination. This
simply spawns a "PRINT" command, so it'll only do what "PRINT" does
at the command line. This happens to work for me, with 1.2 S.E., and
an HP Laserjet with Plotter-in-a-Cartridge. Tektronix output can be
produced by logging the terminal session, editting out the garbage
and printing the session log. Selecting the WordPerfect or Tektronix
file format will prevent the dump file from being made.
"Communications..."
This displays a dialog which allows various communications line
parameters to be modified. This can be done at any time, i.e.
in "Command line" mode, during "Connect" mode or during file
transfer.
***** NOTE this will affect file transfer at present so must be *****
***** used with caution. *****
The "Flow Control" options refer to the standard C-Kermit flow
control options. The ODSR, IDSR and OCTS options are referred to as
"Handshake" as this is how the OS/2 manual refers to them.
"Log"
The "Log" menu items are fairly obvious. I've no idea whether there
is a convention for the various log extensions. The ones shown are
the ones I use. Eventually there will be a listbox in the log dialog
which will show files with the extensions shown - with the option to
change it. I will be using a similar dialog to run "Take files"
eventually, these will have the default extension ".KER".
"Remote" and "Transfer" not implimented yet.
"Edit"
An area of the text screen i.e. the command line/VT100 window can be
selected by positioning the mouse over the start of the region,
pressing button 1 (usually the left button) and moving the mouse
cursor to the end of the block. The selected region will be
highlighted. Only the visible region can be selected. The selected
region can then be copied to the "clipboard" by selecting one of the
"Edit" menu items. Text in the clipboard can be transferred into
Kermit by selecting the "Paste" item. The function of the "Edit"
copy items are;
"Copy" Clears any text present in the clipboard and copies
the selected region into the clipboard.
"Append" Does not delete text already in the clipboard. The
selected region is copied into the clipboard after any
text already present.
"Paste" Enters any text in the clipboard into Kermit as if it
had been entered from the keyboard. Carriage returns
are sent but not linefeeds (these cause problems with
Vax VMS editors!). At low line speeds pasteing large
block of text can cause the error message "Keyboard
buffer not being emptied" to be displayed - at which
point the keyboard buffer starts to empty. This is
because of a bug in the way the semaphore system works,
I think. Anyway text does not seem to be lost.
NOTE There is no attempt made to truncate lines, at
present. Lines longer than 80 can lead to problems with
certain operating systems. If pasting from the 1.2
System Editor ensure that the WordWrap mode was OFF
before copying. In WordWrap mode the System Editor
does not insert CRs or LFs at what appear to be the end
of lines. This has caused me many problems. It is not
a bug in the Kermit routines.
"Copy and Paste"
Performs a "Copy" immediately followed by a "Paste"
"Print graphics"
In theory this should use the PM device independant
mechanism for printing, i.e. using whatever printer is
defined for the default spooler. With my system alot of
disc activity takes place and the print job appears in
the Print Manager queue, however it never gets printed
out. I don't know why. All the things described in the
reference manual are done, and do not return errors, but
still the job wont print. With my system this is not
just a problem specific to kermit. Trying to print from
the help screens generally causes the Print Manager to
crash and vanish - it can only be restarted by restarting
the system. The Kermit symptoms are not as severe. If
anyone tries this option and it works PLEASE let me
know!!
"Meta graphics"
In theory this should produce a disk metafile of the
Tektronix screen, suitable for reading into the PIC
programs supplied with 1.2 S.E. However this routine
fails at the first hurdle, i.e. it fails to open the
metafile device context. Since the PIC programs seem to
crash when they are asked to do anything I suspect that
the metafile system is still not ready for use!
Miscellaneous
Undocumented features....
The marking system sometimes leaves highlighted sections
floating around.
No official means of aborting transfer, or a hung connection.
A hung connection can be broken by selecting the
"Communications..." menu item and clicking on "Enter" having
selected a different port. This closes the current port and
tries to connect to the new port.
DO NOT USE the "!" command to invoke the OS/2 1.2 command
interpreter i.e "! CMD". This causes a horrible bleeping
sound which does not go away until the system is rebooted.
Using the "!" command seems to work okay for other kernel
mode commands e.g. "! dir", "! mode" etc.. I've no idea why
this happens. If anyone out there is still running v1.1
perhaps they could see if it happens for them too.
Special keys.
The VT100 keypad is emulated by the PC numeric keypad as one
might expect. The exceptions to this are PF1 and VT100
comma. There is no equivalent to the comma and PF1 would be
the NumLock key. I have experimented with using the NumLock
key but have found no way of controlling the NumLock state
from with in PM. It is possible in kernel mode to turn
NumLock on and off (as shown by the NumLock light). The
closest to success under PM is to do it once, thereafter
keyboard input to ALL PM programs is disabled! So PF1 maps
to F2 and comma to F3. F1 is used for help. It doesn't even
generate a normal PM character press message.
VT100 numeric keypad PC Key
PF1 F2
PF2 Keypad /
PF3 Keypad *
PF4 Keypad -
1 1
2 2
3 3
4 4
5 5
6 6
7 7
8 8
9 9
0 0
- Keypad +
, F3
. Keypad .
Enter Enter
With NumLock ON the numric keys generate the numeric
characters displayed on them.
Shift-PrintScreen Send the Tektronix dump file to the
printer.
PrintScreen Send a dump of the VT100 screen to the
printer.
Chris Armstrong 16-Apr-90