Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* VT220 User definable keys.
@ 1992-10-21  3:49 Keith Harwood
  1992-10-21 12:54 ` Steve McKinty - Sun ICNC
  1992-11-04 11:49 ` Yosef Branse
  0 siblings, 2 replies; 6+ messages in thread
From: Keith Harwood @ 1992-10-21  3:49 UTC (permalink / raw)


Could someone tell me how to set the user-definable-keys
on a VT220? All I have in the way of documentation is
the user's summary, which isn't very forth-coming. I've
tried doing what it says there, but nothing happens.
Could you give me an example command string which works,
say to set the F8 key to transmit the string FRED?

While you have the book open, could you tell me how to
set user definable characters? Just what is a sixel?
Perhaps, as an example, to set Ascii R to display an
upper case R.

I'd be very grateful. Thanks in advance.

Keith Harwood.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: VT220 User definable keys.
  1992-10-21  3:49 VT220 User definable keys Keith Harwood
@ 1992-10-21 12:54 ` Steve McKinty - Sun ICNC
  1992-10-21 19:00   ` Michael A. Thomas
  1992-10-21 21:05   ` Steve Wald
  1992-11-04 11:49 ` Yosef Branse
  1 sibling, 2 replies; 6+ messages in thread
From: Steve McKinty - Sun ICNC @ 1992-10-21 12:54 UTC (permalink / raw)


In article <1992Oct21.135832.15116@tpl68k0.tplrd.tpl.oz.au>, keithh@tplrd.tpl.oz.au (Keith Harwood) writes:
> Could someone tell me how to set the user-definable-keys
> on a VT220? All I have in the way of documentation is
> the user's summary, which isn't very forth-coming. I've
> tried doing what it says there, but nothing happens.
> Could you give me an example command string which works,
> say to set the F8 key to transmit the string FRED?

You can't set F8 alone to send a string, the user-defined string will
be sent when you press Shift-F8.

Sorry I don't have the actual book, so I can't answer the rest in detail.
Essentiall a sixel is a six-pixel group, chosen so that the pixel-defining
characters are always printable ASCII, and not control chars.

Steve

-- 
Steve McKinty
SUN Microsystems ICNC
38240 Meylan, France
email: smckinty@france.sun.com	   BIX: smckinty


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: VT220 User definable keys.
  1992-10-21 12:54 ` Steve McKinty - Sun ICNC
@ 1992-10-21 19:00   ` Michael A. Thomas
  1992-10-21 21:05   ` Steve Wald
  1 sibling, 0 replies; 6+ messages in thread
From: Michael A. Thomas @ 1992-10-21 19:00 UTC (permalink / raw)


In article <1c3juvINNdr5@grapevine.EBay.Sun.COM>, smckinty@sunicnc.France.Sun.COM (Steve McKinty - Sun ICNC) writes:
> In article <1992Oct21.135832.15116@tpl68k0.tplrd.tpl.oz.au>, keithh@tplrd.tpl.oz.au (Keith Harwood) writes:
> > Could someone tell me how to set the user-definable-keys
> > on a VT220? All I have in the way of documentation is
> > the user's summary, which isn't very forth-coming. I've
> > tried doing what it says there, but nothing happens.
> > Could you give me an example command string which works,
> > say to set the F8 key to transmit the string FRED?
> 
> You can't set F8 alone to send a string, the user-defined string will
> be sent when you press Shift-F8.

  Well I'm not certain of the vt220, but the vt330 has a setup
bit as which governs whether you need to use Shift or not.
-- 

		Michael Thomas	(mike@gordian.com)
	"I don't think Bambi Eyes will get you that flame thrower..."  
		-- Hobbes to Calvin
		USnail: 20361 Irvine Ave Santa Ana Heights, Ca,	92707-5637
		PaBell: (714) 850-0205 (714) 850-0533 (fax)


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: VT220 User definable keys.
  1992-10-21 12:54 ` Steve McKinty - Sun ICNC
  1992-10-21 19:00   ` Michael A. Thomas
@ 1992-10-21 21:05   ` Steve Wald
  1 sibling, 0 replies; 6+ messages in thread
