diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-17 13:51:13 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-17 13:51:13 +0800 |
commit | 1b0e3ccd58a342a56779dd843abd0f5e3f1c9dea (patch) | |
tree | 12dc7038fb55d523fb6c9548e83e89720586d6de /include | |
parent | 9e11577128c92707c2db3f3e44814a3be0d7bf6f (diff) | |
download | pttbbs-1b0e3ccd58a342a56779dd843abd0f5e3f1c9dea.tar pttbbs-1b0e3ccd58a342a56779dd843abd0f5e3f1c9dea.tar.gz pttbbs-1b0e3ccd58a342a56779dd843abd0f5e3f1c9dea.tar.bz2 pttbbs-1b0e3ccd58a342a56779dd843abd0f5e3f1c9dea.tar.lz pttbbs-1b0e3ccd58a342a56779dd843abd0f5e3f1c9dea.tar.xz pttbbs-1b0e3ccd58a342a56779dd843abd0f5e3f1c9dea.tar.zst pttbbs-1b0e3ccd58a342a56779dd843abd0f5e3f1c9dea.zip |
- (internal) getans -> vans
- (internal) update license
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4175 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include')
-rw-r--r-- | include/proto.h | 2 | ||||
-rw-r--r-- | include/visio.h | 23 |
2 files changed, 16 insertions, 9 deletions
diff --git a/include/proto.h b/include/proto.h index 674fea53..91b8ddd2 100644 --- a/include/proto.h +++ b/include/proto.h @@ -604,8 +604,6 @@ int search_aidu(char *bfile, aidu_t aidu); int log_user(const char *fmt, ...) GCC_CHECK_FORMAT(1,2); time4_t gettime(int line, time4_t dt, const char* head); void setcalfile(char *buf, char *userid); -char getans(const char *fmt,...) GCC_CHECK_FORMAT(1,2); -int getkey(const char *fmt,...) GCC_CHECK_FORMAT(1,2); int show_file(const char *filename, int y, int lines, int mode); int cursor_key(int row, int column); int search_num(int ch, int max); diff --git a/include/visio.h b/include/visio.h index 06b78907..aafcd0af 100644 --- a/include/visio.h +++ b/include/visio.h @@ -3,8 +3,10 @@ #define _VISIO_H /* - * visio.c - * High-level virtual screen input output control + * visio.h + * piaip's new implementation of visio + * + * see visio.c for license, usage, and introduction. */ #include "bbs.h" @@ -37,19 +39,19 @@ #define VCOL_MAXW (INT16_MAX) #define VFILL_DEFAULT (0x00) -#define VFILL_NO_ANSI VFILL_DEFAULT +// #define VFILL_NO_ANSI VFILL_DEFAULT #define VFILL_HAS_ANSI (0x01) -#define VVILL_LEFT_ALIGN VFILL_DEFAULT +// #define VVILL_LEFT_ALIGN VFILL_DEFAULT #define VFILL_RIGHT_ALIGN (0x02) -#define VFILL_HAS_BORDER VFILL_DEFAULT +// #define VFILL_HAS_BORDER VFILL_DEFAULT #define VFILL_NO_BORDER (0x08) #define VGET_DEFAULT (0x00) -#define VGET_DOECHO (VGET_DEFAULT) +// #define VGET_DOECHO (VGET_DEFAULT) #define VGET_NOECHO (0x01) #define VGET_LOWERCASE (0x02) #define VGET_DIGITS (0x04) -#define VGET_GCARRY (0x08) +#define VGET_TRANSPARENT (0x08) // DATATYPE DEFINITION ------------------------------------------------- typedef void * VREFSCR; @@ -69,6 +71,13 @@ typedef struct { } VCOL; +typedef int (*VGET_CALLBACK)(char *buf, int *pcurr, int len, void *ptr); +typedef struct { + VGET_CALLBACK peek; // called immediately after key hit + VGET_CALLBACK accept; // called before inserting character data + // ... ? +} VGET_EXTENSION; + // API DEFINITION ---------------------------------------------------- // curses flavor |