Created
August 11, 2010 22:21
-
-
Save hober/519891 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Type '.help' for options. | |
^[[0Gnode> ^[[0K^[[0G^[[6C | |
^[[0G^[[0Gnode> ^[[0K^[[0G^[[6Ca | |
a | |
^[[0GReferenceError: a is not defined | |
at [object Context]:1:1 | |
at Interface.<anonymous> (repl:77:19) | |
at Interface.emit (events:26:26) | |
at Interface._ttyWrite (readline:221:12) | |
at Interface._ttyWrite (readline:325:16) | |
at Interface.write (readline:120:27) | |
at Stream.<anonymous> (repl:58:9) | |
at Stream.emit (events:26:26) | |
at IOWatcher.callback (net:512:16) | |
at node.js:773:9 | |
^[[0Gnode> ^[[0K^[[0G^[[6Cprocess.env['TERM'] | |
process.env['TERM'] | |
^[[0G'dumb' | |
^[[0Gnode> ^[[0K^[[0G^[[6C |
Get a smarter terminal? ;-)
mscdex: Heh.
Pretending you're serious for a moment, it's really nice to be able to run the Node REPL as an inferior process in Emacs. Emacs has a lot of support for incremental evaluation & live-testing of code when paired with a REPL in this way.
Is there a fix for this?
One workaround is to set NODE_NO_READLINE to 1 in your environment.
Yes, I looked into the code and I saw that. But now, there's no tab completion. Do you know of a solution for that?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ideally, Node wouldn't output all the term-intended gobbledygook when $TERM is 'dumb'.