Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
toyqiu opened this issue Jul 26, 2022 · 4 comments
Closed

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

toyqiu opened this issue Jul 26, 2022 · 4 comments

Comments

@toyqiu
Copy link

toyqiu commented Jul 26, 2022

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

@billchurch
Copy link
Owner

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
Copy link
Owner

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 added a commit that referenced this issue Jul 30, 2022
@billchurch
Copy link
Owner

billchurch commented Jul 30, 2022

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

You can specify the fontSize in:

  • the config.json as terminal.fontSize (default is 12)
  • a GET var fontSize
  • a POST var fontSize

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants