jcubic / jquery.terminal

jQuery Terminal Emulator - JavaScript library for creating web-based terminals with custom commands
https://terminal.jcubic.pl
MIT License
3.12k stars 570 forks source link

How to increase the font size in the terminal? #305

Closed fracz closed 7 years ago

fracz commented 7 years ago

I did not manage to increase the font size. My custom CSS is ignored and I could not find any option that configures it. I suppose there is some magic behind this... So asking.

jcubic commented 7 years ago

If you don't care about IE and Edge then you can use css variable:

.terminal {
  --size: 2;
}

or if you need to support IE and Edge you need to set the size in pixels (em don't work):

.terminal, .cmd, .terminal .terminal-output div div, .cmd .prompt {
    font-size: 20px;
    line-height: 24px;
}

there is info abot it in style section of the api reference

fracz commented 7 years ago

Thank you!