File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -26,16 +26,16 @@ export default class PIOTerminal {
2626 }
2727
2828 sendText ( text ) {
29- if ( ! this . _instance || this . _instance . exitStatus !== undefined ) {
30- this . _instance = this . new ( ) ;
31- // Set Codepage to UTF-8, if Windows is used
32- if ( process . platform === "win32" ) {
33- this . _instance . sendText ( 'chcp 65001' ) ;
29+ if ( ! this . _instance || this . _instance . exitStatus !== undefined ) {
30+ this . _instance = this . new ( ) ;
31+ // Set Codepage to UTF-8, if Windows is used
32+ if ( process . platform === "win32" ) {
33+ this . _instance . sendText ( 'chcp 65001' ) ;
34+ }
3435 }
36+ this . _instance . sendText ( text ) ;
37+ this . _instance . show ( ) ;
3538 }
36- this . _instance . sendText ( text ) ;
37- this . _instance . show ( ) ;
38- }
3939
4040 dispose ( ) {
4141 if ( this . _instance ) {
You can’t perform that action at this time.
0 commit comments