File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -208,7 +208,6 @@ if (! options.watch) {
208
208
cue = pendulum , current = 0 ;
209
209
}
210
210
211
- cursorSave ( ) ;
212
211
eraseLine ( ) ;
213
212
lastRun && ! running && esc ( colors [ status . errored ? 2 : ( status . broken ? 1 : 0 ) ] ) ;
214
213
print ( cue [ current ] ) ;
@@ -224,10 +223,9 @@ if (! options.watch) {
224
223
// Utility functions
225
224
//
226
225
function print ( str ) { sys . print ( str ) }
227
- function esc ( str ) { print ( "\033[" + str ) }
228
- function eraseLine ( ) { esc ( "2K" ) }
229
- function cursorSave ( ) { esc ( "s" ) }
230
- function cursorRestore ( ) { esc ( "u" ) }
226
+ function esc ( str ) { print ( "\x1b[" + str ) }
227
+ function eraseLine ( ) { esc ( "0K" ) }
228
+ function cursorRestore ( ) { esc ( "0G" ) }
231
229
function cursorHide ( ) { esc ( "?25l" ) }
232
230
function cursorShow ( ) { esc ( "?25h" ) }
233
231
function cleanup ( ) { eraseLine ( ) , cursorShow ( ) , print ( '\n' ) }
You can’t perform that action at this time.
0 commit comments