[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference hydra::amiga_v1

Title:AMIGA NOTES
Notice:Join us in the *NEW* conference - HYDRA::AMIGA_V2
Moderator:HYDRA::MOORE
Created:Sat Apr 26 1986
Last Modified:Wed Feb 05 1992
Last Successful Update:Fri Jun 06 1997
Number of topics:5378
Total number of notes:38326

1597.0. "VMS package doesn't like Amy arrows" by MEIS::ZIMMERMAN (Walt sent me) Tue Aug 16 1988 01:50

    I've been using my A500 as a terminal, and everything works great 
    except for one little thing -

    Our group uses a home-grown forms package layered on SMG.  When I run
    the package from home on the Amiga, the arrow keys aren't recognized.
    I get an "invalid character" message.  I can work around the problem
    by keying in the arrow sequences (<esc> [ A, etc) a character at a
    time - the package likes that. 

    I'm using Mike Leibow's Smokey emulator and haven't had any other
    problems.  This forms package is the only piece of VMS software I've
    come across that won't accept the arrow keys. 

    Any thoughts as to what might be happening here?

    - Cliff
T.RTitleUserPersonal
Name
DateLines
1597.18-bit CSI problem?SAUTER::SAUTERJohn SauterTue Aug 16 1988 11:563
    Just a guess: does Smokey send a real CSI rather than the 7-bit
    "ESC [", and does SMG fail to understand CSI?
        John Sauter
1597.2VIDEO::LEIBOWMichael LeibowTue Aug 16 1988 14:303
    Smokey is dumb and always sends 7 bit sequences.
    
    
1597.3Another applicationMQFSV2::DESROSIERSTout est possible Tue Aug 16 1988 16:197
    I have a utility called SWING that allows one to "swing" from one
    directory to the next without having to set def [.etc] and using
    smokey, the arrows are not recognised, even though VMS treats the
    arrows correctly.  Why, I dunno, must be application dependant.
    
    Jean
    
1597.4how to add c1 transmission code to my emulatorVIDEO::LEIBOWMichael LeibowTue Aug 16 1988 17:0430
    If somebody wants to fix the keyboard so it sends 8 bit sequences
    it shouldn't take too long.
    
    Need to add:
    	In the routine that processes escape sequences, add code to
    recognize ESC SP F where ESC is 27 decimal, SP is 32 decimal and
    F is 70 decimal.  That sequence should put the terminal in 7 bit
    transmission mode.  ESC SP G should put the terminal in 8 bit
    transmission mode.
    
    Need to modify:
    	The routine that sets the terminal level  CSI Ps1; Ps2 " p
    should look at Ps2 if Ps1 is greater than 61.  Ps2 will be a
    0 (default) or a 2 to put the terminal in 8 bit transmission mode.
    Ps2 will be a 1 if the terminal should be put in 7 bit transmission
    mode.
    	The routine toasc() should be modified to look for sequences
    that start with ESC [.  The ESC [ pair of characters is correct
    in 7 bit mode.  In 8 bit mode, it should be a CSI or 155 decimal.
    
    	if (c1trmode == 7) sendstring("\033[")
    	else sendchar("\233");
    
    would be appropriate code.
    
    If I had the time to get the sources from someone, edit the sources,
    recompile, test, and upload, I would do this myself.  But I have
    already wasted more time than I have writing this note.
    
    	--Mike
1597.5Here's the reasonMEIS::ZIMMERMANWalt sent meFri Aug 26 1988 03:4611
    The reason seems to be that certain applications don't accept ESC O
    as an introducer for an arrow key sequence.  My VT200.INIT file sets
    cursor key mode, which tells Smokey to send ESC O sequences for the
    arrows instead of ESC [ sequences (ie, the 7-bit equivalents of SS3
    instead of CSI).  But SMG doesn't recognize ESC O.
    
    The solution is simply to reset cursor key mode by toggling the
    AppCur entry in the Keyboard menu or by changing the APPCUR line in
    your init file. 
    
    - Cliff