nguyenngoclongdev / vs-terminal-keeper

Elevate your terminal experience! Effortlessly configuration, seamlessly restore your last session, and manage sessions with ease. Personalize your workspace with colorful themes and boost productivity by importing commands swiftly.
https://marketplace.visualstudio.com/items?itemName=nguyenngoclong.terminal-keeper
MIT License
23 stars 3 forks source link

Consol windows are not restored under Windows 10 #1

Closed MaxMayya closed 1 year ago

MaxMayya commented 1 year ago

Describe the bug tput is not recognized and so consols are not restored

To Reproduce start VScode

Expected behavior

PS C:\ tput reset tput : The term 'tput' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:2

  • tput reset
  • \~~~~
    • CategoryInfo : ObjectNotFound: (tput:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

Platform:

nguyenngoclongdev commented 1 year ago

@MaxMayya Thank you for reporting. I will try to reproduce and fix the issue as soon as possible.

nguyenngoclongdev commented 1 year ago

Hi @MaxMayya, I have fixed the bug in version 1.1.9.

Basically, for Windows system, I will use the cls command to clear the terminal before sending the commands that you defined in the settings file. For MacOS and Linux, I will still use the tput reset command.

Since I have only worked on MacOS and Ubuntu, I am not sure whether the fix will work on your systems. If it works well, please provide me with your feedback.

Additionally, I have added an option called noClear in the settings, which allows you to turn off the clear function if you feel it is unnecessary.