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 &nbs
相关文档:
简介
Basic 是使用的最广泛的、最简单的编程语言之一,尤其是对于新手。 迄今为止,最常用的 Basic 开发环境是 Microsoft 的 Visual Basic 集成开发环境。 近来,Linux 的使用范围已经延伸到了桌面环境。从最初的仅限于服务器应用,使得人都是领导者,它正在变成一个客户端计算机的操作系统,满足了类似阅读电子邮件、上网 ......
pid_t pid=fork()
it has 3 situation for the return result pid
0 child
>0 parent process
<0 fork fail
fork create a new process and it parent live alse when the child process had been created ......
pid_t pid=fork()
it has 3 situation for the return result pid
0 child
>0 parent process
<0 fork fail
fork create a new process and it parent live alse when the child process had been created ......
实在无聊中就将原来的一些东西整理了一下,自己是个记性不好的人,隔断时间整理自己,同时也希望可以方便他人。
----------------------------------------------------------------------------------------------------------------------------------------
/**//*************************************************** ......