Comments (6)
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.
from ttyd.
Yes, I tried in the js console of browser as mentioned in the hterm docs.
Thank you for this project, it's awesome!
from ttyd.
Hi @rafi , I've added command-line option (--client-option
, -t
) for sending hterm preferences to the client, try the latest master branch.
The -t
option can be used like this:
-t font-size=20
-t foreground-color=blue
-t keybindings='{ "Ctrl-Alt-K": "clearScrollback","Ctrl-Shift-L": "PASS"}'
-t cursor-blink-cycle="[1000, 500]"
The option value can be a json string, or plain value. Use -t
multiple times to send more options.
from ttyd.
The examples you provided do not work for me. I get the following error:
Uncaught Error: No option with key "font-size"
at s.setOption ((index):11)
at (index):20
at Array.forEach ()
at WebSocket.i.onmessage ((index):20)
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?
from ttyd.
@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:
ttyd -t 'fontSize=30' bash
from ttyd.
from ttyd.
Related Issues (20)
- message to user on max-client HOT 1
- Clear up security implications of default (no `--writable`) mode HOT 1
- Add some compibility for phones and add a local update checker that update it self HOT 1
- Would it be possible to add support for the bell character on the client? HOT 1
- 1.7.5 release reports incorrect version HOT 1
- 1.7.6 reports incorrect version HOT 4
- Segmentation fault and pty_spawn failed on armel device HOT 3
- [HELP] how to fix incorrect word spacing like this? HOT 3
- Programación
- Support headless mode HOT 1
- How to use --url-arg HOT 2
- Add specifying parameters in the configuration file
- 滚动打印日志时终端出现重新连接 HOT 2
- Connection closed On https HOT 1
- How To implement OSCLinkProvider HOT 1
- How to use the terminal ip address HOT 1
- Backspace key sends DEL HOT 1
- Custom Font Support HOT 1
- how to use ipv6? HOT 1
- Client option -t disableResizeOverlay=true does not seem to work HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ttyd.