LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 11-01-2003, 07:09 PM   #1
TastyWheat
Member
 
Registered: Aug 2003
Location: Texas
Distribution: Knoppix 5.0.1, Fedora Core 5
Posts: 66

Rep: Reputation: 15
Changing Text Size/Terminal Width in Bash


How can I (assuming it is possible) change the size of my text on the command line in a Bash shell. I don't mean from a terminal window, I mean from the normal command line (no GUI). When I'm editing files vim does a whole lot of wrapping and it's really annoying. Does vim perhaps have a way to change the text size? Any help is appreciated.
 
Old 11-02-2003, 01:05 AM   #2
Robert0380
Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
this is done by using frame buffering (in the kernel).

If you kernel has frame buffer support, you can edit your LILO or GRUB conf file to use frame buffereing and set the mode you want. the setup is different for different files. in LILO you waill add

vga=xxx where xxx is a number from a chart

in GRUB you'll add the same but you would have to add it to the line that says
kernel (hd0,0) .... vga=xxx


now the problem with this is that sometimes it doesnt work and when u boot you'll get a completely black screen. so to test this out, you'll want to create a new line in your file (lilo or grub.conf) so that if it doesnt work, you have a good configuration to boot into. i think the alterntavie for grub is to add it as an option when you boot up (i think you hit 'a' or some key before you choose an OS)

here is the chart:

Code:
          640x480  	800x600  	1024x768  	1280x1024
8 bpp 	 769 	           771 	        773 	              775
16 bpp 	785 	          788 	            791 	     794
32 bpp 	786 	          789 	            792 	     795
cant get it to line up but u should get the point. dont be too agressive with the values. try 771 or 773 or even 769 1st. And like i said, you need kernel support for this but it might already be built in so it's worth a shot to try it out. and please make sure you add an second entry in your grub file that matches your current default boot system with just the difference of having the vga=xxx part so that if it messes up u can boot the system back up with the safe configuration.

Last edited by Robert0380; 11-02-2003 at 01:10 AM.
 
Old 11-02-2003, 11:24 PM   #3
TastyWheat
Member
 
Registered: Aug 2003
Location: Texas
Distribution: Knoppix 5.0.1, Fedora Core 5
Posts: 66

Original Poster
Rep: Reputation: 15
thanks a lot. that worked just fine. I did it using GRUB and kernel version 2.4.20-8 btw.
 
  


Reply


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing terminal font size rose_bud4201 Linux - General 4 05-26-2005 08:17 AM
changing text size on command line anvilmonkey Linux - Software 1 03-21-2005 03:40 PM
How can a bash script findout the width of the terminal window alex.e.c Linux - Software 2 10-14-2004 11:20 AM
Changing bash profile doesn't affect new terminal windows... SAFX Linux - Newbie 5 10-12-2004 11:51 AM
Text Size Keeps Changing mikeCanada Linux - Newbie 3 07-28-2004 07:28 AM


All times are GMT -5. The time now is 10:23 AM.

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