Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
@hober

This comment has been minimized.

Copy link
Owner Author

commented Aug 11, 2010

Ideally, Node wouldn't output all the term-intended gobbledygook when $TERM is 'dumb'.

@mscdex

This comment has been minimized.

Copy link

commented Aug 11, 2010

Get a smarter terminal? ;-)

@hober

This comment has been minimized.

Copy link
Owner Author

commented Aug 11, 2010

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.

@kmt

This comment has been minimized.

Copy link

commented Feb 3, 2011

Is there a fix for this?

@hober

This comment has been minimized.

Copy link
Owner Author

commented Feb 5, 2011

One workaround is to set NODE_NO_READLINE to 1 in your environment.

@kmt

This comment has been minimized.

Copy link

commented Feb 5, 2011

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
You can’t perform that action at this time.