Anyterm Forum

Anyterm: A Terminal Anywhere

You are not logged in.

#1 2006-04-18 00:38:13

Raul Acevedo
Guest

emacs display problems and using alt key

I get all sorts of funky display errors when running Emacs inside Anyterm.  I have to constantly do Ctrl-l (Emacs' redisplay command, which redraws the whole window).

Emacs also insists on displaying itself black text on white background, even though the Anyterm shell itself is basically white text on black background... I don't know why it does that, but setting TERM=vt100 fixes it.  It doesn't fix the general display problems, I still have to use Ctrl-l a lot.

Is this Anyterm or ROTE?  I'm running on Linux Fedora Core 3, Apache 2.0.53 (latest RPM from fedora-legacy), ROTE 0.2.8, accessing from Firefox on a Windows XP box.

Also, is it possible to have the Alt key work as a Meta modifier, so that Alt-Backspace, Alt-d, etc. work in the shell and Emacs to delete/move the cursor without having to explicitly type Esc-Backspace, Esc-d, etc.?

Thanks,

Raul

#2 2006-04-18 22:55:09

phil
Administrator

Re: emacs display problems and using alt key

ROTE comes with a test program called boxshell.  Try running emacs inside that.  If that displays errors then the problem is not in Anyterm.

I think that ROTE is closest to the linux console in the codes that it tries to support, so TERM=linux should be the best choice.  But other settings may also work around whatever is causing the problem.

It may be possible to support ALT.  If you look in anyterm.js you'll see a couple of commented-out alerts that show debug information in the keypress handlers.  Try enabling them and see what you get.  Then, you just need to work out what Emacs is expecting; it may be the same as the key without ALT, plus 128.  But that might cause problems with Unicode.

--Phil.

Offline

#3 2006-04-19 23:53:07

Raul Acevedo
Guest

Re: emacs display problems and using alt key

Thanks for your reply... I'll try the boxshell program tonight.

About ALT: this isn't just emacs, bash doesn't get the Alt either.  Normally in the bash command line, Alt-b and Alt-f work like in emacs to move by word, but within Anyterm bash it's just like typing b or f without the Alt.  I did the commenting out like you suggested, and the Anyterm JavaScript is definitely seeing the Alt key.  It doesn't look like it's getting passed to the shell at all.

Raul

#4 2006-04-20 00:03:21

phil
Administrator

Re: emacs display problems and using alt key

Hi Raul,

All you need to do now is to modify the Javascript so that it sends the right code in response to the ALT keys.

If you need help, you'll need to post what you see in the alerts.

--Phil.

Offline

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson