-
Notifications
You must be signed in to change notification settings - Fork 483
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
customize the terminal looks #140
Comments
No. There are two files that take care of any user modifications to tty.js including javascript and css changes. So, for example, changing the terminal's background color to Ubuntu's deep purple, you can create a user.css file, and add this to it: The important is necessary in this case since the terminal background color is set in the style attribute of .terminal and changing the actual class's background won't win over the style attribute. Most of the things on tty.js besides the terminal itself (terminal title, webpage background, etc.) can be done without the !important thing. You can also customize the tty.js interface a bit with javascript. for example, making tty.js open up a terminal in fullscreen as soon as you log in, can be done by adding my gists user.js. |
Hello, there is also a 'static' configuration option. You can use that to point to your own content to be served. You could do something like this: var app = tty.createServer({
shell: 'bash',
users: {
foo: 'bar'
},
static: './app',
port: 8000
}); Now the app directory can contain your own markup, js, and css without touching the files in this projects static directory. |
I can't open this link, could you tell me how to do it? That's exactly what I need. |
setTimeout(() => {
I open the terminal by default in this way, but it doesn't feel very good. |
Hi, this project is awsome. if I want to customize the looks of the terminal, is it the static/style.css where I should modify.
The text was updated successfully, but these errors were encountered: