Skip to content

Commit

Permalink
fix(deck): Fix issue with restoring screen after exit
Browse files Browse the repository at this point in the history
  • Loading branch information
ghaiklor committed Apr 29, 2016
1 parent 0a625c4 commit 2b17ab7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Deck.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default class Deck {
* });
*/
constructor(declaration) {
const {cursor = Cursor.create().reset().saveScreen().hideCursor()} = declaration;
const {cursor = Cursor.create().saveScreen().reset().hideCursor()} = declaration;
const {shapes = [], animations = [], slides = []} = declaration;

this._currentSlideIndex = 0;
Expand Down Expand Up @@ -143,7 +143,7 @@ export default class Deck {
* Closes the presentation and returns to terminal.
*/
exit() {
this._cursor.restoreScreen().showCursor();
this._cursor.showCursor().restoreScreen().reset();
process.exit(0);
}

Expand Down

0 comments on commit 2b17ab7

Please sign in to comment.