Skip to content

Commit 572c65f

Browse files
committed
サンプルページのコードに置き換えミスで\x1bが入っていたのを修正
1 parent f8dbb41 commit 572c65f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/terminal/page.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ interface SampleConfig {
5757
const sampleConfig: Record<RuntimeLang, SampleConfig> = {
5858
python: {
5959
repl: true,
60-
replInitContent: '>>> print("Hello, World!")\x1b[0m\nHello, World!',
60+
replInitContent: '>>> print("Hello, World!")\nHello, World!',
6161
editor: {
6262
"main.py": 'print("Hello, World!")',
6363
},
@@ -66,15 +66,15 @@ const sampleConfig: Record<RuntimeLang, SampleConfig> = {
6666
ruby: {
6767
repl: true,
6868
replInitContent:
69-
'irb(main):001:0> puts "Hello, World!"\x1b[0m\nHello, World!',
69+
'irb(main):001:0> puts "Hello, World!"\nHello, World!',
7070
editor: {
7171
"main.rb": 'puts "Hello, World!"',
7272
},
7373
exec: ["main.rb"],
7474
},
7575
javascript: {
7676
repl: true,
77-
replInitContent: '> console.log("Hello, World!");\x1b[0m\nHello, World!',
77+
replInitContent: '> console.log("Hello, World!");\nHello, World!',
7878
editor: {
7979
"main.js": 'console.log("Hello, World!");',
8080
},
@@ -84,7 +84,7 @@ const sampleConfig: Record<RuntimeLang, SampleConfig> = {
8484
repl: false,
8585
editor: {
8686
"main.ts":
87-
'function greet(name: string): void {\x1b[0m\n console.log("Hello, " + name + "!");\x1b[0m\n}\x1b[0m\n\x1b[0m\ngreet("World");',
87+
'function greet(name: string): void {\n console.log("Hello, " + name + "!");\n}\n\ngreet("World");',
8888
},
8989
exec: ["main.ts"],
9090
},

0 commit comments

Comments
 (0)