pushed
zhengqunkoo/ttyd • 4:49 PM - Mar 25, 2024
This change lets the web terminal read option overrides from window.location.search and apply them on top of the server-provided preferences, covering both ttyd client settings and standard xterm options. The parser infers basic types from existing defaults, so flags like booleans, numeric values, and structured objects such as themes can be passed through the URL with minimal extra wiring. The update also includes a small TypeScript config adjustment needed for URLSearchParams usage and some import cleanup. Practically, this makes it much easier to test, debug, and share custom terminal configurations from a single link.
