Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

tty: no readline when TERM==dumb #25506

Closed
wants to merge 1 commit into from
Closed

tty: no readline when TERM==dumb #25506

wants to merge 1 commit into from

Conversation

saljam
Copy link

@saljam saljam commented Jun 11, 2015

To stop the REPL from spitting ANSI control codes on
terminals which don't support them. (Fixes #5344)

This is a rebase and style fix of #5602.

To stop the REPL from spitting ANSI control codes on
terminals which don't support them. (Fixes #5344)
@samertm
Copy link

samertm commented Aug 23, 2015

Any action on this? This would fix a major headache I have with the node repl.

@thefourtheye
Copy link

Hi, since io.js and node.js are merging at nodejs/node repository, I would recommend submitting this patch there.

@jasnell
Copy link
Member

jasnell commented Aug 26, 2015

That said, this is one that we'd likely want to backport to v0.12...

@jasnell jasnell added the tty label Aug 27, 2015
@saljam
Copy link
Author

saljam commented Aug 31, 2015

So, should I reopen this there?

@jasnell
Copy link
Member

jasnell commented Aug 31, 2015

Yes, if you would

@ChALkeR
Copy link
Member

ChALkeR commented Sep 17, 2015

This was reopened as nodejs/node#2712.
Discussion should continue there.

@ChALkeR ChALkeR closed this Sep 17, 2015
silverwind pushed a commit to nodejs/node that referenced this pull request Sep 22, 2015
This change stops the REPL from using ANSI control codes for colours
when the TERM environment variable is set to "dumb".

"dumb" is the terminal type with the smallest set of capabilities as
described by terminfo. See:

http://invisible-island.net/ncurses/terminfo.ti.html#toc-_Specials

Related: nodejs/node-v0.x-archive#5344
Related: nodejs/node-v0.x-archive#25506
Reviewed-By: Jeremiah Senkpiel <[email protected]>
Reviewed-By: Roman Reiss <[email protected]>
PR-URL: #2712
rvagg pushed a commit to nodejs/node that referenced this pull request Sep 22, 2015
This change stops the REPL from using ANSI control codes for colours
when the TERM environment variable is set to "dumb".

"dumb" is the terminal type with the smallest set of capabilities as
described by terminfo. See:

http://invisible-island.net/ncurses/terminfo.ti.html#toc-_Specials

Related: nodejs/node-v0.x-archive#5344
Related: nodejs/node-v0.x-archive#25506
Reviewed-By: Jeremiah Senkpiel <[email protected]>
Reviewed-By: Roman Reiss <[email protected]>
PR-URL: #2712
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants