Last active
June 11, 2020 10:54
-
-
Save zthxxx/587efbe54a366c10c0088d608e480174 to your computer and use it in GitHub Desktop.
local gotty config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://github.com/yudai/gotty | |
// [string] Address to listen, all addresses will be used when empty | |
address = "localhost" | |
// [string] Port to listen | |
// ywwuyi 6655 | |
port = "6655" | |
// [bool] Permit clients to write to the TTY | |
permit_write = true | |
// [bool] Permit clients to send command line arguments in URL (e.g. http://example.com:8080/?arg=AAA&arg=BBB) | |
permit_arguments = true | |
// [object] Client terminal (hterm) preferences | |
preferences { | |
// [bool] Automatically copy mouse selection to the clipboard. | |
copy_on_select = true | |
// [bool] Whether to use the default window copy behaviour | |
use_default_window_copy = true | |
// [bool] Whether or not to blink the cursor by default. | |
cursor_blink = true | |
// [2[int]] The cursor blink rate in milliseconds. | |
// A two element array, the first of which is how long the cursor should be on, second is how long it should be off. | |
// cursor_blink_cycle = [1000, 500] | |
// [string] The color of the visible cursor. | |
// cursor_color = "#fff" | |
cursor_color = "transparent" | |
// [int] The default font size in pixels. | |
font_size = 18 | |
// [string] The background color for text with no other color attributes. | |
background_color = "#272936" | |
// [enum(null, true, false)] | |
// True if we should use bold weight font for text with the bold/bright attribute. | |
// False to use the normal weight font. | |
// Null to autodetect. | |
enable_bold = true | |
// [bool] If true, Ctrl-Plus/Minus/Zero controls zoom. | |
// If false, Ctrl-Shift-Plus/Minus/Zero controls zoom, Ctrl-Minus sends ^_, Ctrl-Plus/Zero do nothing. | |
ctrl_plus_minus_zero_zoom = false | |
// js | |
// 'data:text/css;base64,' + btoa(` | |
// x-screen::-webkit-scrollbar { display: none; } | |
// @keyframes blink { | |
// 50% { border-color: transparent; } | |
// 0%, 100% { border-color: #fff; } | |
// } | |
// .cursor-node { | |
// border: none; | |
// border-left: 2px solid #fff; | |
// animation: blink steps(1) 1.5s infinite; | |
// opacity: 1 !important; | |
// } | |
// `) | |
// | |
// [string] URL of user stylesheet to include in the terminal document. | |
user_css = "data:text/css;base64,CiAgeC1zY3JlZW46Oi13ZWJraXQtc2Nyb2xsYmFyIHsgZGlzcGxheTogbm9uZTsgfQogIEBrZXlmcmFtZXMgYmxpbmsgewogICAgNTAlIHsgYm9yZGVyLWNvbG9yOiB0cmFuc3BhcmVudDsgfQogICAgMCUsIDEwMCUgeyBib3JkZXItY29sb3I6ICNmZmY7IH0KICB9CiAgLmN1cnNvci1ub2RlIHsKICAgIGJvcmRlcjogbm9uZTsKICAgIGJvcmRlci1sZWZ0OiAycHggc29saWQgI2ZmZjsKICAgIGFuaW1hdGlvbjogYmxpbmsgc3RlcHMoMSkgMS41cyBpbmZpbml0ZTsKICAgIG9wYWNpdHk6IDEgIWltcG9ydGFudDsKICB9Cg==" | |
} | |
// [int] Timeout seconds for waiting a client (0 to disable) | |
timeout = 3600 | |
// [int] Maximum connection to gotty, 0(default) means no limit. | |
max_connection = 10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment