Skip to content

Commit

Permalink
fix/improve the cleanup on exit
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudhead committed Jun 9, 2010
1 parent df83078 commit 8052146
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bin/vows
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,7 @@ if (args.length > 0) {
process.addListener('uncaughtException', cleanup);
process.addListener('exit', cleanup);
process.addListener('SIGINT', function () {
cleanup();
process.exit();
process.exit(0);
});
process.addListener('SIGQUIT', function () {
changed();
Expand Down Expand Up @@ -171,7 +170,7 @@ if (args.length > 0) {
function cursorRestore() { esc("u") }
function cursorHide() { esc("?25l") }
function cursorShow() { esc("?25h") }
function cleanup() { cursorShow(), print('\n') }
function cleanup() { eraseLine(), cursorShow(), print('\n') }

//
// Called when a file has been modified.
Expand Down

0 comments on commit 8052146

Please sign in to comment.