亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? util.c

?? vivi bootloader,已經修改過的適用于s3c2410
?? C
字號:
/* *  util.c * *  ORIGINAL AUTHOR: Savio Lam (lam836@cs.cuhk.hk) *  MODIFIED FOR LINUX KERNEL CONFIG BY: William Roadcap (roadcap@cfw.com) * *  This program is free software; you can redistribute it and/or *  modify it under the terms of the GNU General Public License *  as published by the Free Software Foundation; either version 2 *  of the License, or (at your option) any later version. * *  This program is distributed in the hope that it will be useful, *  but WITHOUT ANY WARRANTY; without even the implied warranty of *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the *  GNU General Public License for more details. * *  You should have received a copy of the GNU General Public License *  along with this program; if not, write to the Free Software *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */#include "dialog.h"/* use colors by default? */bool use_colors = 1;const char *backtitle = NULL;const char *dialog_result;/*  * Attribute values, default is for mono display */chtype attributes[] ={    A_NORMAL,			/* screen_attr */    A_NORMAL,			/* shadow_attr */    A_NORMAL,			/* dialog_attr */    A_BOLD,			/* title_attr */    A_NORMAL,			/* border_attr */    A_REVERSE,			/* button_active_attr */    A_DIM,			/* button_inactive_attr */    A_REVERSE,			/* button_key_active_attr */    A_BOLD,			/* button_key_inactive_attr */    A_REVERSE,			/* button_label_active_attr */    A_NORMAL,			/* button_label_inactive_attr */    A_NORMAL,			/* inputbox_attr */    A_NORMAL,			/* inputbox_border_attr */    A_NORMAL,			/* searchbox_attr */    A_BOLD,			/* searchbox_title_attr */    A_NORMAL,			/* searchbox_border_attr */    A_BOLD,			/* position_indicator_attr */    A_NORMAL,			/* menubox_attr */    A_NORMAL,			/* menubox_border_attr */    A_NORMAL,			/* item_attr */    A_REVERSE,			/* item_selected_attr */    A_BOLD,			/* tag_attr */    A_REVERSE,			/* tag_selected_attr */    A_BOLD,			/* tag_key_attr */    A_REVERSE,			/* tag_key_selected_attr */    A_BOLD,			/* check_attr */    A_REVERSE,			/* check_selected_attr */    A_BOLD,			/* uarrow_attr */    A_BOLD			/* darrow_attr */};#include "colors.h"/* * Table of color values */int color_table[][3] ={    {SCREEN_FG, SCREEN_BG, SCREEN_HL},    {SHADOW_FG, SHADOW_BG, SHADOW_HL},    {DIALOG_FG, DIALOG_BG, DIALOG_HL},    {TITLE_FG, TITLE_BG, TITLE_HL},    {BORDER_FG, BORDER_BG, BORDER_HL},    {BUTTON_ACTIVE_FG, BUTTON_ACTIVE_BG, BUTTON_ACTIVE_HL},    {BUTTON_INACTIVE_FG, BUTTON_INACTIVE_BG, BUTTON_INACTIVE_HL},    {BUTTON_KEY_ACTIVE_FG, BUTTON_KEY_ACTIVE_BG, BUTTON_KEY_ACTIVE_HL},    {BUTTON_KEY_INACTIVE_FG, BUTTON_KEY_INACTIVE_BG, BUTTON_KEY_INACTIVE_HL},    {BUTTON_LABEL_ACTIVE_FG, BUTTON_LABEL_ACTIVE_BG, BUTTON_LABEL_ACTIVE_HL},    {BUTTON_LABEL_INACTIVE_FG, BUTTON_LABEL_INACTIVE_BG,     BUTTON_LABEL_INACTIVE_HL},    {INPUTBOX_FG, INPUTBOX_BG, INPUTBOX_HL},    {INPUTBOX_BORDER_FG, INPUTBOX_BORDER_BG, INPUTBOX_BORDER_HL},    {SEARCHBOX_FG, SEARCHBOX_BG, SEARCHBOX_HL},    {SEARCHBOX_TITLE_FG, SEARCHBOX_TITLE_BG, SEARCHBOX_TITLE_HL},    {SEARCHBOX_BORDER_FG, SEARCHBOX_BORDER_BG, SEARCHBOX_BORDER_HL},    {POSITION_INDICATOR_FG, POSITION_INDICATOR_BG, POSITION_INDICATOR_HL},    {MENUBOX_FG, MENUBOX_BG, MENUBOX_HL},    {MENUBOX_BORDER_FG, MENUBOX_BORDER_BG, MENUBOX_BORDER_HL},    {ITEM_FG, ITEM_BG, ITEM_HL},    {ITEM_SELECTED_FG, ITEM_SELECTED_BG, ITEM_SELECTED_HL},    {TAG_FG, TAG_BG, TAG_HL},    {TAG_SELECTED_FG, TAG_SELECTED_BG, TAG_SELECTED_HL},    {TAG_KEY_FG, TAG_KEY_BG, TAG_KEY_HL},    {TAG_KEY_SELECTED_FG, TAG_KEY_SELECTED_BG, TAG_KEY_SELECTED_HL},    {CHECK_FG, CHECK_BG, CHECK_HL},    {CHECK_SELECTED_FG, CHECK_SELECTED_BG, CHECK_SELECTED_HL},    {UARROW_FG, UARROW_BG, UARROW_HL},    {DARROW_FG, DARROW_BG, DARROW_HL},};				/* color_table *//* * Set window to attribute 'attr' */voidattr_clear (WINDOW * win, int height, int width, chtype attr){    int i, j;    wattrset (win, attr);    for (i = 0; i < height; i++) {	wmove (win, i, 0);	for (j = 0; j < width; j++)	    waddch (win, ' ');    }    touchwin (win);}void dialog_clear (void){	char *logo = "MIZI Research, Inc. ";    attr_clear (stdscr, LINES, COLS, screen_attr);    /* Display background title if it exists ... - SLH */    if (backtitle != NULL) {        int i;        wattrset (stdscr, screen_attr);        mvwaddstr (stdscr, 0, 1, (char *)backtitle);        mvwaddstr (stdscr, 0, COLS - strlen(logo), (char *)logo);        wmove (stdscr, 1, 1);        for (i = 1; i < COLS - 1; i++)            waddch (stdscr, ACS_HLINE);    }    wnoutrefresh (stdscr);}/* * Do some initialization for dialog */voidinit_dialog (void){    initscr ();			/* Init curses */    keypad (stdscr, TRUE);    cbreak ();    noecho ();    if (use_colors)	/* Set up colors */	color_setup ();    dialog_clear ();}/* * Setup for color display */voidcolor_setup (void){    int i;    if (has_colors ()) {	/* Terminal supports color? */	start_color ();	/* Initialize color pairs */	for (i = 0; i < ATTRIBUTE_COUNT; i++)	    init_pair (i + 1, color_table[i][0], color_table[i][1]);	/* Setup color attributes */	for (i = 0; i < ATTRIBUTE_COUNT; i++)	    attributes[i] = C_ATTR (color_table[i][2], i + 1);    }}/* * End using dialog functions. */voidend_dialog (void){    endwin ();}/* * Print a string of text in a window, automatically wrap around to the * next line if the string is too long to fit on one line. Newline * characters '\n' are replaced by spaces.  We start on a new line * if there is no room for at least 4 nonblanks following a double-space. */voidprint_autowrap (WINDOW * win, const char *prompt, int width, int y, int x){    int newl, cur_x, cur_y;#if 0    int i, prompt_len, room, wlen;#endif    int prompt_len, room, wlen;    char tempstr[MAX_LEN + 1], *word, *sp, *sp2;    strcpy (tempstr, prompt);    prompt_len = strlen(tempstr);	    /*     * Remove newlines     */#if 0    for(i=0; i<prompt_len; i++) {	if(tempstr[i] == '\n') tempstr[i] = ' ';    }#endif    if (prompt_len <= width - x * 2) {	/* If prompt is short */	wmove (win, y, (width - prompt_len) / 2);	waddstr (win, tempstr);    } else {	cur_x = x;	cur_y = y;	newl = 1;	word = tempstr;	while (word && *word) {		int newl2;		char *nsp;		newl2 = 0;	    sp = index(word, ' ');	    if (sp) 	        *sp++ = 0;		nsp = index(word, '\n');		if (nsp) {			*nsp++ = 0;			newl2 = 1;		}	    /* Wrap to next line if either the word does not fit,	       or it is the first word of a new sentence, and it is	       short, and the next word does not fit. */	    room = width - cur_x;	    wlen = strlen(word);	    if (wlen > room ||  	       (newl && wlen < 4 && sp && wlen+1+strlen(sp) > room		     && (!(sp2 = index(sp, ' ')) || wlen+1+(sp2-sp) > room))) {		cur_y++;		cur_x = x;	    }	    wmove (win, cur_y, cur_x);	    waddstr (win, word);	    getyx (win, cur_y, cur_x);	    cur_x++;	    if (sp && *sp == ' ') {	        cur_x++;	/* double space */		while (*++sp == ' ');		newl = 1;	    } else	        newl = 0;		if (newl2) {			cur_y++;			cur_x = x;		}	    word = sp;	}    }}/* * Print a button */voidprint_button (WINDOW * win, const char *label, int y, int x, int selected){    int i, temp;    wmove (win, y, x);    wattrset (win, selected ? button_active_attr : button_inactive_attr);    waddstr (win, "<");    temp = strspn (label, " ");    label += temp;    wattrset (win, selected ? button_label_active_attr	      : button_label_inactive_attr);    for (i = 0; i < temp; i++)	waddch (win, ' ');    wattrset (win, selected ? button_key_active_attr	      : button_key_inactive_attr);    waddch (win, label[0]);    wattrset (win, selected ? button_label_active_attr	      : button_label_inactive_attr);    waddstr (win, (char *)label + 1);    wattrset (win, selected ? button_active_attr : button_inactive_attr);    waddstr (win, ">");    wmove (win, y, x + temp + 1);}/* * Draw a rectangular box with line drawing characters */voiddraw_box (WINDOW * win, int y, int x, int height, int width,	  chtype box, chtype border){    int i, j;    wattrset (win, 0);    for (i = 0; i < height; i++) {	wmove (win, y + i, x);	for (j = 0; j < width; j++)	    if (!i && !j)		waddch (win, border | ACS_ULCORNER);	    else if (i == height - 1 && !j)		waddch (win, border | ACS_LLCORNER);	    else if (!i && j == width - 1)		waddch (win, box | ACS_URCORNER);	    else if (i == height - 1 && j == width - 1)		waddch (win, box | ACS_LRCORNER);	    else if (!i)		waddch (win, border | ACS_HLINE);	    else if (i == height - 1)		waddch (win, box | ACS_HLINE);	    else if (!j)		waddch (win, border | ACS_VLINE);	    else if (j == width - 1)		waddch (win, box | ACS_VLINE);	    else		waddch (win, box | ' ');    }}/* * Draw shadows along the right and bottom edge to give a more 3D look * to the boxes */voiddraw_shadow (WINDOW * win, int y, int x, int height, int width){    int i;    if (has_colors ()) {	/* Whether terminal supports color? */	wattrset (win, shadow_attr);	wmove (win, y + height, x + 2);	for (i = 0; i < width; i++)	    waddch (win, winch (win) & A_CHARTEXT);	for (i = y + 1; i < y + height + 1; i++) {	    wmove (win, i, x + width);	    waddch (win, winch (win) & A_CHARTEXT);	    waddch (win, winch (win) & A_CHARTEXT);	}	wnoutrefresh (win);    }}/* *  Return the position of the first alphabetic character in a string. */intfirst_alpha(const char *string, const char *exempt){	int i, in_paren=0, c;	for (i = 0; i < strlen(string); i++) {		c = tolower(string[i]);		if (strchr("<[(", c)) ++in_paren;		if (strchr(">])", c)) --in_paren;		if ((! in_paren) && isalpha(c) && 		     strchr(exempt, c) == 0)			return i;	}	return 0;}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产欧美一区二区精品忘忧草 | 日韩视频一区二区在线观看| 精品伦理精品一区| 一区二区三区毛片| 国产乱码精品一品二品| 欧美日韩不卡一区二区| 国产精品高潮久久久久无| 久久爱另类一区二区小说| 色屁屁一区二区| 久久久久国产精品人| 奇米一区二区三区| 欧美色爱综合网| 亚洲免费看黄网站| 99精品视频中文字幕| 国产日产欧产精品推荐色| 日韩高清不卡在线| 欧美日韩高清不卡| 亚洲综合男人的天堂| 成人网页在线观看| 国产婷婷一区二区| 国产福利91精品一区| 欧美精品一区二区在线播放| 日韩专区在线视频| 欧美日本一区二区三区| 亚洲国产日产av| 在线视频你懂得一区| 亚洲激情校园春色| 91首页免费视频| **欧美大码日韩| 91在线免费播放| 伊人婷婷欧美激情| 色吊一区二区三区| 亚洲综合视频在线| 欧美性猛片aaaaaaa做受| 亚洲成人tv网| 3d成人动漫网站| 日韩成人精品在线| 日韩欧美国产一区二区三区| 麻豆91免费观看| 久久一区二区三区国产精品| 国产精品69毛片高清亚洲| 中文字幕乱码亚洲精品一区| 99re亚洲国产精品| 亚洲精品美腿丝袜| 欧美精品色一区二区三区| 日本欧美韩国一区三区| 欧美精品一区二区三区蜜桃| 国产凹凸在线观看一区二区| 亚洲欧洲国产日本综合| 欧美日韩免费电影| 麻豆91精品91久久久的内涵| 国产日韩成人精品| 在线观看免费亚洲| 奇米四色…亚洲| 中文字幕第一区综合| 色欧美片视频在线观看在线视频| 亚洲成av人片一区二区梦乃| 日韩免费视频一区二区| 高清视频一区二区| 亚洲国产成人av网| 精品美女在线观看| 色综合久久综合网欧美综合网| 亚洲一区二区视频| 久久综合一区二区| 欧美做爰猛烈大尺度电影无法无天| 免费看日韩精品| 亚洲人吸女人奶水| 精品国产区一区| 91传媒视频在线播放| 精品一区二区综合| 亚洲夂夂婷婷色拍ww47| 欧美成人性福生活免费看| aaa亚洲精品| 久久99热99| 亚洲国产日韩综合久久精品| 久久精品一区二区三区不卡| 欧美视频在线播放| 波多野结衣视频一区| 日本va欧美va精品发布| 亚洲男人都懂的| 久久久久久久久久久久久女国产乱 | 亚洲在线视频网站| 国产亚洲一区二区三区四区 | 中文字幕成人av| 欧美精品黑人性xxxx| 成av人片一区二区| 久99久精品视频免费观看| 亚洲免费高清视频在线| 国产免费成人在线视频| 日韩精品一区二区三区蜜臀| 在线看不卡av| 成人丝袜视频网| 国精品**一区二区三区在线蜜桃| 亚洲成a人v欧美综合天堂下载| 国产精品免费视频网站| 久久久综合网站| 成人性生交大合| 婷婷夜色潮精品综合在线| 中文字幕中文字幕在线一区| 亚洲免费av高清| 欧美刺激午夜性久久久久久久| 欧美在线免费播放| 99久久精品情趣| 白白色亚洲国产精品| 国产成人亚洲综合色影视| 久久不见久久见免费视频7| 青青草国产成人99久久| 视频一区在线视频| 视频一区二区中文字幕| 亚洲第一二三四区| 亚洲一区在线观看免费| 亚洲精品视频在线观看网站| 亚洲同性gay激情无套| 国产精品乱码久久久久久| 国产欧美一区在线| 国产精品女同互慰在线看 | av不卡免费电影| 99re66热这里只有精品3直播 | 激情丁香综合五月| 久久国产三级精品| 久久99久久99小草精品免视看| 蜜桃av一区二区在线观看| 日韩电影在线观看网站| 免费成人结看片| 国产精品自拍一区| 成人性色生活片| 91视频一区二区三区| 在线观看91精品国产入口| 欧美图片一区二区三区| 欧美巨大另类极品videosbest| 日韩一本二本av| 国产日产欧美一区二区三区 | 中文字幕欧美日本乱码一线二线| 国产亚洲一区二区三区在线观看| 国产精品久久久久影院亚瑟| 自拍av一区二区三区| 亚洲一区二区三区中文字幕| 日韩电影一区二区三区四区| 国产麻豆成人传媒免费观看| 成人免费毛片aaaaa**| 91视频在线观看| 日韩丝袜美女视频| 国产精品电影一区二区| 伊人婷婷欧美激情| 激情综合色丁香一区二区| 国产成人在线免费观看| 欧美伊人精品成人久久综合97| 欧美一区二区三区思思人| 国产视频在线观看一区二区三区 | 亚洲乱码一区二区三区在线观看| 一区二区三区日韩欧美精品| 日韩电影免费在线| 成人黄色777网| 欧美一区二区视频在线观看| 国产欧美中文在线| 男人操女人的视频在线观看欧美| 国产成人亚洲综合色影视| 欧美综合久久久| 中文字幕国产精品一区二区| 视频精品一区二区| 国产成人精品免费网站| 在线不卡a资源高清| 中文字幕亚洲成人| 蜜臀久久久99精品久久久久久| 99精品久久只有精品| 精品国产制服丝袜高跟| 亚洲精品中文在线| 国产精品18久久久久久久网站| 欧美三级中文字幕| 欧美韩日一区二区三区四区| 日本欧美一区二区| 日本久久电影网| 国产精品久久免费看| 精品影视av免费| 欧美二区在线观看| 亚洲最新视频在线观看| 丰满亚洲少妇av| 26uuu久久天堂性欧美| 天堂成人国产精品一区| 色婷婷狠狠综合| 国产精品国产三级国产有无不卡| 久久99精品久久久久| 666欧美在线视频| 亚洲香肠在线观看| 色av成人天堂桃色av| 亚洲欧洲精品一区二区三区| 国产精品资源在线观看| 日韩精品一区二区三区中文精品| 视频一区视频二区中文| 欧美日韩国产高清一区二区 | 亚洲欧美日韩一区二区 | 国内精品免费在线观看| 日韩一区二区在线免费观看| 亚洲一本大道在线| 在线观看亚洲专区| 一区二区三区 在线观看视频| 色婷婷久久一区二区三区麻豆| 中文字幕亚洲在| 99精品欧美一区二区三区综合在线| 国产精品视频看|