Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-20-2014, 12:15 PM   #1
Registered: Apr 2012
Posts: 213

Rep: Reputation: Disabled
can i increase font size through shell scripts ?

Hi All ;

In shell script , how can i display bigger font size.
This program is working well but i cannot increase bigger font size.

PHP Code:
 # .bash_profile

# Get the aliases and functions
if [ -~/.bashrc ]; then
. ~/.bashrc

# User specific environment and startup programs


export PATH
while true
tput cup 10 8
sleep 2
tput cup 10 8
echo " THIS IS SAM"
sleep 2

Last edited by thiyagusham; 04-20-2014 at 12:16 PM.
Old 04-20-2014, 04:38 PM   #2
LQ Guru
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
Terminals and console have a fixed font size. You can change the terminal settings or the resolution of the console in some way or another, but this won't give you the desired effect of a single bigger echo output. Instead you can use something like figlet or toilet to display large text using other characters (once upon a time the banner command). Here is a brief explanation. Hope this helps.
Old 04-21-2014, 09:17 AM   #3
Senior Member
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,654

Rep: Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255
Unless the terminal is an old DEC vt100, with double height/double width capability...

Terminals are limited as they are not "smart" devices.

To get that effect you use a GUI toolkit with X window (or the equivalent) where multiple fonts are supported.
Old 04-21-2014, 11:09 AM   #4
Senior Member
Registered: Feb 2003
Distribution: debian
Posts: 2,516
Blog Entries: 1

Rep: Reputation: 493Reputation: 493Reputation: 493Reputation: 493Reputation: 493
In X you can set a font and size for the xterm you use. For eterm it would look something like " -F *-fixed-*-*-*-*-18-* " where the name is one that exists and is selectable from xfontsel. There used to be an XVGAsettextmode or similarly named thing that could change the resolution of your console screen on the fly. It was hit or miss, but was one way to increase font size by decreasing screen resolution. These days you'd probably have to configure a video mode in grub which you'd have to reboot to change again.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to increase font size in command johnabraham Linux - Hardware 2 12-22-2012 03:33 PM
aterm - how do I increase the font size? dkaplowitz Linux - Newbie 4 09-24-2009 08:03 PM
increase font size? MsDoomshroom DamnSmallLinux 4 04-22-2008 03:15 PM
How to increase font size in EmacsX? kornerr Linux - General 2 06-30-2005 12:50 AM
How to increase the font size in Mozilla ? wlaw Linux - Software 4 09-21-2004 05:03 PM

All times are GMT -5. The time now is 09:12 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration