zoukankan      html  css  js  c++  java
  • 调整Linux终端显示分辨率

    linux 默认cli (command line interface)分辨率一般都比较小,显示的字体很大,不太美观,有时还影响结果的显示(例如出现kernel panic)。所以有必要改变一下cli的分辨率。
    计算机显示领域所用的分辨率的概念一般是指每英寸可显示的像素数,因为垂直分解度与水平分解度一般不同,所以分辨率一般用vertical resolution X horizontal resolution来表示,例如常见的1024 x 768.
    另外一个影响显示效果的因素是色深(color depth)。它表示的是每个像素点所能表示的颜色数,表示的颜色越多,所用的存储空时越大。一般 8bit 可以表示 256颜色,16bit 可表示65536种颜色。
    下面是linux下常用到的模式:
    ——————————————————————————————+
    Colors ( depth)- 640x480- 800x600- 1024x768- 1280x1024- 1600x1200|
    -------------------+---------+-----------+-----------+-------------+--------------|
    256    ( 8 bit) |   769         771          773              775           796    |
    32,768 (15 bit) |   784         787          790              793           797    |
    65,536 (16 bit) |   785         788          791              794           798    |
    16.8M (24 bit)  |   786         789          792              795           799    |
    ——————————————————————————————+

    [root@localhost ~]# cat /etc/grub.conf
    default=0
    timeout=5
    splashimage=(hd0,0)/grub/splash.xpm.gz
    hiddenmenu
    title Fedora Core (2.6.18)
            root (hd0,0)
            kernel /vmlinuz-2.6.18 ro root=/dev/VolGroup00/LogVol00 vga=775
           initrd /initrd-2.6.18.img

    一般设置775就可以了

  • 相关阅读:
    xtu数据结构 I. A Simple Tree Problem
    图论trainning-part-1 A. 最短路
    xtu数据结构 D. Necklace
    xtu数据结构 G. Count the Colors
    xtu数据结构 B. Get Many Persimmon Trees
    xtu数据结构 C. Ultra-QuickSort
    NYOJ 118 修路方案
    POJ 1679 The Unique MST
    NYOJ 115 城市平乱
    NYOJ 38 布线问题
  • 原文地址:https://www.cnblogs.com/hzb462606/p/9119881.html
Copyright © 2011-2022 走看看