Welcome to Linux Knowledge Base and Tutorial
"The place where you learn linux"
Karen Lilly Creations

 Create an AccountHome | Submit News | Your Account  

Tutorial Menu
Linux Tutorial Home
Table of Contents

· Introduction to Operating Systems
· Linux Basics
· Working with the System
· Shells and Utilities
· Editing Files
· Basic Administration
· The Operating System
· The X Windowing System
· The Computer Itself
· Networking
· System Monitoring
· Solving Problems
· Security
· Installing and Upgrading
· Linux and Windows

Glossary
MoreInfo
Man Pages
Linux Topics
Test Your Knowledge

Site Menu
Site Map
FAQ
Copyright Info
Terms of Use
Privacy Info
Disclaimer
WorkBoard
Thanks
Donations
Advertising
Masthead / Impressum
Your Account

Communication
Feedback
Forums
Private Messages
Surveys

Features
HOWTOs
News Archive
Submit News
Topics
User Articles
Web Links

Google
Google


The Web
linux-tutorial.info

Who's Online
There are currently, 61 guest(s) and 0 member(s) that are online.

You are an Anonymous user. You can register for free by clicking here

  

resizecons



SYNOPSIS

       resizecons COLSxROWS
       resizecons -lines ROWS


DESCRIPTION

       The  resizecons  command  tries to change the videomode of
       the console.  There are several aspects to this:  (a)  the
       kernel  must  know  about  it,  (b) the hardware must know
       about it, (c) user programs must know about  it,  (d)  the
       console font may have to be adapted.

       (a)  The  kernel  is told about the change using the ioctl
       VT_RESIZE.  This causes the kernel to  reallocate  console
       screen  memory for all virtual consoles, and might fail if
       there is not enough memory.  (In that case, try to  disal­
       locate  some  virtual consoles first.)  If this ioctl suc­
       ceeds, but a later step fails (e.g., because  you  do  not
       have  root permissions), you may be left with a very messy
       screen.

       The most difficult part of this is (b), since it  requires
       detailed  knowledge  of  the  video card hardware, and the
       setting of numerous registers. Only changing the number of
       rows  is  slightly  easier,  and resizecons will try to do
       that itself, when given the -lines option. (Probably, root
       permission will be required.)  The command resizecons COL­
       SxROWS will  execute  restoretextmode  -r  COLSxROWS  (and
       hence requires that you have svgalib installed). Here COL­
       SxROWS is a file that  was  created  earlier  by  restore­
       textmode -w COLSxROWS.  Again, either root permissions are
       required, or restoretextmode has to be suid root.

       In order to deal with (c), resizecons does  a  `stty  rows
       ROWS  cols  COLS'  for  each  active console (in the range
       tty0..tty15), and sends a SIGWINCH signal to selection  if
       it finds the file /tmp/selection.pid.

       Finally, (d) is dealt with by executing a setfont command.
       Most likely, the wrong font is loaded, and you may want to
       do another setfont yourself afterwards.


BUGS

       resizecons  does  not  work on all hardware.  This command
       used to be called resize, but was renamed  to  avoid  con­
       flict with another command with the same name.


SEE ALSO

       setfont(8),   stty(1),  selection(1),  restoretextmode(8),
       disalloc(8)

  




Login
Nickname

Password

Security Code
Security Code
Type Security Code


Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.

Help if you can!


Amazon Wish List

Did You Know?
You can help in many different ways.


Friends



Tell a Friend About Us

Bookmark and Share



Web site powered by PHP-Nuke

Is this information useful? At the very least you can help by spreading the word to your favorite newsgroups, mailing lists and forums.
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters. Articles are the property of their respective owners. Unless otherwise stated in the body of the article, article content (C) 1994-2013 by James Mohr. All rights reserved. The stylized page/paper, as well as the terms "The Linux Tutorial", "The Linux Server Tutorial", "The Linux Knowledge Base and Tutorial" and "The place where you learn Linux" are service marks of James Mohr. All rights reserved.
The Linux Knowledge Base and Tutorial may contain links to sites on the Internet, which are owned and operated by third parties. The Linux Tutorial is not responsible for the content of any such third-party site. By viewing/utilizing this web site, you have agreed to our disclaimer, terms of use and privacy policy. Use of automated download software ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and are therefore expressly prohibited. For more details on this, take a look here

PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.11 Seconds