Review your favorite Linux distribution.
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 09-23-2004, 03:19 AM   #1
LQ Newbie
Registered: Sep 2004
Location: Bandung
Distribution: SuSE Linux Enterprise, Ubuntu
Posts: 4

Rep: Reputation: 1
how to change terminal type

Hi everyone,

I use bash-2.5b-20 on Fedora. I'd like to know how I can change my terminal type into something else that has wider screen ( > 80 columns) ?

I have changed my /etc/profile as well as /etc/bashrc and put the following lines:

export COLUMNS = 132
stty -F /dev/tty1 columns 132

at the end of those files and rebooted the machine, but it doesn't work out the problem.

I have read Text-Terminal-HOWTO (by David S Lawyer) and it doesn't recommend changing the TERM variable, which was indeed the first thing that came into my mind. (Well, changing TERM variable didn't solve the problem too)

In the contrary, some documentation, like

h t t p : / / www (dot) cam (dot) ac (dot) uk (slash) cs (slash) docs (slash) faq (slash) t1.html

implies that changing it should do the trick.

Well, now I am really confused. Can anyone point me to the right direction?

Thank you very much.
Old 09-23-2004, 03:45 AM   #2
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,891

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
Terminfo is the terminal capability database. See the man pages for terminfo for details.
Old 09-23-2004, 11:15 PM   #3
LQ Newbie
Registered: Sep 2004
Location: Bandung
Distribution: SuSE Linux Enterprise, Ubuntu
Posts: 4

Original Poster
Rep: Reputation: 1
Thank you for your quick reply, bigrigdriver!

I was reading the manual pages and tried to grasp those symbols of terminal capability specification.
However, after doing the following steps I still don't have wider screen terminal width. Please let me know if I missed something.

[bash]$ echo $TERM
[bash]$ infocmp > linux.dat

# I modified linux.dat, adding entry "cols#132" after an entry named "colors", and saved it.
# then i changed TERMINFO to point to testing directory and finally compiled it

[bash]$ TERMINFO=/home/wahyu/l/l; export TERMINFO
[bash]$ tic linux.dat
It doesn't work. I still get the same screen width like the one before.

Any more clues?

Old 08-30-2006, 10:08 AM   #4
Registered: Aug 2005
Location: Sheffield, UK
Distribution: Gentoo
Posts: 105

Rep: Reputation: 15
Yeah, the same thing happens here.
Except that my termcap reads :co#132


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 type in terminal? DMZeplin Fedora 5 02-15-2005 02:00 PM
Can't type text in terminal window kingtas Linux - Newbie 2 01-21-2005 02:41 PM
Can't type password in terminal ts77351 Linux - General 1 06-12-2004 07:21 PM
unknown terminal type BroX Linux - Networking 0 06-02-2004 04:04 AM
PeanutLinux install : the terminal type ? Trayne Linux - Newbie 1 03-27-2003 03:36 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:39 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