tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: Default keymappings for vt220 function keys
@ 2001-05-15 14:06 Chris Los
  0 siblings, 0 replies; only message in thread
From: Chris Los @ 2001-05-15 14:06 UTC (permalink / raw)
  To: tru64-unix-managers

Thanks to all who responded so quickly and provided great info on this
topic.

Here are my responses:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

From: Simon Stockman <simon_stockman@hotmail.com>

Hi,

There are several programs you can run which display the escape
sequences as 
you press the function keys.

Look for a program called 'xev'.

Failing that 'dxkeycaps' may help.

Another alternative is to run the 'xmodmap' command.
Try: xmodmap -pm -pk -pp
This should generate the escape codes for your current keyboard/VT.
Look in the 'man' pages for more help with 'xmodmap'.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

From:  "Senn, Bruce" <sennb@union.edu>

FWIW, you might try od.  Default input is from stdin, so what you type
in
should show up on stdout.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

From:  Jim Belonis <belonis@dirac.phys.washington.edu>
     
http://www.fastlane.net/~generic9/vt220.html

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

There are many web pages that discuss VT220 function keys
as well has how to load arbitrary escape sequences into them.

For example, http://www.faximum.com/support.d/095 
explains how to use vi to capture the escape codes.

I hope this helps.

Selden
======
Selden E. Ball, Jr.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

From: Joerg Bruehe <joerg@sql.de>

Use the "od" command on a "here document" in the shell:

od -c <<+
Now type the
keys and 
characters 
you want to see
+

The "+" after the input redirection is the character that will 
terminate the "here document" if it comes at the start of a line, 
you can choose any other char or word - 
a single "+" is nice for interactive use, in shell scripts the 
word "EOF" is quite common.

> Am wondering
> if there is a way to do this in vi possibly????

You might experiment with a "Ctrl-V" and then pressing the function 
key - I never tried.

> 
> I need this to set up telnet access to our business app which is heavily
> dependent
> on function keys.

Ensure it uses "libcurses" and set the "TERM" variable properly, 
this is the best way to solve these problems.

For our DBMS front ends, we wrote our own program that reads 
escape sequences and generates "terminfo" source files from them.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

From: Bob Vickers <bobv@cs.rhul.ac.uk>

You could try

stty raw
cat

Don't expect to be able to get back a normal session though because it
won't recognoise cntrl-D! You may have to kill xterm externally.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Original post:

Hello....I need to know the default keymappings for the function
keys on a vt220 terminal.  Is there
some way to display these values by logging on to
the unix host with a terminal emulator in vt220 mode and
just pressing each of the keys and have the host echo
back the escape sequence it received????  Am wondering
if there is a way to do this in vi possibly????


I need this to set up telnet access to our business app which is heavily
dependent
on function keys.


TIA
clos@trentu.ca

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-05-15 14:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-15 14:06 SUMMARY: Default keymappings for vt220 function keys Chris Los

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox