您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ update_panels函数代码示例

51自学网 2021-06-03 09:15:40
  C++
这篇教程C++ update_panels函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中update_panels函数的典型用法代码示例。如果您正苦于以下问题:C++ update_panels函数的具体用法?C++ update_panels怎么用?C++ update_panels使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了update_panels函数的29个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: tui_error_va

void tui_error_va(const char *prompt, const char *err, va_list vararg){	WINDOW *win = newwin(4, 70, (LINES - 4) / 2, (COLS - 70) / 2);	PANEL *panel = new_panel(win);	wattrset(win, ERR_BORDER_ATTR);	tx_colorwin(win);	tx_box(win, ACS_VLINE, ACS_HLINE);	wattrset(win, ERR_PROMPT_ATTR);	mvwprintw(win, 2, 2, "%s", prompt);	wattrset(win, ERR_TEXT_ATTR);	wmove(win, 1, 2);	vw_printw(win, err, vararg);	update_panels();	doupdate();	int response;	do {		response = wgetch(win);		if (response == 12)			tx_refresh_screen();	} while (response == 12);	del_panel(panel);	delwin(win);	update_panels();	doupdate();}
开发者ID:bearstech,项目名称:iptraf-ng,代码行数:32,


示例2: tx_infobox

void tx_infobox(char *text, char *prompt){	WINDOW *win;	PANEL *panel;	int ch;	win = newwin(4, 50, (LINES - 4) / 2, (COLS - 50) / 2);	panel = new_panel(win);	wattrset(win, INFO_BORDER_ATTR);	tx_colorwin(win);	tx_box(win, ACS_VLINE, ACS_HLINE);	wattrset(win, INFO_TEXT_ATTR);	mvwprintw(win, 1, 2, text);	wattrset(win, INFO_PROMPT_ATTR);	mvwprintw(win, 2, 2, prompt);	update_panels();	doupdate();	do {		ch = wgetch(win);		if (ch == 12)			tx_refresh_screen();	} while (ch == 12);	del_panel(panel);	delwin(win);	update_panels();	doupdate();}
开发者ID:bearstech,项目名称:iptraf-ng,代码行数:30,


示例3: errbox

void errbox(char *message, char *prompt, int *response){    WINDOW *win;    PANEL *panel;    win = newwin(4, 70, (LINES - 4) / 2, (COLS - 70) / 2);    panel = new_panel(win);    wattrset(win, ERRBOXATTR);    colorwin(win);    box(win, ACS_VLINE, ACS_HLINE);    wmove(win, 2, 2);    wprintw(win, "%s", prompt);    wattrset(win, ERRTXTATTR);    wmove(win, 1, 2);    wprintw(win, "%s", message);    update_panels();    doupdate();    do {	*response = wgetch(win);	if (*response == 12)	    refresh_screen();    } while (*response == 12);    del_panel(panel);    delwin(win);    update_panels();    doupdate();}
开发者ID:nullren,项目名称:sillypoker,代码行数:30,


示例4: main

int main(){	WINDOW *my_wins[3];	PANEL  *my_panels[3];	PANEL  *top;	int ch;	/* Initialize curses */	initscr();g	start_color();	cbreak();	noecho();	keypad(stdscr, TRUE);	/* Initialize all the colors */	init_pair(1, COLOR_RED, COLOR_BLACK);	init_pair(2, COLOR_GREEN, COLOR_BLACK);	init_pair(3, COLOR_BLUE, COLOR_BLACK);	init_pair(4, COLOR_CYAN, COLOR_BLACK);	init_wins(my_wins, 3);		/* Attach a panel to each window */ 	/* Order is bottom up */	my_panels[0] = new_panel(my_wins[0]); 	/* Push 0, order: stdscr-0 */	my_panels[1] = new_panel(my_wins[1]); 	/* Push 1, order: stdscr-0-1 */	my_panels[2] = new_panel(my_wins[2]); 	/* Push 2, order: stdscr-0-1-2 */	/* Set up the user pointers to the next panel */	set_panel_userptr(my_panels[0], my_panels[1]);	set_panel_userptr(my_panels[1], my_panels[2]);	set_panel_userptr(my_panels[2], my_panels[0]);	/* Update the stacking order. 2nd panel will be on top */	update_panels();	/* Show it on the screen */	attron(COLOR_PAIR(4));	mvprintw(LINES - 2, 0, "Use tab to browse through the windows (F1 to Exit)");	attroff(COLOR_PAIR(4));	doupdate();	top = my_panels[2];	while((ch = getch()) != KEY_F(1))	{	switch(ch)		{	case 9:				top = (PANEL *)panel_userptr(top);				top_panel(top);				break;		}		update_panels();		doupdate();	}	endwin();	return 0;}
开发者ID:catfact,项目名称:kit,代码行数:54,


