Skip to content

Commit

Permalink
Add comment about terminal resize
Browse files Browse the repository at this point in the history
  • Loading branch information
antonmedv committed Dec 9, 2019
1 parent f60d7aa commit 5832405
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fx.js
Expand Up @@ -110,6 +110,9 @@ module.exports = function start(filename, source, prev = {}) {
autocomplete.hide()

process.stdout.on('resize', () => {
// Blessed has a bug with resizing the terminal. I tried my best to fix it but was not succeeded.
// For now exit and print seem like a reasonable alternative, as it not usable after resize.
// If anyone can fix this bug it will be cool.
printJson({expanded})
})

Expand Down

0 comments on commit 5832405

Please sign in to comment.