From df13ca1ba94676bcddb2decb1bbf77979c271fc2 Mon Sep 17 00:00:00 2001
From: Frederic Culot <calcurse@culot.org>
Date: Tue, 16 Jan 2007 07:56:24 +0000
Subject: defines added for values returned by getstring()

---
 src/utils.h | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

(limited to 'src')

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;
-- 
cgit v1.2.3-70-g09d2