Skip to content

Commit 3fbea78

Browse files
committed
fix(console): #25 (comment)
1 parent 20e6903 commit 3fbea78

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/io/plugin/tsnode/lib/cmd/NodeJSCommandLine.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ object MyNodeCommandLineUtil
5252
if (NodeCommandLineUtil.isTerminalCommandLine(commandLine))
5353
{
5454
// do something
55-
(commandLine as PtyCommandLine).withConsoleMode(true);
55+
//(commandLine as PtyCommandLine).withConsoleMode(true);
5656
}
5757
else
5858
{
@@ -121,7 +121,8 @@ object MyNodeCommandLineUtil
121121

122122
fun configureCharset(commandLine: GeneralCommandLine)
123123
{
124-
if (commandLine.charset.toString() == "x-windows-950" || commandLine.charset.toString() == "x-windows-936")
124+
val charset = commandLine.charset.toString()
125+
if (charset == "x-windows-950" || charset == "x-windows-936")
125126
{
126127
commandLine.withCharset(Charset.forName("UTF-8"))
127128
}

0 commit comments

Comments
 (0)