aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2007-01-16 07:56:24 +0000
committerFrederic Culot <calcurse@culot.org>2007-01-16 07:56:24 +0000
commitdf13ca1ba94676bcddb2decb1bbf77979c271fc2 (patch)
treebcda290b0687e02015e5a1238620014cc4d90371 /src
parentefc51ae38c7d05cd1372d2ef40f49e601c129647 (diff)
downloadcalcurse-df13ca1ba94676bcddb2decb1bbf77979c271fc2.tar.gz
calcurse-df13ca1ba94676bcddb2decb1bbf77979c271fc2.zip
defines added for values returned by getstring()
Diffstat (limited to 'src')
-rwxr-xr-xsrc/utils.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/utils.h b/src/utils.h
index cde7093..bbb37f0 100755
--- a/src/utils.h
+++ b/src/utils.h
@@ -1,8 +1,8 @@
-/* $calcurse: utils.h,v 1.12 2006/12/14 08:28:56 culot Exp $ */
+/* $calcurse: utils.h,v 1.13 2007/01/16 07:56:24 culot Exp $ */
/*
* Calcurse - text-based organizer
- * Copyright (c) 2004-2006 Frederic Culot
+ * Copyright (c) 2004-2007 Frederic Culot
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -41,6 +41,10 @@
#define KEY_LENGTH 4 /* length of each keybinding + one space */
#define LABEL_LENGTH 8 /* length of command description */
+#define GETSTRING_VALID 0 /* value returned by getstring() if text is valid */
+#define GETSTRING_ESC 1 /* user pressed escape to cancel editing */
+#define GETSTRING_RET 2 /* return was pressed without entering any text */
+
typedef struct { /* structure defining a keybinding */
char *key;
char *label;