diff options
author | Frederic Culot <calcurse@culot.org> | 2006-10-28 09:54:00 +0000 |
---|---|---|
committer | Frederic Culot <calcurse@culot.org> | 2006-10-28 09:54:00 +0000 |
commit | ac4a12158c229245b64b77ca970d8a65e1172b4a (patch) | |
tree | 2fcbf820856a0b84ca58a4406d4865ada036753c /src | |
parent | 64be7a0ecf7da21d8298b63e3f6468a0cbe669ff (diff) | |
download | calcurse-ac4a12158c229245b64b77ca970d8a65e1172b4a.tar.gz calcurse-ac4a12158c229245b64b77ca970d8a65e1172b4a.zip |
added SPC define, showstring(), showcursor(), ad_char() and del_char() prototypes added
Diffstat (limited to 'src')
-rwxr-xr-x | src/utils.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/utils.h b/src/utils.h index 9e80d73..d6a97a5 100755 --- a/src/utils.h +++ b/src/utils.h @@ -1,4 +1,4 @@ -/* $calcurse: utils.h,v 1.5 2006/09/16 15:25:36 culot Exp $ */ +/* $calcurse: utils.h,v 1.6 2006/10/28 09:54:00 culot Exp $ */ /* * Calcurse - text-based organizer @@ -30,6 +30,8 @@ #define MAX(x,y) ((x)>(y)?(x):(y)) #define MIN(x,y) ((x)<(y)?(x):(y)) +#define SPC 32 /* ASCII code for white space */ + #define NB_CAL_CMDS 15 /* number of commands while in cal view */ #define NB_APP_CMDS 18 /* same thing while in appointment view */ #define NB_TOD_CMDS 18 /* same thing while in todo view */ @@ -50,7 +52,11 @@ void erase_window_part(WINDOW *win, int first_col, int first_row, WINDOW *popup(int pop_row, int pop_col, int pop_y, int pop_x, char *pop_lab); void print_in_middle(WINDOW *win, int starty, int startx, int width, char *string); -void getstring(WINDOW *win, int colr, char *string, int start_x, int start_y); +void del_char(int pos, char *str); +char *add_char(int pos, int ch, char *str); +void showcursor(WINDOW *win, int y, int pos, char *str, int l, int offset); +void showstring(WINDOW *win, int y, int x, char *str, int len, int pos); +int getstring(WINDOW *win, int colr, char *string, int x, int y); int is_all_digit(char *string); void border_color(WINDOW *window, int bcolr); void border_nocolor(WINDOW *window); |