I would like to access Emacs on my computer using my android phone. Output would be Emacspeak server on my phone.

What would be the best way to stream keyboard events from phone to Emacs?

asked Jan 18, 2012 at 6:17

stralep's user avatar

2

It depends on what you would like to do. I sometimes run Emacs inside an SSH terminal on my phone. This, of course, means that it is displayed on the phone rather than on the computer screen.

answered Jan 20, 2012 at 9:09

Lindydancer's user avatar

2 Comments

is there any way to make this communication one-way, just to stream keyboard events, without sending terminal drawing in opposite direction?

Not any existing tools, that I know of. I guess the trick is to get the events into Emacs, which probably is very platform-specific. However, if that would exist, then you could use the keyboard of the ssh client as input device by writing a simple command-line tool...

If you want one way communication, in my opinion you have two options, both related to emacsclient. Start emacs on your PC in TCP server mode, then...

either

  • Figure out the emacsclient protocol, and write your own program which to Emacs looks like an emacsclient, but actually is an Android program.

or

  • Run emacsclient on the Android, and give the --eval option. This will make Emacs run elisp functions, and you can make it whatever you want on the Emacs side. (This will only work if your Android can run emacsclient. I don't know if that will involve port to a Java app + NDK or if you can get emacsclient on a rooted phone.)

answered Jan 26, 2012 at 0:32

Prof. Falken's user avatar

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.