zped.h

来自「这是我写的一个仿照linux下编辑器vim写的一个简单的全屏文本编辑器」· C头文件 代码 · 共 50 行

H
50
字号
#ifndef  _ZPED_H_
#define _ZPED_H_

#include <curses.h>

#define MINV(a,b) (a > b) ? b : a

#define MIN_EDITOR_ROWS 3

#define FKEY_ESC	'\x1B'

#define FKEY_ENTER 	13

#define ARRAYLEN 7

#define MAXSIZE 128

#define MAXLENGTH 100




/*the struct of the colum node*/
typedef struct colNode {
	char ch;
	struct colNode * pre;
	struct colNode * next;
} Cnode;


/*the struct of the row node*/
typedef struct rowNode {
	int num;
	struct colNode * rowHead;
	struct rowNode * pre;
	struct rowNode * next;
} Rnode;


/*the struct of the buffer node*/
typedef struct bufferNode {
	struct bufferNode * next;
	char buf[MAXSIZE];
} Bnode;



#endif

⌨️ 快捷键说明

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