-
-
Notifications
You must be signed in to change notification settings - Fork 895
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
Setting hterm preferences? #17
Comments
Are you doing this in javascript console of the browser? This is not supported as the hterm instance is not public. I'm planning to add command-line options for setting hterm preference on the server side, the client interface is ok(receive options from websocket), but server side is not done currently. |
Yes, I tried in the js console of browser as mentioned in the hterm docs. |
Hi @rafi , I've added command-line option ( The
The option value can be a json string, or plain value. Use |
The examples you provided do not work for me. I get the following error: Uncaught Error: No option with key "font-size" I tried each of your examples verbatim and I get the same error each time. I also visited the xterm manual link that you posted in response to a different issue. Can you please provide a list of all the option keys as well as the type and range of values expected for each? |
@oneleft ttyd uses xterm.js now, please view the link below to get the available options: https://xtermjs.org/docs/api/terminal/interfaces/iterminaloptions/ example:
|
I really appreciate the quick response. Thank you. Unfortunately, I am getting the same error and I copied the example you provided directly onto my bash command line. Also, I did not find a list of key values for the options on the page you linked me to.
From: Shuanglei Tao <notifications@github.com>
Sent: Thursday, August 2, 2018 12:34 AM
To: tsl0922/ttyd <ttyd@noreply.github.com>
Cc: Zach Washburn <oneleft.ak@gmail.com>; Mention <mention@noreply.github.com>
Subject: Re: [tsl0922/ttyd] Setting hterm preferences? (#17)
@oneleft <https://github.com/oneleft> ttyd uses xterm.js <https://xtermjs.org/> now, please view the link below to get the available options:
https://xtermjs.org/docs/api/terminal/interfaces/iterminaloptions/
example:
ttyd -t 'fontSize=30' bash
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#17 (comment)> , or mute the thread <https://github.com/notifications/unsubscribe-auth/ALEPIkI8VyPHkaxg9oMYxsox7Ab73eGGks5uMrl9gaJpZM4KX0iH> . <https://github.com/notifications/beacon/ALEPImrN-z64pDBoxiUXwslVdg00xtdVks5uMrl9gaJpZM4KX0iH.gif>
|
I'm getting
VM217:1 Uncaught ReferenceError: term_ is not defined
For example:
As per https://chromium.googlesource.com/chromiumos/platform/assets/+/factory-3004.B/chromeapps/hterm/doc/faq.txt#234
The text was updated successfully, but these errors were encountered: