You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@guacamole.apache.org by fudg3 <am...@trustpeers.com> on 2020/01/27 17:28:03 UTC

SSH 16:9 Screen without using .scale()

Hey,
I wanted to ask if there is any way to scale an SSH session screen to 16:9
resolution without using `.scale` because it causes stuff to stretch and it
does not look good at all.


Do any of you know by chance?
Thanks



--
Sent from: http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@guacamole.apache.org
For additional commands, e-mail: user-help@guacamole.apache.org


Re: SSH 16:9 Screen without using .scale()

Posted by Mike Jumper <mj...@apache.org>.
On Tue, Jan 28, 2020, 09:48 fudg3 <am...@trustpeers.com> wrote:

> Where can i use GuacamoleClientInformation class when creating a session?
>

https://guacamole.apache.org/doc/guacamole-common/org/apache/guacamole/protocol/ConfiguredGuacamoleSocket.html#ConfiguredGuacamoleSocket-org.apache.guacamole.net.GuacamoleSocket-org.apache.guacamole.protocol.GuacamoleConfiguration-org.apache.guacamole.protocol.GuacamoleClientInformation-

- Mike

Re: SSH 16:9 Screen without using .scale()

Posted by fudg3 <am...@trustpeers.com>.
Where can i use GuacamoleClientInformation class when creating a session?



--
Sent from: http://apache-guacamole-general-user-mailing-list.2363388.n4.nabble.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@guacamole.apache.org
For additional commands, e-mail: user-help@guacamole.apache.org


Re: SSH 16:9 Screen without using .scale()

Posted by Mike Jumper <mj...@apache.org>.
On Mon, Jan 27, 2020 at 9:24 AM fudg3 <am...@trustpeers.com> wrote:

> Hey,
> I wanted to ask if there is any way to scale an SSH session screen to 16:9
> resolution without using `.scale` because it causes stuff to stretch and it
> does not look good at all.
>
> Do any of you know by chance?
>

As the mainline Guacamole webapp already does this, I'm assuming you're
asking because you are writing your own web application based off
guacamole-common and guacamole-common-js.

Screen size is handled in three ways:

1) During the Guacamole protocol handshake (the client should communicate
the optimal screen size so the webapp can pass that information on to the
server)
2) While the connection is active using "size" instructions (sent by
calling sendSize() of Guacamole.Client whenever the optimal screen size
changes)
3) When the server reports that the display size has changed (onresize of
Guacamole.Display is invoked)

You normally need to use all of these methods: sending the desired size
initially, invoking scale() as needed when the server reports that the
display size has changed, and invoking sendSize() whenever the desired size
changes from whatever was last sent. It's uncommon for an SSH or telnet
server to not support changing the size of the terminal, however it is not
required that SSH or telnet servers support this. Across all protocols
supported by Guacamole, there is no general guarantee that the remote
desktop server will honor the request to change the display size. All you
can do is make the request and keep the remote desktop server advised. Your
application should do whatever it can to fit things in view if it is
impossible to resize the display as requested.

See:

http://guacamole.apache.org/doc/guacamole-common/org/apache/guacamole/protocol/GuacamoleClientInformation.html#setOptimalScreenWidth-int-
http://guacamole.apache.org/doc/guacamole-common/org/apache/guacamole/protocol/GuacamoleClientInformation.html#setOptimalScreenHeight-int-
http://guacamole.apache.org/doc/guacamole-common/org/apache/guacamole/protocol/GuacamoleClientInformation.html#setOptimalResolution-int-
http://guacamole.apache.org/doc/guacamole-common-js/Guacamole.Client.html#sendSize
http://guacamole.apache.org/doc/guacamole-common-js/Guacamole.Display.html#event:onresize

- Mike