File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments