cursesp.h
来自「ears-0.32, linux下有用的语音信号处理工具包」· C头文件 代码 · 共 59 行
H
59 行
// This is originally from the cursesp.h in the ncurses-1.9.3 package#ifdef UI_NCURSES#ifndef _CURSESP_H#define _CURSESP_H#pragma interface#include "cursesw.h"extern "C" {#include <panel.h>}class NCursesPanel : public NCursesColorWindow { protected: PANEL *p; public: NCursesPanel(); // make a full window size panel NCursesPanel(int lines, int cols, int begin_y, int begin_x); inline ~NCursesPanel(); // basic manipulation int hide() { return hide_panel(p); } int show() { return show_panel(p); } int top() { return top_panel(p); } int bottom() { return bottom_panel(p); } int mvpan(int y, int x) { return move_panel(p, y, x); } int mvwin(int y, int x) { return move_panel(p, y, x); } static void redraw(); // redraw all panels static void refresh(); // update screen // decorations int frame(const char *title =0); int boldframe(const char *title =0);};inline NCursesPanel::NCursesPanel() : NCursesColorWindow(0, 0, 0, 0){ p = new_panel(w);}inline NCursesPanel::NCursesPanel(int lines, int cols, int begin_y, int begin_x) : NCursesColorWindow(lines, cols, begin_y, begin_x){ p = new_panel(w);}inline NCursesPanel::~NCursesPanel(){ del_panel(p); update_panels(); doupdate();}#endif // _CURSESP_H#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?