forked from nodejs/node
-
Notifications
You must be signed in to change notification settings - Fork 1
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: nodejs#26261 Fixes: nodejs#26187 Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Roman Reiss <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Jeremiah Senkpiel <[email protected]>
- 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 |