Skip to content

Commit 3c64916

Browse files
author
Povilas Kanapickas
committed
Gadgets/Coliru: use rare symbols to attribute the output
1 parent f467bb3 commit 3c64916

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

gadgets/coliru_compiler.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function Editor(root) {
5151
this.cmd_info = cmd_info_c;
5252
}
5353

54-
this.cmd_run_normal = ' 2>&1 | sed "s/^/C:/"; if [ -x a.out ]; then ./a.out | sed "s/^/O:/"; fi'
54+
this.cmd_run_normal = ' 2>&1 | sed "s/^//"; if [ -x a.out ]; then ./a.out | sed "s/^//"; fi'
5555
this.cmd_run_share = ' && ./a.out';
5656

5757
this.el = {};
@@ -238,11 +238,11 @@ function Editor(root) {
238238
var is_compile_output = false;
239239
var is_shell_output = false;
240240

241-
if (line.indexOf('C:') !== -1) {
241+
if (line.indexOf('') !== -1) {
242242
is_compile_output = true;
243-
line = line.substring(2);
244-
} else if (line.indexOf('O:') !== -1) {
245-
line = line.substring(2);
243+
line = line.substring(1);
244+
} else if (line.indexOf('') !== -1) {
245+
line = line.substring(1);
246246
} else {
247247
// everything else comes from the shell. Presumably, this
248248
// indicates a serious error in the program

0 commit comments

Comments
 (0)