From: Steve Wald @ 1992-10-21 21:05 UTC (permalink / raw)


In article <1c3juvINNdr5@grapevine.EBay.Sun.COM> smckinty@sunicnc.France.Sun.COM (Steve McKinty - Sun ICNC) writes:
>In article <1992Oct21.135832.15116@tpl68k0.tplrd.tpl.oz.au>, keithh@tplrd.tpl.oz.au (Keith Harwood) writes:
>> Could someone tell me how to set the user-definable-keys
>> on a VT220? All I have in the way of documentation is
>> the user's summary, which isn't very forth-coming. I've
>> tried doing what it says there, but nothing happens.
>> Could you give me an example command string which works,
>> say to set the F8 key to transmit the string FRED?
>
>You can't set F8 alone to send a string, the user-defined string will
>be sent when you press Shift-F8.

I wrote this file for the dxterm, but I'm pretty sure the escape
sequences are the same for your VT220.  If not, someone will correct me.

Put an actual ESC character between the quotes where it says 'set esc=""'
below... Edit the keys to do what you want... I called the file
setdxtermfeys and put it in my bin directory, to be called by .login
-------------------------------------------------
#!/bin/csh

# Escape key for sending DECUDK control strings
set esc=""

# Hex translations for within the key definitions
set A="41";set a="61"
set B="42";set b="62"
set C="43";set c="63"
set D="44";set d="64"
set E="45";set e="65"
set F="46";set f="66"
set G="47";set g="67"
set H="48";set h="68"
set I="49";set i="69"
set J="4a";set j="6a"
set K="4b";set k="6b"
set L="4c";set l="6c"
set M="4d";set m="6d"
set N="4e";set n="6e"
set O="4f";set o="6f"
set P="50";set p="70"
set Q="51";set q="71"
set R="52";set r="72"
set S="53";set s="73"
set T="54";set t="74"
set U="55";set u="75"
set V="56";set v="76"
set W="57";set w="77"
set X="58";set x="78"
set Y="59";set y="79"
set Z="5a";set z="7a"
set null="00"
set bell="07"
set bs="08"
set tab="09"
set vtab="0b"
set nl="0a"
set cr="0d"
set shiftout="0e"
set shiftin="0f"
set escape="1b"
set space="20"
set exclam="21"
set dquote="22"
set pound="23"
set dollar="24"
set percent="25"
set ampersand="26"
set squote="27"
set lparen="28"
set rparen="29"
set star="2a"
set plus="2b"
set comma="2c"
set minus="2d"
set period="2e"
set slash="2f"
set colon="3a"
set semicolon="3b"
set less="3c"
set equal="3d"
set greater="3e"
set question="3f"
set at="40"
set backslash="5c"
set lbracket="5b"
set rbracket="5d"
set carat="5e"
set underscore="5f"
set tick="60"
set pipe="7c"
set lbrace="7b"
set rbrace="7d"
set tilde="7e"
set delete="7f"
set n1="31";set n2="32";set n3="33";set n4="34";set n5="35"
set n6="36";set n7="37";set n8="38";set n9="39";set n0="30"

# Function key selector values
set F6="17"
set F7="18"
set F8="19"
set F9="20"
set F10="21"
set F11="23"
set F12="24"
set F13="25"
set F14="26"
set F17="31"
set F18="32"
set F19="33"
set F20="34"
set Help="28"
set Do="29"

# The following sequence redefines the UDKs on the LK201 keyboard for a dxterm:
#   NOTE: This defines only the SHIFTED Fkeys.

# First clear the old definitions:
echo -n $esc:x"P0;1|"$esc:x"\"

# Introduction sequence: no clear; no lock
echo -n $esc:x"P1;1|"

# Define F6-F10
echo -n $F6"/"$l$s$space$minus$a$l$F$g$cr
echo -n ";"$F10"/"$pipe$slash$u$s$r$slash$l$i$b$slash$s$e$n$d$m$a$i$l$space$minus$t$space$y$o$u$r$n$a$m$e$h$e$r$e$cr

