cursesp.cc

来自「ears-0.32, linux下有用的语音信号处理工具包」· CC 代码 · 共 59 行

CC
59
字号
#ifdef UI_NCURSES/*  written and  Copyright (C) 1993 by Anatoly Ivasyuk (anatoly@nick.csh.rit.edu)*/#if !defined(lint)static char vcid[] = "$Id: cursesp.cc,v 0.20.1.1 1996/03/07 20:14:57 ralf Exp $";#endif // !lint#pragma implementation#include "cursesp.h"void NCursesPanel::redraw(){PANEL *pan;	pan = panel_above(NULL);	while (pan) {		::touchwin(panel_window(pan));		pan = panel_above(pan);	}	update_panels();	::doupdate();}void NCursesPanel::refresh(){	update_panels();	::doupdate();}int NCursesPanel::boldframe(const char *title){	standout();	box();	if (title)		mvwaddstr(w, 0,		((p->wendx - p->wstartx + 1) - strlen(title)) / 2,		title);	return standend();}int NCursesPanel::frame(const char *title){	if (!title) {		return box();	} else {		box();		return mvwaddstr(w, 0,			((p->wendx - p->wstartx + 1) - strlen(title)) / 2,			title);	}}#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?