Have a Question?
Print

00113: EKB and loading edit keys with a DOS BBx

Title:

EKB and loading edit keys with a DOS BBx

Description:

When you have the EKB mode in the terminal’s alias line in the config.bbx file, 

Alias T0 /dev/con doscon DMA,EKB 

you can differentiate between the editing keys (directional arrows, page up and down, home and end, etc.) that are stand-alone as opposed to the editing keys that are on the numeric keypad. Once the EKB mode has been put in the alias line, the keypad editing keys will return different values than the stand-alone editing keys. These values are listed in the User’s Reference Guide in the Loading Terminal Function Keys section. More to the point, the stand-alone editing keys have a corresponding key number to the numeric keypad editing keys, but are offset by 20. 

The following example will load the left arrow on the keypad with the text ‘KEYPAD’ and the left arrow on the stand-alone editing keys with the text ‘STAND-ALONE’. 

10 print ‘el’+”2″+chr(0)+$06$+”KEYPAD” 
20 print ‘el’+”2″+chr(20)+$0B$+”STAND-ALONE” 

Here’s a breakdown of what’s being done: 

‘el’ – this tells BBx that we are about to load an editing key 

“2” – this tells BBx that we are going to load an editing key so that it will transmit a character string 

chr(0) – this is the left arrow on the numeric keypad, as defined in the manual 

$06$ – the length, in hex, of the character string that we will load the editing key with 

“KEYPAD” – the text that will be transmitted when the editing key is pressed 

‘el’ – this tells BBx that we are about to load an editing key 

“2” – this tells BBx that we are going to load an editing key so that it will transmit a character string 

chr(20) – this is the left arrow on the editing keypad, as defined in the manual 

$0B$ – the length, in hex, of the character string that we will load the editing key with “STAND-ALONE” – the text that will be transmitted when the editing key is pressed 



Last Modified: 12/19/1997 Product: PRO/5 Operating System: MS Dos

BASIS structures five components of their technology into the BBx Generations.

Table of Contents
Scroll to Top