示例5: main

intmain (){  WINDOW *ventanas[3];  PANEL *paneles[3];  PANEL *top;  int ch;  int n_paneles=4444;  /* Initialize curses */  initscr ();  start_color ();  cbreak ();  noecho ();  keypad (stdscr, TRUE);  /* Initialize all the colors */  init_pair (1, COLOR_RED, COLOR_BLACK);  init_pair (2, COLOR_GREEN, COLOR_BLACK);  init_pair (3, COLOR_BLUE, COLOR_BLACK);  init_pair (4, COLOR_CYAN, COLOR_BLACK);  init_wins (ventanas, 6);  /* Attach a panel to each window *//* Order is bottom up */  paneles[0] = new_panel (ventanas[0]);	/* Push 0, order: stdscr-0 */  paneles[1] = new_panel (ventanas[1]);	/* Push 1, order: stdscr-0-1 */  paneles[2] = new_panel (ventanas[2]);	/* Push 2, order: stdscr-0-1-2 */  /* Set up the user pointers to the next panel */  set_panel_userptr (paneles[0], paneles[1]);  set_panel_userptr (paneles[1], paneles[2]);  set_panel_userptr (paneles[2], paneles[0]);  /* Update the stacking order. 2nd panel will be on top */  update_panels ();  /* Show it on the screen */  attron (COLOR_PAIR (4));  mvprintw (LINES - 2, 0, "Q->Salir");  attroff (COLOR_PAIR (4));  doupdate ();  top = paneles[2];		/* Store the top panel pointer */  while ((ch = getch ()) != 'q')    {      switch (ch)	{	case 9:	  top = (PANEL *) panel_userptr (top);	/* Find out the next panel in the cycle */	  top_panel (top);	/* Make it as the top panel */	  break;	}      update_panels ();      doupdate ();    }  endwin ();  return 0;}
开发者ID:canicue,项目名称:Seminario,代码行数:53,


示例6: main

int main(void) {	int flag=0;	initscr();	atexit(quit);	clear();	noecho();	curs_set(0);	cbreak();	keypad(stdscr, 1);	start_color();	init_pair(1, COLOR_YELLOW, COLOR_BLUE);	init_pair(2, COLOR_BLACK, COLOR_WHITE);	init_pair(3, COLOR_BLACK, COLOR_YELLOW);	win1 = newwin(10, 25, 5, 10);	win2 = newwin(10, 25, 10, 15);	box(win1, ACS_VLINE, ACS_HLINE);	box(win2, ACS_VLINE, ACS_HLINE);	pan1 = new_panel(win1);	pan2 = new_panel(win2);  	bkgd(COLOR_PAIR(1));	wbkgd(win1, COLOR_PAIR(2));	wbkgd(win2, COLOR_PAIR(3));	mvaddstr(2,4, "F9 beendet das Programm");	mvwaddstr(win1, 2, 3, "Druecke eine Taste");	mvwaddstr(win2, 7, 3, "Druecke eine Taste");		update_panels();	doupdate();	while(getch() != KEY_F(9)) {		if (flag==0) {			top_panel(pan1);			flag = 1; 		} else {			top_panel(pan2);			flag = 0;		}		update_panels();		doupdate();	} 	return (0);  }
开发者ID:bakkertj,项目名称:6502,代码行数:49,


示例7: about

void about(void){	WINDOW *win;	PANEL *panel;	int ch;	win = newwin(18, 62, (LINES - 17) / 2, (COLS - 62) / 2);	panel = new_panel(win);	tx_stdwinset(win);	wtimeout(win, -1);	wattrset(win, BOXATTR);	tx_colorwin(win);	tx_box(win, ACS_VLINE, ACS_HLINE);	wattrset(win, STDATTR);	mvwprintw(win, 1, 2, IPTRAF_NAME);	mvwprintw(win, 2, 2, "An IP Network Statistics Utility");	mvwprintw(win, 3, 2, "Version %s", IPTRAF_VERSION);	mvwprintw(win, 5, 2, "Written by Gerard Paul Java");	mvwprintw(win, 6, 2, "Copyright (c) Gerard Paul Java 1997-2004");	mvwprintw(win, 8, 2, "This program is open-source software released");	mvwprintw(win, 9, 2, "under the terms of the GNU General Public");	mvwprintw(win, 10, 2, "Public License Version 2 or any later version.");	mvwprintw(win, 11, 2, "See the included LICENSE file for details.");	mvwprintw(win, 13, 2,		  "IPv6 support by Markus Ullmann <[email
C++ update_position函数代码示例
C++ update_page_reclaim_stat函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。