billchurch / webssh2

Web SSH Client using ssh2, socket.io, xterm.js, and express. webssh webssh2
MIT License
2.32k stars 530 forks source link

any possible that I can change the font size? #292

Closed toyqiu closed 2 years ago

toyqiu commented 2 years ago

I find webssh2 being very convenient to use at a phone size device,if the font size can be changeable

billchurch commented 2 years ago

This can be accomplished today by modifying the style.css

https://github.com/billchurch/webssh2/blob/main/app/client/src/css/style.css

Then building the client code

npm run build
billchurch commented 2 years ago

We could create a few options to account for this. Right now, this is available in the javascript as term.options.

We're already doing this for scrollback, tabStopWidth, bellStyle, and cursorBlink.

Give me a moment and I will add a few more options for fonts.

billchurch commented 2 years ago

This is in https://github.com/billchurch/webssh2/tree/0.4.7-alpha.0

You can specify the fontSize in:

Please test and let me know how this works for you:

git checkout 0.4.7-alpha.0

or grab it from docker hub:

docker pull billchurch/webssh2:0.4.7-alpha.0

billchurch commented 2 years ago

Found a slight bug with displaying banners from some ssh servers and I re-ordered things a bit, updated in https://github.com/billchurch/webssh2/tree/0.4.7-alpha.1

git checkout 0.4.7-alpha.1

or grab it from docker hub:

docker pull billchurch/webssh2:0.4.7-alpha.1