-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
repl: check colors with .getColorDepth()
PR-URL: #26261 Fixes: #26187 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
- Loading branch information
1 parent
d3a62fe
commit 82b3ee7
Showing
3 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
'use strict'; | ||
require('../common'); | ||
|
||
process.env.TERM = 'dumb'; | ||
|
||
const repl = require('repl'); | ||
|
||
repl.start('> '); | ||
process.stdin.push('console.log("foo")\n'); | ||
process.stdin.push('1 + 2\n'); | ||
process.stdin.push('"str"\n'); | ||
process.stdin.push('console.dir({ a: 1 })\n'); | ||
process.stdin.push('{ a: 1 }\n'); | ||
process.stdin.push('\n'); | ||
process.stdin.push('.exit\n'); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
> console.log("foo") | ||
foo | ||
undefined | ||
> 1 + 2 | ||
3 | ||
> "str" | ||
'str' | ||
> console.dir({ a: 1 }) | ||
{ a: 1 } | ||
undefined | ||
> { a: 1 } | ||
{ a: 1 } | ||
> | ||
> .exit |