Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!wuarchive!sdd.hp.com!hplabs!pyramid!sword.pyramid.com!echen From: echen@sword.pyramid.com (Eric Chen) Newsgroups: comp.windows.x Subject: Meta key handling in xterm Message-ID: <145738@pyramid.pyramid.com> Date: 22 Feb 91 02:11:54 GMT Sender: news@pyramid.pyramid.com Distribution: usa Lines: 30 Hi: Do you use the Meta( Alt ) key with xterm? I have bothe R3 and R4 xterm on my machine. The R3 xterm output the Meta(Alt) key fine but the R4 xterm ignores it. This is annoying to emac users. I checked the source code of R3 and R4 xterm. The R3 xterm/input.c has codes as: -------------------------------------------------------------- int MetaMode = 1; .... Input (keyboard, screen, event) ... { ... if ((nbytes == 1) && MetaMode && (event->state & Mosk)) unparseputc(033, pty); ... ---------------------------------------------------------------- which is missing from R4 xterm.Why? I add the above code and compile with R4 libraries and the new xterm behaves right. BTW, according to the Key/Button binding in xterm man page( and in the xterm/charproc.c too), all mode-menu popup and select-start() select-extend().. only work when the Meta key is not pressed. But both my R3 and R4 xterm behave the same with or without the Meta key pressed! How about the xterm on your machine??? Please post your experience or comments so I know if it's just the problem of my xterm. Thanks a lot !