emacsmirror/nterm — pull request #1 by kdogg (2012-06-10 21:44:54+00:00)
Title: Scala REPL compatibility

Hi Ivan,

Thanks for the nterm! I've got a use case that I think is pretty interesting:

'ENSIME' ( pronounced 'Enzyme' ) is the Emacs mode for Scala
http://www.youtube.com/watch?v=A2Lai8IjLoY
http://github.com/aemoncannon/ensime

The Scala REPL is the interactive interpreter for Scala
http://www.youtube.com/watch?v=YpjKzKzC7jI

ENSIME is awesome but a pain point is that it doesn't work with the tab-completion features of the REPL when run in an emacs 'term'. But it runs in nterm with the changes in this branch.

Use:
( setq nterm-scala-repl-compatability t ) and the Scala REPL should run in nterm.

I'm hoping to contribute back to ENSIME and Scala with this patch. The thousand or so ENSIME hackers should be very pleased.

Would you be kind enough to look at the branch and answer a couple of questions?

1) Is my addition of ANSII escape code CHA handler OK or did I botch it? ( Cursor Horizontal Absolute )

2) How get I get the functionality of the lousy hack I put in nterm-send-string without polluting your code?

Sorry if these are newbie questions, but that's what I am!

-Ken