-
-
Notifications
You must be signed in to change notification settings - Fork 913
Client Options
Shuanglei Tao edited this page Aug 19, 2020
·
13 revisions
ttyd has a mechanism to pass server side command-line arguments to the browser page which is called "client options"
-t, --client-option Send option to client (format: key=value), repeat to add more options
-
-t rendererType=webgl
: use the experimental webgl renderer for xterm.js -
-t disableLeaveAlert=true
: disable the leave page alert (#294) -
-t disableResizeOverlay=true
: disable the terminal resize overlay (#446) -
-t titleFixed=hello
: set a fixed title for the browser window (#133) -
-t fontSize=20
: change the font size of the terminal
You can use the client option to change all the settings of xterm defined in ITerminalOptions, examples:
-t cursorStyle=bar
-t lineHeight=1.5
-t 'theme={"background": "green"}'