linuxÖÐÈçºÎÔڵõ½µ±Ç°ÖÕ¶Ë´°¿ÚµÄ¿í¶È£¿
ÈçÌ⣬ÓÐûÓÐÄĸöº¯Êý¿ÉÒԵõ½ÖÕ¶Ë´°¿ÚµÄÐÅÏ¢£¬±ÈÈç˵¿í¶È£¿Çë¸ßÊִͽ̣¬·Ç³£¸Ðл¡£
Èç¹ûÊÇshell µÄ»°£¬¿ÉÒÔÓà $LINES ºÍ $COLUMNS ÕâÁ½¸ö±äÁ¿
Ŷ£¬¶àл¥ÉÏÐǪ̈´Í½Ì¡£ÈôÊÇÔÚÏëÔÚ³ÌÐòÖеõ½ÖÕ¶Ë´°¿ÚµÄÐÅÏ¢¸ÃÓÃÄĸöº¯ÊýµÄ£¿
·Ç³£¸Ðл¥ÉÏÐǪ̈¡£
¾ßÌåÓ÷¨ÈçÏ£º
#include <stdio.h>
#include <sys/types.h>
#include <sys/ioctl.h>
#include <unistd.h>
#include <termios.h>
int main()
{
struct winsize size;
ioctl(STDIN_FILENO,TIOCGWINSZ,&size);
printf("%d\n",size.ws_col);
printf("%d\n",size.ws_row);
return 0;
}
ÏÖÔÚ½áÌùÍøÒ³ÎÞ·¨´ò¿ª£¬»ØÍ·À´½á¡£·Ç³£¸ÐлÁ½Î»ÐǪ̈¡£
Ïà¹ØÎÊ´ð£º
ʹÓÃStruts2ÉÏ´«Îļþ£¬ÔÚlinuxϱ¨´í
2009-09-29 14:56:20,801 [org.apache.struts2.interceptor.FileUploadInterceptor]-[ERROR] Processing of multipart/form-data request failed. c:/temp/upload__1dcd07ee_12 ......
¸÷λ´óϺ£¬ÎÒÕýÔÚѧϰLinux£¬¿ÉÊÇLinuxͼÐνçÃæºÍÃüÁîÐÐÖ®¼äÇл»Óöµ½À§ÄÑ£¬ÔÚÃüÁîÐÐÏÂÊäÈëstartx£¬²»ÊǽøÈëͼÐνçÃæ
¶øÊdzöÏÖ
ÇëÎʸ÷룬ÕâÊÇΪʲô£¿ ¶øÇÒ°´Ctrl+Alt+F7£¬Ò²²»ÄÜÃüÁîÐнøÈëͼÐνçÃæ¡£&nbs ......
Ó¦ÓÃϵͳÊǰ²×°ÔÚ /opt Ŀ¼Ï£¬/opt Ŀ¼ÊÇÊôÓÚ¸ùĿ¼ / ϵġ£ÁíÍâÒ»¸öÎļþϵͳµÄ¹ÒÔØµãÊÇÔÚ/aaaĿ¼Ï£¬¿É·ñ½«/optĿ¼ÏµÄËùÓÐÎļþcopyµ½/aaaĿ¼Ï£¬umount ÔÚ/aaaĿ¼ÏµĹÒÔØµã£¬½«/aaa¸ÄÃû/optĿ¼£¬ÔÙ½«ÔÀ ......
ÔÚ×Ô¼ºµÄµçÄÔÉϰ²×°ÁËubuntu ¾ÍÊÇÏëÍæÒ»ÏÂ3D×ÀÃæ£¬ÓÚÊÇÏÂÔØÁË
compizconfig-settings-manager
emerald
simple-ccsm
fusion
ÕâЩ¶«Î÷£¬°²×°ÍêÖ®ºó£¬ÎÒÔÚµçÄÔÀïµã»÷ÁËemerald ......