curses.h

来自「geekos 0.3.0简单的操作系统」· C头文件 代码 · 共 45 行

H
45
字号
/* * Curses emulation for GeekOS * Copyright (c) 2004, David H. Hovemeyer <daveho@cs.umd.edu> * $Revision: 1.3 $ *  * This is free software.  You are permitted to use, * redistribute, and modify it as specified in the file "COPYING". *//* * This module emulates just enough of the curses API * to run the ae editor. */#ifndef CURSES_H#define CURSES_H#include <geekos/ktypes.h>struct _Window;typedef struct _Window WINDOW;extern WINDOW *stdscr;#define OK 0extern int LINES;extern int COLS;int clear(void);int getch(void);int move(int y, int x);int addch(int c);int clrtoeol(void);int clrtobot(void);int mvaddstr(int y, int x, const char *s);int refresh(void);WINDOW *initscr(void);int raw(void);int noecho(void);int idlok(WINDOW *w, bool bf);int endwin(void);#endif /* CURSES_H */

⌨️ 快捷键说明

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