Can Linux Display More Than 25 Lines - display more than 25 lines in console

free web hosting
Free Web Hosting > Computers & Tech > Operating Systems > Linux

Can Linux Display More Than 25 Lines - display more than 25 lines in console

jedipi
Recently, I need to test a program in linux.
The program is running on console mode (xwindows is not started).
Screen resolution is 640×480.
Only 25 lines of charaster can be displayed.
I feel sick to scroll up and down all the time to find out some information.

is there any way to make it display more than 25 lines in the linux console mode.

I guest, changing the screen resolution may solve this problem!??
Am I right?



Reply

mastercomputers
I'm assuming it's 80 characters wide x 25 characters down which is standard Linux terminal size. It does seem it'll be a slim chance that you could change it, although I know you can definitely change it, I don't think that it's display would be great.

If you know your program will go over the 25 lines limit run it with | more,

e.g. ./yourprogram | more

and this will prompt you to press a key to display more, space bar moves down a whole page.

If you do however want to try it out, I'll will tell you how to configure it.

Cheers,


MC

Reply

qwijibow
Of course you can change it biggrin.gif

You send a message to the kernel telling it to use th VESA framebuffer for consoles.
if you re old enough, you will remember that the vesa frame buffer was used before X11 to display graphical games like Quake..

here's how it works...
as root, with your faveorite text editor, open up the file "/boot/grub/menu.lst"

you should see somthing similar to this...

CODE

default 0
timeout 10
splashimage=(hd0,1)/boot/grub/splash.xpm.gz
title Gentoo GNU/Linux (kernel 2.6.10-r1 vanilla)
       root (hd0,1)
       kernel /boot/bzImage root=/dev/hda2
title Microsoft WindowsXP
       rootnoverify (hd0,0)
       chainloader +1


you need to add the following t the end of the line that begins with the word "kernel"

CODE

vga=0x318 video=vesafb:mtrr,ywrap


0x318 is a kernel resolution code.
any resolution between 600x480 and 1600xSomthing
is possable, but will be limited by your craphics cards and monitors maximum.

0x318 is the mode i use, and gives me approxamatly 50 lines of console..
i think the maximum readable lins is 80, after that the text gets too small.

you will need to keep trying different resolution codes untill you find one that A: is supported by your craphics card. B: is a comfortable font size for you.

here is a list o resolution codes...

taken from http://www.tldp.org/HOWTO/Framebuffer-HOWTO-5.html section 5.3
if the following table doesnt line up / isnt readable, click this link.
QUOTE
Colours  640x400 640x480 800x600 1024x768 1152x864 1280x1024 1600x1200
--------+--------------------------------------------------------------
4 bits |    ?      ?    0x302      ?        ?        ?        ?
8 bits |  0x300  0x301  0x303    0x305    0x161    0x307    0x31C
15 bits |    ?    0x310  0x313    0x316    0x162    0x319    0x31D
16 bits |    ?    0x311  0x314    0x317    0x163    0x31A    0x31E
24 bits |    ?    0x312  0x315    0x318      ?      0x31B    0x31F
32 bits |    ?      ?      ?        ?      0x164      ?



You can do som pretty cool things with the frame buffer.
like for example a booting splash screen, with a scroll bar (similar to that used bu windowsXP while its booting)

anyway.. this SHOULD work... it may not if you are using a very old linux distro, or you compiled the kernel yourself, and removed vesa framebuffer support.

enjoy !

 

 

 


Reply

jedipi
Thanks guys...

I just added vga=0x303 to the end of the line that begins with the word "kernel" in grub.conf.
And it really works fine.

It is cool when open "multi-windows" in emacs after I set it to 1024x768

A logo appear when the system is booting.
Thats very cool..

Reply

qwijibow
thats nothing...

have a look at these consoles (just plain connsoles, X is not running)
http://dhruba.codewordt.co.uk/images/2.6-bs.jpg
http://dhruba.codewordt.co.uk/images/small_fonts_fb.png
http://dhruba.codewordt.co.uk/images/bootsplash.png

anyways, glad to hear it all worked.

Reply


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

Recent Queries:-
  1. 0x162 mplayer suse - 587.10 hr back. (1)
Similar Topics

