Accidently I mapped Enter key via xkbset to Pointer_button2. Now every time I hit Enter some gibberish text appears. I thought of a workaround involving remapping it back but that means I will have to run a command xmodmap -e "keycode 135 = Pointer_Button2" (or any other keycode but that of Enter key). But I'm not able to run this command in terminal without hitting Enter key. How do I do so? I'm running Ubuntu 12.04.
|
|
|||||||
|
migrated from stackoverflow.com Oct 17 '12 at 8:28
|
You can use CTRL+J or CTRL+M as an alternative to Enter. They are the control characters for linefeed (LF) and carriage return (CR). |
|||||||||||||||||||
|
|
In a terminal window (I tested only
Then paste the selected text back in the terminal window with the middle mouse button click (or with simultaneous left and right mouse button click, if configured so). |
|||||
|
|
Run the command from a non-X terminal. CTRL+ALT+F2 should get you to a normal console. Login as your normal user, and then run the command there.
|
|||||||||||
|
|
You could put it into a script (.sh) and then double click it. Ubuntu gives the option of running a script instead of opening it in a text file. |
|||
|
If you have a mouse and graphical display you can copy the end of a previous line in your terminal and paste it onto the end of your command. |
|||
|
|
