Linux terminal font size
Linux Mint Forums
The dark mode beta is finally here. Change your preferences any time. Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information. Checking the source vte and gnome-terminallooks like there's no way to do this. Other terminals e. See XTerm Control Sequences :. The xterm sources include a year old script which demonstrates the feature see fonts.
Rather than using an escape sequence, you might be able to use the wmctrl tool which could ask the window manager to negotiate with the terminal. Some have done that with other terminals, e. The signal code is what you're using with the keyboard. But how you might determine the object pointer from a script starting outside the terminal emulator isn't clear. There is no easy way to do this across terminals.
Subscribe to RSS
Terminals support so called control sequences, which can set a bunch of options, like text color and others, but there is no control sequence for setting the font size. Learn more. Programatically change font size in a linux terminal using python Ask Question. Asked 1 year, 2 months ago.
Active 1 year, 2 months ago. Viewed times. I need this in order to display images in terminal with high resolution using timg. Mehdi Mehdi 3 3 gold badges 10 10 silver badges 20 20 bronze badges.
Active Oldest Votes. For colors and font, if Pt is a "? The dtterm control sequences allow you to determine the icon name and window title.
These controls may be disabled using the allowFontOps resource. If Pt begins with a " ", index in the font menu, relative if the next character is a plus or minus sign or absolute. A number is expected but not required after the sign the default is the current entry for relative, zero for absolute indexing.
Thomas Dickey Thomas Dickey Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name.Post by Dexter. Privacy Terms. For help, knowledge, and fellowship. Skip to content. Quick links.
Changing screen font sizes [solved] All Gurus once were Newbies. Forum rules There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section. Before you post please read how to get help.
Changing screen font sizes [solved] Post by Dexter. The documentation led me to understand that the system setting globally changes all font size. Not for me! I know that once I set the desired font size on a Firefox page by zoomingit "sticks", but new pages have to be adjusted as I get to them. What am I missing? Can I carry out a global font size change using the terminal?
Last edited by Dexter. Boneham on Mon Dec 02, am, edited 1 time in total. None of these are optimal, because they limit the total amount of the screen that you can see at one time. This causes you to have to either scroll the screen or turn your head more to read the screen or find menus.
If you simply change the font size without changing the graphic surroundings and placement, menus and other elements overwrite each other, rendering the screen unusable. You might also consider using terminal applications which don't depend on on-screen menus. Re: Changing screen font sizes Post by Dexter.Welcome to LinuxQuestions.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features.
Registration is quick, simple and absolutely free. Join our community today! Note that registered members see fewer ads, and ContentLink is completely disabled once you log in. Are you new to LinuxQuestions. If you need to reset your password, click here.
Subscribe to RSS
Having a problem logging in? Please visit this page to clear all LQ-related cookies. Introduction to Linux - A Hands on Guide This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter. For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration.
This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant.
They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own. Click Here to receive this Complete Guide absolutely free. What distro are you using? Please post it or better specify it in your profile so that it appears along with your name, location etc.
I assume you are talking about console fonts and not XTerm fonts. Now, where you need to specify a different font name depends on your distro. You can also specify font using the setfont command from console, but I am too lazy to find out how.
Last edited by sabit; at AM. Find More Posts by sabit. Font sizes generally are not set in. Font sizes depend more on the terminal than the shell. Would you like to change the font size in a terminal emulator, such as konsole, xterm, or aterm, or are would you like to change the font size of the console itself? I've had some luck with the setfont command in the past.
HOWTO: Change the Terminal font size on Raspberry Pi
One caveat: I know this works with a buffered terminal. For the best results on your machine, try looking through the man page for setfont. My setfont man page says: Code:. Thread Tools.
Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information. I'm using the ncurses library to change the font color, but I also want to print different sized text to the terminal, and can't figure out how to do that with ncurses. Is there a way to do this perhaps with ncurses, or with a different library?
Ideally, I'd want it to be terminal-independent, but if it's a solution that only works in Gnome, or only works in Ubuntu, or some other restriction like that then that's better than nothing!
It just shows up as the same font size specified in the terminal preferences. At least for xtermyou can change the current font by printing an escape sequence. Here's an abbreviated version of a script I use for this; I call it xfont the real one has more error checking :.
I don't know which other terminal emulators recognize this sequence. In particular, I find that it doesn't work under screeneven if the screen session is in an xterm window. Note that you have to specify the name of the font "10x20""9x15"not its size.
The best you can do is to use bold font. Terminal emulates real text-based terminal so it doesn't support different fonts at once. Some terminals have a documented way to change their font size, which affects the whole window making it "invisible" to ncurses. As noted, xterm has a feature for setting a font which is documented in XTerm Control Sequencesin the Operating System Commands section:.
The manual page documents faceName as the font-family name. While one could try adding the pixelsize property to that, it might not work. But changing the faceName works assuming that you have selected TrueType fontse. I got those names using fc-list. A similar script would work for bitmap fonts, using the names found with xlsfonts. For bitmap fonts, there are font aliases such as 9x1510x2012x24but those are only defined for a few combinations of perhaps a thousand results from xlsfonts.
Those useful font aliases, by the way, are not systematically documented anywhere. That only changes the appearance of the characters and might not change the size. But reading the documentation, it is possible using a feature adapted from rxvt to use a number to step through the settings on the font menu. This script works for me, changing the font up one, twice, down two back to the defaultup four to the end of the settingsand back:.
Because this uses a control sequence that is not from the terminal database, a cout or printf in your program is suitable. You should use putp for strings which come from the terminal database because they can contain padding information which is interpreted by putp and which would not be useful when printed directly to the terminal. Conversely, some random control sequence could look like something that could confuse putp. Padding is documented in terminfo 5. Learn more.
Edit - I put together a small page how to setup the font colors. If you want to use nearly any X-compatible font you should have a look at David Herrman's work on kmscon. The name slightly belies the project, actually, as Kernel Mode Setting is not a requirement for it to work - it also works with with frame-buffer devices - for instance if you are using proprietary AMD or nvidia display drivers. With kmscon you get multi-seat session management, xterm like keyboard and UTF-8 font handling and session control.
These settings are applied by the systemd-vconsole-setup service, which is essentially a glorified way of running setfont and loadkeys before the login services are brought up. Note that the service program allows kernel command-line options such as vconsole. If you are mucking around with GRUB kernel command-line options, bear this in mind. Using Ubuntu Sign up to join this community. The best answers are voted up and rise to the top.
Home Questions Tags Users Unanswered. Can I change the font of the text-mode console? Ask Question. Asked 7 years, 6 months ago. Active 1 month ago. Viewed k times. Is it possible to change the font used by the console? TheDudeAbides 1 1 silver badge 10 10 bronze badges. Jian Weihang Jian Weihang 1 1 gold badge 5 5 silver badges 8 8 bronze badges. Sure: wiki.Font size displayed on gnome-terminal in runlevel5 is readable as shown below:. However, the font size displayed on a virtual terminals in runlevel3 are as shown below:.
A Red Hat subscription provides unlimited access to our knowledgebase of over 48, articles and solutions. Issue Font size displayed on gnome-terminal in runlevel5 is readable as shown below: However, the font size displayed on a virtual terminals in runlevel3 are as shown below: Environment Red Hat Enterprise Linux 6 Subscriber exclusive content A Red Hat subscription provides unlimited access to our knowledgebase of over 48, articles and solutions.
New to Red Hat? Learn more about Red Hat subscriptions. Here are the common uses of Markdown. Learn more Close. Are you sure you want to request a translation? We appreciate your interest in having Red Hat content localized to your language. Please note that excessive use of this feature could cause delays in getting specific content you are interested in translated.
It only takes a minute to sign up. I have a Raspberry pi B, using Debian, just rigged up with a 3. My guess would be that a it's been deleted accidentally or b has been corrupted in some way in the file system and has disappeared. You don't need to specify the full path or the. Just something like:. Here's the simplest solution: When you log in to Linux or Unix a file named. I recently got a 7" LCD, x monitor. For the last 2 years I've communicated with my Rpi through ssh, but now I needed a system with a small monitor.
So I edited the. A 14x28 pixel font that works for me. There many hundreds of fonts. If you like a bit smaller try 24x12 or bigger 32x The benefit of doing it this way is that it works from the moment the device boots, instead of only kicking in after I log in as with the answers that use. Sign up to join this community. The best answers are voted up and rise to the top. Home Questions Tags Users Unanswered. How do I increase the terminal font size? Ask Question. Asked 7 years, 5 months ago.
Active 7 months ago. Viewed 36k times. Have I done something wrong?