# Define Special Keys
echo -n ";"$Help"/"$x$m$a$n$space$ampersand$cr
echo -n ";"$Do"/"$d$x$t$e$r$m$space$ampersand$cr

# Terminate the sequence
echo $esc:x"\"

-- 
Steve Wald, Motorola Inc.
wald@borg.sps.mot.com


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: VT220 User definable keys.
  1992-10-21  3:49 VT220 User definable keys Keith Harwood
  1992-10-21 12:54 ` Steve McKinty - Sun ICNC
@ 1992-11-04 11:49 ` Yosef Branse
  1992-11-05 18:48   ` Lee Havemann
  1 sibling, 1 reply; 6+ messages in thread
From: Yosef Branse @ 1992-11-04 11:49 UTC (permalink / raw)


In article <1992Oct21.135832.15116@tpl68k0.tplrd.tpl.oz.au>, 
keithh@tplrd.tpl.oz.au (Keith Harwood) writes:

> Could someone tell me how to set the user-definable-keys
> on a VT220?

I presume you mean the SHIFTed function keys. 

On our system, I have set up a scheme whereby each user can create an ASCII
file - bearing the same name as the specific 'username' -
defining the personalized function keys he wants on his terminal. 
Each key is defined in a standard format.

At login, a program runs automatically that reads in the user's file, 
breaks up the key definition letter by letter, and loads it into the terminal.

Anyone familiar with the EDT editor can call up their file at will, make
changes, add new function keys, etc., as required, and the revisions are
automatically loaded at the next login.

By the way: I have noticed that on our Visual terminals, the buffer is
large enough to accomodate a full range of CONTROL function keys, in addition
to the SHIFTed ones - thus giving us twice as many keys. This is not the case
on any other terminal of VT200 or above in use here (Digital, IIS, Zentec).

The program I wrote includes some site-specific code, so I don't want to 
insert it here. If anyone is interested, contact me and I will try to prepare
a trimmed-down version to send out.

--

****************************************************************************
* Yosef (Jody) Branse             University of Haifa Library              *
*                                 Mt. Carmel, Haifa 31905, Israel          *
*                                 Tel.: 972 4-240288                       *
*                                 FAX:  972 4-257753                       *
* Israeli U. DECNET: HAIFAL::JODY                                          *
* Internet/ILAN:     JODY@LIB.HAIFA.AC.IL                                  *
****************************************************************************


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: VT220 User definable keys.
  1992-11-04 11:49 ` Yosef Branse
@ 1992-11-05 18:48   ` Lee Havemann
  0 siblings, 0 replies; 6+ messages in thread
From: Lee Havemann @ 1992-11-05 18:48 UTC (permalink / raw)


In article <1992Nov4.134914.1@lib.haifa.ac.il>, jody@lib.haifa.ac.il (Yosef Branse) writes:
> In article <1992Oct21.135832.15116@tpl68k0.tplrd.tpl.oz.au>, 
> keithh@tplrd.tpl.oz.au (Keith Harwood) writes:
> 
> By the way: I have noticed that on our Visual terminals, the buffer is
> large enough to accomodate a full range of CONTROL function keys, in addition
> to the SHIFTed ones - thus giving us twice as many keys. This is not the case
> on any other terminal of VT200 or above in use here (Digital, IIS, Zentec).
> 

That's one of the reasons we started using the Wyse WY85 terminals - it has 
the capability of redefining the UNshifted finction keys as well as the 
shifted ones _and_ saving them in local ROM. Everyone here has customized 
their keyboards in one way or another...

-- 

 Lee Havemann, Sys_op       HSH Associates          (201) 838-3330 
 Internet: lee@hsh.com    Compuserve: 70410,3507    AOL: HSH Assoc
 "Any opinions expressed are not necessarily those of anyone else, 
  including myself."                     


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1992-11-05 18:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1992-10-21  3:49 VT220 User definable keys Keith Harwood
1992-10-21 12:54 ` Steve McKinty - Sun ICNC
1992-10-21 19:00   ` Michael A. Thomas
1992-10-21 21:05   ` Steve Wald
1992-11-04 11:49 ` Yosef Branse
1992-11-05 18:48   ` Lee Havemann

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