Re: QCTerm and Cobol in Unix
From: Chuck Dillon (spam_at_nimblegen.com)
Date: 01/21/05
- Previous message: Barry Margolin: "Re: How to know write end of FIFO has closed"
- Next in thread: Tim Haynes: "Re: QCTerm and Cobol in Unix"
- Reply: Tim Haynes: "Re: QCTerm and Cobol in Unix"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 21 Jan 2005 09:26:28 -0600
Jeff wrote:
> My company is currently using QCTerm as a unix emulator, when I try to
> run the anim command (animate command in MF Cobol) it works, but I am
> not able to use important function keys like F4 to monitor. If I press
> function keys the session just freezes and I have to do a hard reset
> from the QCTerm drop-down menus. Not sure hw much knowledge anyone here
> has in Unix Emulators or if I am posting in the right area. Anyway, any
> help would be appreciated it. It appears the function keys are clashing
> with the animator function keys.
>
For clarification, it doesn't emulate UNIX, it emulates a terminal that
a UNIX system supports. I suggest you consult the documentation and/or
ask the vendor who supports QCTerm about proper operation.
Generally, speaking you need to make sure that you have QCTerm set up
to emulate a terminal device that the UNIX you are connecting to
supports and that you have properly informed the UNIX session of what
it is emulating. The UNIX machine can't discover what's being emulated
on its own, you have to explicitly tell it by setting the TERM
environment variable properly. For example, if you have QCTerm set up
to emulate a VT100 terminal you need to set the environment variable
TERM to a string that declares that to be the case. Exactly what that
string is can vary but in our example setting TERM to "vt100" should
work...
sh,ksh,bash,zsh: export TERM=vt100
csh,tcsh: setenv TERM vt100
You can see what TERM is set to with the command: echo $TERM
Try looking at the terminfo manpage (man terminfo), on the UNIX box,
for information on how to find which TERM settings are supported. On
Solaris you look under /usr/share/lib/terminfo under linux it's
/usr/share/terminfo. You can get a human readable listing of the
capabilities supported by a terminfo entry with the command:
infocmp -L <entry name>
example:
infocmp -L vt100
Summary... If you need QCTerm to emulate a vt100 (for example)
a) In the emulator window enter:
echo $TERM
To see what your login shell has set the terminal type to.
b) Search the terminfo "database" (e.g. /usr/share/lib/terminfo) for
files with a name containing "vt100" or "VT100"...
find /usr/share/lib/terminfo -type f | grep -i vt100
b) Through trial and error, try them and see if they solve your
problem. Use infocmp as described above to see which support the
features in question (e.g. function keys).
This site might be of help: http://www.wrkgrp.com/support/Curses.html
Also, note that QCTerm also has to properly understand the keyboard and
display of your desktop machine. There may be settings required on
that side to properly map the function keys through to the UNIX side.
Again, QCTerm documentation and vendor support is the place to go for
help there. Google might help as well.
HTH,
-- ced
-- Chuck Dillon Senior Software Engineer NimbleGen Systems Inc.
- Previous message: Barry Margolin: "Re: How to know write end of FIFO has closed"
- Next in thread: Tim Haynes: "Re: QCTerm and Cobol in Unix"
- Reply: Tim Haynes: "Re: QCTerm and Cobol in Unix"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|