Skip to content
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

change font, background color #78

Closed
keshav7 opened this issue Nov 13, 2013 · 8 comments
Closed

change font, background color #78

keshav7 opened this issue Nov 13, 2013 · 8 comments

Comments

@keshav7
Copy link

keshav7 commented Nov 13, 2013

Hi
I wanted to change the font and color for a terminal. How can i do that. Tried some values in setFont() in BufferPanel in 'terminal.debug' however no font but the default provided viz "Monospaced-14" seems to be the one which is displayed properly.

Thanks
Keshav

@Plonk42
Copy link
Contributor

Plonk42 commented Nov 13, 2013

Hi,
Please have a look at com.jediterm.terminal.ui.settings.SettingsProvider.java
This contains everything you are looking for.

An implementation example is available in com.jediterm.terminal.ui.settings.DefaultSettingsProvider.java

Regards,

@keshav7
Copy link
Author

keshav7 commented Nov 25, 2013

Hi Plonk
I tried some values(Arial,other popular fonts). However the output is very scrambled and seems no other font but the one provided seems t be displayed properly

@trofimander
Copy link

Hi Keshav, what OS do you running the terminal on?

@keshav7
Copy link
Author

keshav7 commented Nov 25, 2013

Hi
im currently running on windows

@Plonk42
Copy link
Contributor

Plonk42 commented Nov 25, 2013

The font you choose have to be monospaced for proper rendering.

If this is the case, can you please attach a screenshot, and tell us which Windows version, Java version, and font are you using?

@keshav7
Copy link
Author

keshav7 commented Nov 25, 2013

Hi Plonk
I am using:
Java version: 1.7.0_25
Windows 7
Font as 'Arial'
Uploading arialFontJedi.jpg . . .

@keshav7
Copy link
Author

keshav7 commented Nov 25, 2013

arialfontjedi

@trofimander
Copy link

Keshav, indeed the output looks not very nice. But the thing that should be done here is not to use Arial font nor any other non-monospaced one. To look good the font in terminal should be monospaced as Plonk has already mentioned.

I'd recommend to use Consolas or Source Code Pro on Windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants