Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to switch from xterm to gnome-terminal but having trouble with alt keys. I have already disabled menu access keys, but I still need 8-bit inputs. In xterm I can set 8-bit inputs in Xresources using;

xterm*eightBitInput  true

is it possible to set alt key to generate 8-bit inputs in gnome-terminal?

edit: it is also configurable using the option meta sends escape from ctrl+left click menu in xterm.

edit2: started using terminator, still need 8-bit inputs. infact, any libvte based terminal supporting 8-bit inputs I would be interested.

share|improve this question

migrated from askubuntu.com Aug 17 '12 at 19:39

This question came from our site for Ubuntu users and developers.

    
8-bit input? All decent x11 programs hasn't problems with 8-bit input. Try to set locale to UTF8 before starting terminal. – paul Aug 22 '12 at 13:50
    
I don't have any problem with utf-8, my problem is with the alt keys. – gokcehan Aug 22 '12 at 16:47
    
Still no answer? :( – trusktr Oct 13 '13 at 10:45

Referring to the xterm manual

   eightBitInput (class EightBitInput)
           If "true", Meta characters (a  single-byte  character  combined
           with  the  Meta  modifier key) input from the keyboard are pre-
           sented as a single character, modified according to the  eight-
           BitMeta  resource.   If  "false", Meta characters are converted
           into a two-character sequence with the  character  itself  pre-
           ceded by ESC.  The default is "true".

and the changelog (patch #183 2003/12/26):

modify handling of eightBitInput resource in UTF-8 mode to translate the value into UTF-8. Otherwise an illegal UTF-8 code is sent to the application (report by Bram Moolenaar).

what OP is probably looking for is a convenient way to enter codes in the Latin-1 range (which coincide with the Unicode values). VTE-based terminal emulators do not do that. They use compose sequences for users without keyboards that supply special "national" characters. (xterm supports compose also).

Further reading:

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.