say you issue the following command:
apt-get install MySql
this command generates an output where some of the text is displayed line by line and some should be displayed at the last line. Here is an example :
Reading package lists... 0%
Reading package lists... 100%
Reading package lists... Done
Building dependency tree... 0%
Building dependency tree... 0%
Building dependency tree... 50%
Building dependency tree... 50%
Building dependency tree
Reading state information... 0%
Reading state information... 1%
Reading state information... Done
These lines should be overwritten. How to handle this output stream to emulate what remote shell does.
I am using ShellStream functionality
Thank you.
apt-get install MySql
this command generates an output where some of the text is displayed line by line and some should be displayed at the last line. Here is an example :
Reading package lists... 0%
Reading package lists... 100%
Reading package lists... Done
Building dependency tree... 0%
Building dependency tree... 0%
Building dependency tree... 50%
Building dependency tree... 50%
Building dependency tree
Reading state information... 0%
Reading state information... 1%
Reading state information... Done
These lines should be overwritten. How to handle this output stream to emulate what remote shell does.
I am using ShellStream functionality
Thank you.