Skip to content

Terminal optimizations

Eddie Wang requested to merge terminal-optimizations into master

This should fix some layout issues with the terminal, and optimize the terminal in certain use cases.

  • Instead of logging the output to an array, we now set stdout to a string and simply wrap that in pre tags.
  • Set input to clear if the command entered is clear
  • Debounce terminal output to prevent excessive rerenders
  • Utilize a callback styled setState in order to ensure the latest available state when appending to state
  • Set cwd and call the bin directly so we don't see a long message when the binary is parsing argv0
Edited by Eddie Wang

Merge request reports