Keywords : linux, display, 25, lines, display, 25, lines, console

  1. When And What Is Your First Linux Experience?
    (4)
  2. I Want To Get Linux, Which One Is Best?
    (6)
    currently have Windows XP (god help me) and want to change to Linux. I know that Linux is
    open-source, but does that mean that it is free? I have no idea on the matter so I decided to
    consult the forums. ....
  3. Linux Software Installation Help
    it tells how to install software in tar.bz2 or .bin extension (2)
    installing .tar.bz2 software open the terminal window.Place the s/w in root's home..then
    write file.tar.bz2 in terminal. uncompressing will take place.a folder with .tar extension will b
    created.Now write tar -xvf filename.tar,contents will be read..Now,move to the directory just
    created..read the readme file..follow instruction such as make or make install to be commanded in
    terminal...now its done..use it by writing in terminal for ex. mplayer movie.avi. ..or just drop ur
    movie file nin the terminla..nd remove the " " in the file..append mplayer with blank spa....
  4. Which Linux Version For Newbies?
    Give your opinion (14)
    Hi, well i have been a windows user all my life, and I'm really satisfied with it. But from a
    time know as a good programmer/user, I want to know what I'm missing(or not) from not using
    linux, so for those who have a long time using it I would like you to ask a favor, if you could
    recommend me the version that I should test. I don't understand when someone says to a newbie in
    linux that is asking for a version to start, they say to them "well ubuntu(example) is a good
    version to start", what are the real diference between the different types of linux. ....
  5. Why Linux?
    (23)
    i have always wonder, what is so special about linux? why do people have linux? rather than windows
    or mac? is it recommended that noobs like me /laugh.gif" style="vertical-align:middle"
    emoid=":lol:" border="0" alt="laugh.gif" /> have an linux os? /rolleyes.gif"
    style="vertical-align:middle" emoid=":rolleyes:" border="0" alt="rolleyes.gif" />....
  6. Choice Of Motherboard For Linux Virtualization
    Who knows which ones work well? (5)
    Virtualization is a relatively arcane subject, but it is one which is very rapidly growing, and
    apparently very "hot" in commercial enterprises. For the hobbyist with multiple computers (I have
    8), it offers the possibility of taking snapshots of running, fully configured applications and
    operating systems, and transferring some or all of them onto a single computer platform. First, it
    saves energy. Second, once the conversion has been made from real hardware to a virtual "guest,"
    the driver problems associated with moving from one hardware platform to another are sol....
  7. Linux Basic Command - For Storing Compilation Error To File
    (1)
    Ex: Compiling a cpp file using a basic command " g++ filename.cpp " and to run the program use
    ./a.out , Then to store the compilation error to text file use this command. g++ test.cpp >
    log.txt log.txt contains the compile time errors. ....
  8. Linux For Beginners- Easy To Install
    (16)
    Which Linux distru is for beginners and Easy to install?....
  9. Access Linux Box From Windows Machine- Putty Tool
    (2)
    Most of the guys want to access Linux box from Windows machine just to do some programming on the
    command line. The "Putty Tool" is the solution for this. Just google for "Putty" and download this
    small package(less then 1MB) and keep it on your desktop. Just you need to configure the linux
    machine IP on this Putty tool and connect to Linux machine. If you face any problem in configuring
    Linux IP, then let me know, i will help you out. If you think this is help full, please rate this.....
  10. How To Copy File & Folders From Linux To Windows?.
    (12)
    Many face problem while transfering file from Linux to windows and Vise versa. My solution for
    this is "winscp405". Winscp is a windows freeware tool used to copy file from & to Linux machine.
    To get this tool just google for " winscp405" tool and download this small package and install.
    Enjoy working with Linux and windows /tongue.gif" style="vertical-align:middle" emoid=":P"
    border="0" alt="tongue.gif" />....
  11. Some Usefull Linux Basic Commands And Utilities. Please Add To This List If You Know One.
    (0)
    Let me give some usefull linux commands and utilities. Please add to this list if you know.
    Work with tar files. To make tar archive use $ tar -cvf filename.tar filename
    To extract tar archive use $ tar -xvf filename.tar To extract tar archive
    with gz use $ tar -xzvf filename.tar.gz Connect to remote system through ssh
    $ ssh name@ip followed by passwd e.g. ssh project@172.16.0.14 passwd: List the
    file in current directory $ ls -l list the running process ....
  12. How To Play Music And Movie In Linux? Which Is The Good One?.
    (6)
    How to play Movie and music on linux. I am using fedora and i dont think so any player is specific
    to any one flavour of linux. I have used "MP3 blaster" player, but this you need to play from
    command line. Any other user friendly player pls let me know /rolleyes.gif"
    style="vertical-align:middle" emoid=":rolleyes:" border="0" alt="rolleyes.gif" /> ......
  13. So, I Want To Try Out Linux.
    What do I need? (9)
    If I want to use Linux, would I need XP or a OS on a LAPTOP already? Or can I just pure boot Linux?
    I've wanted to use Linux for a while, preferably Ubuntu. Unless those are two completely
    different things. /dry.gif" style="vertical-align:middle" emoid=" I don't know, I have never
    used Linux before. /tongue.gif" style="vertical-align:middle" emoid=":P" border="0"
    alt="tongue.gif" /> So, any help?....
  14. What Is Linux
    Introduction to Linux (2)
    QUOTE "Linux" generally refers to an open-source Unix-clone operating system based on the Linux
    kernel, written from scratch originally by Linus Torvalds and other smart people from across the
    web. Although the linux kernel, which interfaces with a computer's hardware, is the core of the
    operating system, many other programs are needed to form a complete operating system. Various
    commercial and non-commercial groups produce Linux-based operating systems containing the kernel,
    all necessary programs, and an installer. These different versions of linux are referr....
  15. Linux?
    (3)
    What is the pros and cons of linux? Does it cost money to get or is it free?....
  16. Diablo 2 In Linux?
    possible or not? (10)
    Hey! Sorry if this should be in the game forum, but it is about a game in Linux. And I need help
    with it /tongue.gif" style="vertical-align:middle" emoid=":P" border="0" alt="tongue.gif" /> so I
    thougt that it belongs to here. So.. Is it possible to install Diablo 2 on Linux using some sort of
    patch, or any special software? Not just diablo. But other games too, that only works on Windows.
    Thanks //Feelay....
  17. What Softwares Should I Get To Linux?
    Need help from all the Gurus out there :P (6)
    Hey! I've just downloaded and installed ubuntu (sorry Yordan. That was the only one that
    didn't need a CD). Now I have some questions. What Anit-virus and Anti-Spyware should I use (or
    don't I need any for Linux?)?. What 2D/3D editor can I use to create/change pictures and things?
    What Audio Editor can I use to create/change songs and things? What Web-broswer can I use for Linux?
    (or can it also use fire-fox?). Is there any MSN for Linux? or does it use something else, that can
    write to people using MSN? And if there is anything else I need to get, I would r....
  18. How To Install Linux Without A CD or DVD?
    Would like to learn how to use Linux but don't know how to install (11)
    Hey! I've tryed to install linux without a cd (as they said on the website).. But I did'nt
    understand it so good =/ Can anyone please tell me how I can install linux without a CD? Any
    version.. The only thing I need is a fast one (faster than windows).. I am completly new (never
    tried it before) and would want to learn Linux. But thats not easy, if I don't know hoiw to
    install it /sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" /> Thanks
    //Feelay....
  19. Virtualization In Linux: A Review Of Four Software Choices
    (4)
    Virtualization is the technique of running a "guest" operating system inside an already-running OS;
    for example, Windows inside Linux, or vice-versa. This article compares four virtualization products
    available for Ubuntu Linux: the free, open source Qemu; the closed-but-free versions of VirtualBox
    and VMware-Server, and the commercial Parallels.
    http://www.techthrob.com/tech/linux_virtualization.php _________________________________
    http://dserban01.googlepages.com/linkedin....abap.basis.html ....
  20. Looking For Linux
    2 choices that I will choose - make it easy to install and MAINTAIN (34)
    Ok I have tried Linux before, it was ok, until something with the kernel screwed up and it left me
    with a command line interface that I didn't know what to do. I am looking for 2 different
    distributions of Linux here, my first one is for: (Currently running Windows XP SP2) A computer
    with 512 MB RAM Pentium 4 processor Internet Access GNOME or KDE desktop, doesn't matter Minimal
    command line work!!! Absolutely no command line work when installing. I have tried Ubuntu, it was
    easy enough. Anything easier than Ubuntu and I'll give it a try. My second cho....
  21. Psybnc - Howto
    How to make a psyBNC on Linux (4)
    Installation First, fetch the latest source code from http://www.psybnc.at QUOTE cd wget
    http://www.psybnc.at/download/beta/psyBNC-2.3.2-7.tar.gz tar -zxvf psyBNC-2.3.2-7.tar.gz cd psybnc
    Configuration QUOTE make menuconfig Now go in `Bouncer Config', next set Listening
    Port and Ip. Next select `User' Here you will be able to create a user for your bouncer. You
    must set Ident, Realname and Password, and vhost too. So return to main menu, and choose exit. When
    prompted for saving select Yes. Launching psyBNC QUOTE make ./psybnc ....
  22. What Made You Switch To Linux?
    (61)
    I first tried Linux a few years ago, not because I was completely against Windows or anything like
    that, but just because I had some free time on my hands. I started off with Mandrake 9.0 which was
    very user friendly and Windows-like. After reading through a bunch of message boards and learning
    which distros are good for what, I soon realized my current distro was great for Linux noobs. So
    then I decided to try something a little more advanced like Slackware which I knew had a steep
    learning curve. Since then I've been using Slackware as my main OS and couldn'....
  23. Where To Find Notepad++ For Linux ?
    (37)
    I'm searching 2 days ago trying to find notepad++ for linux but i couldn't find it yet,
    does anyone know or have this great software?, ofcourse i have it on windows, but i don't use
    windows so much time, most times i'm on linux so i need it to be run on linux. P.S: i don't
    use WINE so please don't recommend it /smile.gif" style="vertical-align:middle" emoid=":)"
    border="0" alt="smile.gif" /> ....
  24. What Language Is Linux Written In ?
    (15)
    I''ve been wondering lately, what language is Linux written in? I'm interested in
    this, because my friend and I are considering writing our own distro. I know, it sounds like a bit
    of a feat, but one guy wrote MEPIS by playing with the Debian source code. I think the two of us
    could do something similar. /tongue.gif' border='0' style='vertical-align:middle' alt='tongue.gif'
    /> ....
  25. New Nvidia Display Driver Was Released On 1/6
    support opengl 2.0, Version: 1.0-7664 (2)
    The new Nvidia display card driver released on 1/6. It support openGL 2.0 now... tha's very
    cool now I can turn on the openGL for rendering in gxmame.. hhaa Here are some release highlights:
    * Added OpenGL 2.0 Support. * Added initial support for Xinerama + OpenGL; see APPENDIX V in the
    text README. * Added support for the EXT_framebuffer_object OpenGL extension. for more detail,
    please click here: http://www.nvidia.com/object/unix.html ....
  26. What's The Difference Between Linux And Unix?!?
    (18)
    are they even made by the same people...?....
  27. You can Play now in Linux
    These is a list of the games. (26)
    You can Play a greates gameg in linus as: Unreal Tournament Quake 3 Wolfenstein Enemy teritory Medal
    of Honor And Emule Nintendo 64 and Play Station games. He have your property games as: Tux Raser
    Tux Cart Flith of the amazon queen Beneath a Steel Sky and most more.....
  28. Linux SuSE detec you all hareware
    Yea SuSE detec all. (2)
    Yea SuSE heve the best tools. Mplayer, Xmms, OpenOfecce, K3B, FireFox etc.....
  29. Now Linux is ease
    The linux SuSE 9.1 is most ease linux (9)
    /tongue.gif' border='0' style='vertical-align:middle' alt='tongue.gif' /> if you desire to do
    your linux most ease, I recommend yourself to change you to SuSE 9.1 and your life to be ease. These
    linux make all to you. you don't need to make nothing. /biggrin.gif' border='0'
    style='vertical-align:middle' alt='biggrin.gif' /> ....
  30. Running Linux on slow computers
    (12)
    I'm wondering if Mandrake 9.2 with X can be used on slow machine like: Pentium 350, 64mb ram,
    2mb graphic card. I don't want to install any servers (ssh maybe).....

    1. Looking for linux, display, 25, lines, display, 25, lines, console






