Redefining keys

Help
2006-01-19
2013-04-11
  • Nobody/Anonymous

    Hi, i need the use of '²' key but it is not recognized. Can i redefine a key in order to obtain same behaviour as if the '²' was pressed?
    (I don't know what command is executed when the '²' key is pressed...)

     
    • Marcus Meissner

      Marcus Meissner - 2006-01-20

      this is superscript-2 ?

      depending on your keyboard input codeset you
      could put this on a function key.

      0xB2 would be the code for latin1.
      0xc2 0xb2 would be the code in utf8.

      Ciao, Marcus

       
    • Nobody/Anonymous

      Thx Marcus. Hope it will work...

       
    • Nobody/Anonymous

      Hi Marcus, I've redefined the key as you suggest :
      I put CF1=0xb2 on my keyCodes.conf file (I set the Termnial.encoding option to ISO-8859-1 in applet.conf file) but it has no effect... (when supercript-2 is pressed, this should display a menu on screen)
      Any idea of how i can do?

       
      • Marcus Meissner

        Marcus Meissner - 2006-01-20

        try CF1=\178

        Ciao, Marcus

         
    • Nobody/Anonymous

      It still doesn't work : nothing happen when CTRl+F1 are pressed...

      I'll try to know what command is executed when 'superscript-2' is pressed. Is there any particular syntax to use when redefining a key behaviour with a command?

       
      • Marcus Meissner

        Marcus Meissner - 2006-01-21

        You can check by doing

        CF1=HELLO

        if function key definition works at all.

        Who gets the superscript-2 ? An application? Can it perhaps use simple ascii characters?
        Or a shell? then can you perhaps just send the commandline string?

        Ciao, Marcus

         

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks