[pve-devel] applied: [PATCH xtermjs 1/3] focus terminal when starting

Thomas Lamprecht t.lamprecht at proxmox.com
Fri Apr 27 11:31:39 CEST 2018


applied series, thanks!

On 4/27/18 11:17 AM, Dominik Csapak wrote:
> Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
> ---
>  src/www/main.js | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/src/www/main.js b/src/www/main.js
> index 6fec72f..0b09cbf 100644
> --- a/src/www/main.js
> +++ b/src/www/main.js
> @@ -172,7 +172,11 @@ function runTerminal() {
>  
>      socket.send(PVE.UserName + ':' + ticket + "\n");
>  
> -    setTimeout(function() {term.fit();}, 250);
> +    // initial focus and resize
> +    setTimeout(function() {
> +	term.focus();
> +	term.fit();
> +    }, 250);
>  }
>  
>  function getLxcStatus(callback) {
> 





More information about the pve-devel mailing list