*SIMILAR VIDEOS*
Searching Video's for linux, display, 25, lines, display, 25, lines, console
Similar
When And What Is Your First Linux Experience?
I Want To Get Linux, Which One Is Best?
Linux Software Installation Help - it tells how to install software in tar.bz2 or .bin extension
Which Linux Version For Newbies? - Give your opinion
Why Linux?
Choice Of Motherboard For Linux Virtualization - Who knows which ones work well?
Linux Basic Command - For Storing Compilation Error To File
Linux For Beginners- Easy To Install
Access Linux Box From Windows Machine- Putty Tool
How To Copy File & Folders From Linux To Windows?.
Some Usefull Linux Basic Commands And Utilities. Please Add To This List If You Know One.
How To Play Music And Movie In Linux? Which Is The Good One?.
So, I Want To Try Out Linux. - What do I need?
What Is Linux - Introduction to Linux
Linux?
Diablo 2 In Linux? - possible or not?
What Softwares Should I Get To Linux? - Need help from all the Gurus out there :P
How To Install Linux Without A CD or DVD? - Would like to learn how to use Linux but don't know how to install
Virtualization In Linux: A Review Of Four Software Choices
Looking For Linux - 2 choices that I will choose - make it easy to install and MAINTAIN
Psybnc - Howto - How to make a psyBNC on Linux
What Made You Switch To Linux?
Where To Find Notepad++ For Linux ?
What Language Is Linux Written In ?
New Nvidia Display Driver Was Released On 1/6 - support opengl 2.0, Version: 1.0-7664
What's The Difference Between Linux And Unix?!?
You can Play now in Linux - These is a list of the games.
Linux SuSE detec you all hareware - Yea SuSE detec all.
Now Linux is ease - The linux SuSE 9.1 is most ease linux
Running Linux on slow computers
advertisement




Can Linux Display More Than 25 Lines - display more than 25 lines in console