📄 cursesp.cc
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -