Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save hober/519891 to your computer and use it in GitHub Desktop.
Save hober/519891 to your computer and use it in GitHub Desktop.
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
Copy link
Author

hober commented Aug 11, 2010

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

@mscdex
Copy link

mscdex commented Aug 11, 2010

Get a smarter terminal? ;-)

@hober
Copy link
Author

hober 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
Copy link

kmt commented Feb 3, 2011

Is there a fix for this?

@hober
Copy link
Author

hober commented Feb 5, 2011

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

@kmt
Copy link

kmt 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