fabiospampinato / vscode-terminals

An extension for setting-up multiple terminals at once, or just running some commands.
MIT License
121 stars 19 forks source link

Auto clear the screen in bash environment #29

Closed shivapoudel closed 4 years ago

shivapoudel commented 4 years ago

My bash setting is like this now:

{
  "autorun": false,
  "terminals": [
    {
      "open": true,
      "name": "WPForms",
      "command": "cd /d/htdocs/wpforms/wp-content/plugins && clear"
    },
    {
      "open": true,
      "name": "Everest Forms",
      "command": "cd /d/htdocs/wpeverest/wp-content/plugins && clear"
    }
  ]
}

How can I if I enable autorun and have more than 1 terminals, I am receiving unmanaged canvas in the terminal? CTRL+L clears the screen and this works with autorun but how that keymap be implemented or this extension has a certain configuration?

image

fabiospampinato commented 4 years ago

Sorry I'm having difficulties trying to understand what you are saying.

From the screenshot it seems that the terminal hasn't been rendered correctly? It shouldn't be centered that way I believe.

shivapoudel commented 4 years ago

@fabiospampinato if autorun is enabled then the terminal is not being rendered properly. Because multiple terminals needs to be opened. Next thing, if I disabled autorun and open via shortcut CTRL+ALT+T then it is opened perfercly but also have to use clear command. See the settings I have used currently above where I have attatched clear command. How can I get rid of this issue?

fabiospampinato commented 4 years ago

It seems to be an issue with VSCode, we have no control of how the terminal is actually rendered on screen.