Using "Window" (Super_L) key as escape in GNU Screen

I've been trying to map the Windows key (to the left of the space bar) to be the escape key in GNU Screen (as opposed to ^A) with no luck. xev gives me that it generates keycode 133 and its keysym is "Super_L" so its definitely recognized by the system, but I don't know what I can write in my .screenrc to be able to use it as an escape key. I've tried googling how to do it, but the solution another person found didn't work for me (use xmodmap to map keycode 133 to something else - like F13, and then get the literal value in vim by pressing ctrl+v and the key (it generated ^[[3~ or something similar) and then putting that in the .screenrc file).
Has anyone else solved this?

I believe you can use the xmodmap method, although it may cause you some problems.  Try this:
$ xmodmap -e "keycode 133 = F19"
then put the following line in your .screenrc:
bindkey -k F9 command
Note the difference between using 'F19' for xmodmap and using 'F9' in the bindkey command.  This is due to bindkey using the termcap database for specifing keys.  The main problem here, as far as I can tell, is that the termcap database doesn't have any notion of the "Super_L" or "Super_R" keys, thus you have to do this strange xmodmap assignment of keycode 133 to some key that bindkey can recognize.  This will work even if your keyboard doesn't have an F19 key as my example shows.  Of course, you don't have to use function key F19; you can use any key on your keyboard.  The important thing to remember is that the bindkey command in your .screenrc file uses the termcap database (see man termcap) to determine what key to use, and the xmodmap command uses some other mechanism. You have to understand how to specify the keys for each case.
Other possibilities:
xmodmap -e "keycode 133 =  F1"  <==>  bindkey -k k1 command
xmodmap -e "keycode 133 =  F2"  <==>  bindkey -k k2 command
xmodmap -e "keycode 133 =  F3"  <==>  bindkey -k k3 command
xmodmap -e "keycode 133 =  F9"  <==>  bindkey -k k9 command
xmodmap -e "keycode 133 = F10"  <==>  bindkey -k k; command
xmodmap -e "keycode 133 = F11"  <==>  bindkey -k F1 command
etc.
This could cause a problem if some other application you use (like your window manager or desktop environment) uses 'Super_L' for something.  I really don't understand exactly how all this works so I don't know how you could fix a conflict like that.
Finally, when you remap 'keycode 133' to some other key, then pressing that key will now generate some character. Pressing the windows key when not in screen, at least on my system, caused a '~' to be printed.  I don't know how you would get rid of this.

Similar Messages

  • Using Windows product key

    QuestionCan I use the product key on the bottom of my computer to activate Windows?
    AnswerAcer’s OEM version of Windows does not require a product key to activate. This means if you are using recovery disks you created on your system, or disks you ordered from Acer, Windows will automatically activate without the need for a product key. The product key on the bottom of the notebook is an OEM product key.  This product key does not work for activating retail versions of the operating system.  
    If you did not make or are no longer able to obtain recovery media, you would need to purchase an operating system of your choice for installation.
    For instructions installing a non-OEM operating system, please review this article:
    Installing a different Operating System

    Mistä voin tilata asennus USB tai tiedoston?

  • GNU Screen mouse scrolling shows only empty lines

    Hi,
    I've got a problem with using my mouse wheel to scroll in GNU Screen.
    This is the content of my .screenrc:
    defscrollback 10000
    hardstatus off
    termcapinfo xterm* ti@:te@
    altscreen on
    With this settings, It kinda works: I can scroll up, but instead of showing the previous output, I just shows blank lines.
    I can actually scroll up by entering Screen's copy mode using CTRL-A ESC and then using the Arrow-keys or PageUp.
    Furthermore, if I then scroll with my mouse wheel, I can also scroll the lines that were displayed in copy mode, but if I try to scroll further than I scrolled in copy mode, I still see blank lines.
    Thanks in advance!

    hume's doona wrote:
    Are you configuring for the nvidia card?
    #sudo nvidia-settings
    and set it to twin view in the gui?
    No I think the problem is more basic than that...he's trying to use an ATi card and an Nvidia card simultaneously.  Something that I don't think will work.
    It also dependent on what drivers he is trying to use, as the (new) Nvidia proprietary driver only supports GeForce4 series chips and up...and the OP has an even older card than that.  The legacy Nvidia-96.xx driver does support his chipset, but 96.xx does not work with Xorg1.8 last I knew. see: http://www.archlinux.org/news/502/
    Twinview does not exist in the Nouveau drivers, so one has to use xrandr: http://wiki.archlinux.org/index.php/Nouveau
    Last edited by Skripka (2010-08-14 14:16:25)

  • HT4796 I'm transfering info from my old pc to my new macbook pro, using Windows Migration Assistant. All was fine but has now lost connection (wifi) and won't reconnect. Mac is showing transfer window and I cant escape, I'm new to mac.

    I'm transfering info from my old pc to my new macbook pro, using Windows Migration Assistant. All was fine but has now lost connection (wifi) and won't reconnect. Mac is showing transfer window and I cant escape, I'm new to mac

    You'll need to erase the drive by booting up holding command-option-r keys into your Recovery Volume.
    Use Disk Utility to erase the disk and then Internet Recovery. That will take a while.
    http://support.apple.com/kb/HT4718

  • How do I delete Windows 7 from Paralells so that I can use the Product Key on a different computer?

    I bought Windows 7 to install on my Mac via Paralells. When I wasn't home, my brother took it and installed it on his computer. Now, I was able to install Windows 7 on my computer but I cannot activate it, since I can only use the Product Key for one computer. How can I get the Product Key deactivated so that I can use it on my computer?

    Please post Parallels related questions on the Parallels forums.  Apple Communities only provide support for Apple products:
    http://forums.parallels.com

  • I have cs3 and can't get to work on 8.1 windows.  Can I download a trial of Fireworks and use my product key for full activation?

    I use only Photoshop and Fireworks from my CS3 cd.  It is not compatible with 8.1 windows.  Can I download a trial of Fireworks from the Adobe site and activate by using my product key from the original cd's?  I have looked for patches and to no avail.  Please help me with this as I need for making prints of my oil paintings.

    I rarely use Fireworks for printing, but rather to render or perfect my images.  I have used Fireworks for about 17 years and just feel comfortable with it.  I use Photoshop as well, and see the simularities.  I see the handwriting on the wall with Fireworks maybe going to greener pastures, but still feel comfortable with it.  I received my original Macromedia cd from my Son as a gift and another gift years later.  I am launching a new art form, "Conceptual Art" on my site, and require Fireworks.  Maybe its time to cross over to Photoshop, I'll see.  Thank you for your answer and your time. http://www.baywoodgallery.com/

  • Firefox is placing a cursor in the html window of pages that cannot be edited messing up the scroll option using the arrow keys

    Whenever I click in a window pane to scroll using my arrow keys it is placing a cursor in the window and scrolling off of it, instead of scrolling the entire page by using the arrow key it is scrolling by the cursor location inside of the window like a word document.

    Hit '''F7''' to turn off caret browsing.
    http://kb.mozillazine.org/Accessibility.browsewithcaret

  • When my most front window is a safari one and I use the shortcut key "Command N", it opens a new finder window and a new safari window at the same time. Why does it happen?

    When my most front window is a safari one and I use the shortcut key "Command N", it opens a new finder window and a new safari window at the same time. Why does it happen?

    I just found the solution!
    Niel
    Re: Why is my Finder window popping up when I open my Safari window? 
    Jan 20, 2008 7:58 PM (in response to alak)
    Open the General tab of the Safari preferences and correct the home page; the default page is this one. If it has become set to a folder on an FTP server or a local drive, that request will be sent to the Finder. (28252) 
    iMac Late 2007 Core 2 Duo, Mac OS X (10.5.1)

  • I'am using iphone 5 i tried to update the ios 8.0.2 using the shift key in itunes update @ windows 8 i have the file which i downloaded, but it says that firmware version is not compatible. what can i do for it . help me friends

    i'am using iphone 5, i tried to update the ios 8.0.2 using the shift key in itunes update @ windows 8 i have the file which i downloaded, but it says that firmware version is not compatible. what can i do for it . help me friends

    Hello vinoth1986,
    After reviewing your post, I have located an article that can help in this situation. It contains a number of troubleshooting steps and helpful advice concerning update issues:
    If you can't update or restore your iPhone, iPad, or iPod touch
    Thank you for contributing to Apple Support Communities.
    Cheers,
    BobbyD

  • Re: using windows 7 in two Macs  I have a Mac book Pro with parallels and windows 7 installed but I left my windows 7 dvd in Dubai and I am in NY. If I want to migrate windows 7 to my I mac, will I need the code or key to enter?

    I have two Macs and one windows but I left the disk along with the key code in Dubai. If I want to use windows 7 on bootcamp on my other mac, and do a migrate, will I have to use the key code at some point?
    if do do I have to buy a new windows 7?

    There is no system like Acronis for the Mac platform. You can try using the buiilt in Disk Utility to create an Image of the complete Mac drive but I have found that this does not work very well as on tryiing to restore it gives errors sometimes.
    You can use SuperDuper or Carbon Copy Cloner to create a bootable Clone of your system partition. But that is only for the System partition and not the complete drive.
    If you use Boot Camp to install Windows on your Mac neither of those two programs will clone the Windows side.
    Neither will Disk utility as Mac's can not create or write to a NTFS partition. So some other program is need for that.

  • HT5636 using windows on a mac, I have changed from a wireless key pad to a USB keypad with numberkeys.

    Using windows on a mac, I have changed from a wireless key pad to a USB keypad with numberkeys. But the number are not working.
    Every thing works fine on the keyboard is IOS. But in windows the munber keys are not.
    Any help please to fix.

    Hi suellen 0,
    Although this is an earlier article, this may have the solution:
    Boot Camp 2.0, Mac OS X v10.5: Frequently asked questions
    http://support.apple.com/kb/ht1656
    Specifically the section:
    My keyboard's numeric keypad does not work in Windows.
    Press the Num Lock key to enable the numeric keypad in Windows. If your keyboard doesn't have a key labelled Num Lock, try the Clear key.
    Thank you for using Apple Support Communities.
    Nubz

  • I have just owned a macbook pro and trying to learn things since i have all along used windows laptop. My first question is : when there are two files i am working together, one above the other on screen, how you switch over between the two with key ?

    I have just owned a macbook pro and trying to learn things since i have all along used windows laptop. My first question is : when there are two files i am working together, one above the other on screen, how you switch over between the two with key ?

    Hi...
    Mac OS X keyboard shortcuts
    Control-F4
    Move focus to the active (or next) window
    Shift-Control-F4
    Move focus to the previously active window
    By the way...  since you are new to Mac, click a clear space on your Desktop. You should see "Finder" top left corner of the screen in the menu bar.
    Click Help then click Help Center
    As an example type in    keyboard shortcuts
    You can use the Help menu for almost any application on your Mac.
    Apple - Find Out How - Mac Basics
    For held switching from PC to Mac >  Apple - Support - Switch 101

  • Windows Recovery Boot Key(configured using ReAgentc.exe) is not activate before passing OOBE setup after using windows Recovery.

    I have deployed image window 7 image with factory reset on separate partition. I am able to recover the solution to factory fresh install but the problem i see here is after recovering to full reset. After booting when OOBE is starting , In case this OOBE
    is disturbed like power down or any manual interruption. On Next boot window installation error pops up and also Function boot key which i set using ReAgentc.exe also not working.  I get window error Recovery follower with below errror
    During this time Fn Key[F11 using ReAgentc.exxe) I have configured for Windows Recovery is not working.
    Implementation Detail:
    Installing OS:
    1. create partition
    1. par 1 = Recovery partition = Label(R),set iD=27
    2. System Boot partition = Label(S)
    3. Window partition = label(W)
    2. Copy Image to Recovery partition == R:\Recovery\WindowsRE\Install.wim,WinRe.Wim and Boot.sdi
    3. Apply Image to W:\ using Image X tool
    4. setting boot path W:\windows
    5. Setting Recovery option to Fn11 key
    W:\Windows\System32\ReAgentc.exe /SetReImage /Target W:\Windows /Path R:\Recovery\WindowsRE /BootKey 0x8500
    W:\Windows\System32\ReAgentc.exe /SetOsImage /Target W:\Windows /Path R:\Recovery\WindowsRE
    Factory Resetting Implementation:
    1. Assign back all label to respective partition
    2. format Drive W:\ and apply Install.wim from R:\Recovery\WindowsRE using Imagex tool
    3.Deleting Boot Enviroment W:\Windows\System32\Bcdboot.exe W:\windows /l EN-US /s S:
     4. Setting Recovery 
    W:\Windows\System32\ReAgentc.exe /SetReImage /Target W:\Windows /Path R:\Recovery\WindowsRE /BootKey 0x8500
    W:\Windows\System32\ReAgentc.exe /SetOsImage /Target W:\Windows /Path R:\Recovery\WindowsRE
    5.Shutdown
    Steps to repro:
    1. Install Factory Setting by pressing F11
    2. During OOBE , Plug out the power.
    Issue. Recovery partion is not accessible using registered Function Key F11
    Any help will be great help

    Modified  instruction from this tutorial.
    I have replaced Setting Recovery Agent code by below lines. It working as expected. Still I haven't tested all corner case. But it resolved my problem in my code
    R is Partition where my Recovery Option resides.
    bcdedit.exe /CREATE {ramdiskoptions} /d "Ramdisk Options"
    bcdedit.exe /SET {ramdiskoptions} ramdisksdidevice partition=R:
    bcdedit.exe /SET {ramdiskoptions} ramdisksdipath \Recovery\WindowsRE\boot.sdi
    for /f "tokens=2 delims={}" %%g in ('bcdedit.exe /create /d "W7 Recovery" /application osloader') do (set guid={%%g})
    echo %guid%
    bcdedit.exe /SET %guid% device ramdisk=[R:]\Recovery\windowsRE\Winre.wim,{ramdiskoptions}
    bcdedit.exe /SET %guid% path \Windows\system32\winload.exe
    bcdedit.exe /SET %guid% osdevice ramdisk=[R:]\Recovery\windowsRE\Winre.wim,{ramdiskoptions}
    bcdedit.exe /SET %guid% systemroot \windows
    bcdedit.exe /SET %guid% winpe yes
    bcdedit.exe /SET %guid% detecthal yes
    bcdedit.exe /SET %guid% nx OptIn
    bcdedit.exe /SET {globalsettings} extendedinput 1
    bcdedit.exe /SET {BOOTMGR} custom:0x54000001 %guid%
    bcdedit.exe /SET {BOOTMGR} customactions 0x1000085000001 0x54000001

  • TS1578 How can I remove this "feature" ? I always use caps lock key and it's so annoying ! I'm fed up ! I received my new MBA yesterday, but I think I'm going to come back on Windows because of that ! So is there a solution to remove this annoying feature

    How can I remove this "feature" ?
    I always use caps lock key and it's so annoying (I write very fast) ! I'm fed up ! I received a MBA 13" yesterday, but I think I'm going to come back to Windows because of that !
    So is there a solution to remove this annoying feature ?
    Thank you very much

    Yes, this is really a deal breaker for me as you say ... I'm forced to write three times slower than I did on Windows 8, that's horrible (I used to type about 110 words/min).
    I'm going to return my Mac and I think I'm going to buy an Asus laptop instead ...
    What a shame that Apple does not do anything for this to be configured, I have read other forums and I see that I'm not the only one complaining about that ...
    How to lose customers so stupidly ...
    But thank you for your reply.

  • Not able to use the Tab key to Tab indent when within a text edit window...

    Two questions please... First one is above for the tab function. In Safari I just need to press control+option+tab to indent a tab within a text edit box on a website. This function is being used more via cloud and mobile capability.
    Second... I can, in Safari, Copy and paste a site with tables. Works great in Safari. When I try to do this in FF I lose the formatting of the tables and it just give plain text without the tabled fields.
    I would love to use FF because the compatibility if much greater than Safari, but... I need my functionality as well to do my work to the best and quickest ability.
    Thank you

    Help About says I'm on 20.0.1
    Up until last week, I was able to use the tab key when typing emails and other multi-line text boxes.
    Suddenly the behavior of the tab key changed. This isn't the first time. It's been quite a while ago that the function of the tab key changed from indenting to moving around the page, then after some time it changed back to indenting.
    Can we get this fixed and leave it alone, please?
    I may give one of those add-ins a try, but my problem with add-ins is that they break when FF is patched or upgraded, then I'm left with out the solution they provide.
    Can we just fix Firefox, please?
    Thanks,
    Frank
    P.S. Another potential fix I came across suggested starting FF in safe mode to see if the problem goes away. It does not. It seems to be a change to FF that appeared after an update last week. On or just befor 24 Apr.

Maybe you are looking for