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

Conference 7.286::atarist

Title:Atari ST, TT, & Falcon
Notice:Please read note 1.0 and its replies before posting!
Moderator:FUNYET::ANDERSON
Created:Mon Apr 04 1988
Last Modified:Tue May 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:1433
Total number of notes:10312

514.0. "UNITERM: LK201 keys e1..e6 ?" by BERN01::RUGGIERO () Wed Jun 21 1989 07:02

Intro: I know there is topic (note 297) that says in the title that it covers
defining keys in Uniterm, but people then started talking about pros and cons/
whack vs uniterm.  This is not what I want to discuss here! 

My question: Uniterm and the lk201 editing keys

as the atari kbd lacks some keys (editing keys e1..e6), I sometimes have
problems with applications that rely heavily on those keys (e.g. DECforms
is very much relying on the 'select' key. Always going to find the kp_period
key for selecting is very inconvenient).
for my purpose I edited the shift_f1 and shift_f2 keys to send the right
sequences for the next/prev-page command. Then I have bound the execution
of these two function keys to alt_del and alt_~ respectively. But now two 
function keys are 'lost'. And what about the other 4 editing keys? Only the
function keys f1 to f5 are really 'local' to the lk201 kbd, so only these 5
keys will never be used by any application on the vax.
Any other/better ideas of how to get the e1..e6 keys emulated?

Please sit down and brouse throgh your mind, it is an important problem to me!

thanks         ---markus---
T.RTitleUserPersonal
Name
DateLines
514.1^ or ALT (not sure which) of the F keysLEDDEV::WALLACEWed Jun 21 1989 12:476
    You can use/define the ^F1..^F10 keys (ie: control-function key)
    in uniterm. Since on the LK201 (VT220 et.al.) ^Fkeys are not
    implemented you can use these 10 function key sequences for anything
    you so desire.
    
    	Ray
514.2<alt>function_key already usedBERN01::RUGGIEROThu Jun 22 1989 05:3614
>    You can use/define the ^F1..^F10 keys (ie: control-function key)
>    in uniterm. Since on the LK201 (VT220 et.al.) ^Fkeys are not
>    implemented you can use these 10 function key sequences for anything
>    you so desire.


unfortunately this does not work. The 10 <alt>-function keys are internally
used by uniterm. 
I tried to reassign <alt><ret> to act as the select key, but the <ret> seems
to be hardcoded in uniterm - no luck!

Any other ideas/uniterm gurus around?

---markus---
514.3It's definitly ^Fkey not ALT-FkeyLEDDEV::WALLACEFri Jun 23 1989 14:5453
    Well I guess I'm going to have to give a detailed example...
    
    First, the following assumes you have a fairly recent version of Uniterm.
    V2.0E-009 is the latest version I know of, and is available on the net.
    However I believe the support of the feature I'm about to use is present
    in V2.0c as well.

    A brief description - From within Uniterm you can "bind" ST function keys
    to any abitrary string (including escape sequences). Uniterm allows each
    function key to generate (be bound to) three different strings, one for
    when the SHIFT key is held with the function key, one for when the CONTROL
    key is held with the function key, and one for just the plain old function
    key. These bindings can be saved by clicking on the appropriate item in
    the FILE menu. Then every time you run Uniterm it reads the saved
    information and binds the function keys accordingly. NOTE: This procedure
    is totaly different/seperate from running the keyboard editing program (I
    forget what it is called).

    Now for the example - Since I use the DO key a lot I will bind the escape
    sequence of the LK201's DO key to the ST's ^F10 (thats CONTROL-F10) key
    (which is in the same vicinity on the keyboard).

    1. Run Uniterm, It comes up in terminal mode
    2. Press the HELP key, This brings up the help screen and gives you access
      to the menu bar at the top of the screen.
    3. Move the mouse to the OTHER menu and click on the EDIT FUNCTION KEYS
       menu item. This will display a list of the function keys with dotted
       lines beside each one. Along the bottom of the screen are five
       "buttons", NORMAL, SHIFT, CONTROL, CANCEL, OK (actualy the last one may
       not be called OK, but something similiar).
    4. Click on the CONTROL button. Which should highlight.
    5. Click on the dotted line beside F10 in the function key list. This
      should move the text cursor to that line, alternativly you can use the
      down arrow key.
    6. Now you are going to type five (5) characters (or keystrokes), ^[
       (thats CONTROL-[) this is the escape character and will be displayed
       as an E over an S. The last four charcters are simply, [29~
    7. Click on the OK button (or resonable facsimile thereof). This puts you
       back to the help screen with access to the menu bar again.
    8. Move the mouse to the FILE menu and click on the SAVE KEYS menu item
       (here is another case where I am not sure of exactly what the menu item
       says, but you'll know it when you see it).

    Thats all there is to it. Now any time you need to hit the DO key you just
    hit ^F10 instead. It does NOT use the ALT-Function keys that Uniterm needs
    and it does NOT use any key sequences that are normaly available on the
    LK201.

    It is highly possible that I misunderstood what it was that you were
    looking for, if that is the case then I appollogize for putting you
    through all of this boring detail.

    	Ray
514.4where is that latest version?BERN01::RUGGIEROMon Jun 26 1989 04:3311
    I think we are talking about different things. I am using uniterm
    v2.0c. This version does NOT support 'controlled'-function keys.
    So I was not aware about that possibility. Can you tell me the location
    on the net where I can find the newest version? 
    Besides that I would still be nice to be able to (re)define also the
    atari editing keys (os is this also possible yet with that version
    I don't have?)
    
    Thanks for your replies
    
    ---markus---
514.5see note 9.63BOOTIS::CARPENTERGenius is second natureMon Jun 26 1989 10:001
    
514.6redefine "editing keys" using reassign macro commandLEDDEV::WALLACEMon Jun 26 1989 15:1627
    The attached is taken from the readme file for V2.0d, I have never
    used this feature so I don't know any more about it that what is
    said here.
    
    	Ray

         Nearly all the keys of the arrow key block can be reassigned
         with the 'reassign' macro command, the special codes for the
         keys are:

                <Shift> <ClrHome>    = -1;
                <Shift> <UpArrow>    = -2;
                <Shift> <DnArrow>    = -3;
                <Shift> <LeftArrow>  = -4;
                <Shift> <RightArrow> = -5;
                        <Insert>     = -6;
                <Shift> <Insert>     = -7;
                        <UnDo>       = -8;
                <Shift> <UnDo>       = -9;
                <Ctrl>  <UnDo>       = -10;
                        <Help>       = -11;
                <Shift> <Help>       = -12;
                <Ctrl>  <Help>       = -13;

         (BTW, I never documented this, but <ClrHome> sends ESC[H
          now everybody who wants to can assign <Help> to Scrolllock
          (ugh))