git.droids-corp.org
/
aversive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rdline: move some constants in configuration file
[aversive.git]
/
modules
/
ihm
/
rdline
/
rdline.h
diff --git
a/modules/ihm/rdline/rdline.h
b/modules/ihm/rdline/rdline.h
index
40bd20d
..
e99abb7
100644
(file)
--- a/
modules/ihm/rdline/rdline.h
+++ b/
modules/ihm/rdline/rdline.h
@@
-33,6
+33,7
@@
#include <cirbuf.h>
#include <vt100.h>
#include <cirbuf.h>
#include <vt100.h>
+#include <rdline_config.h>
#define vt100_bell "\007"
#define vt100_bs "\010"
#define vt100_bell "\007"
#define vt100_bs "\010"
@@
-56,12
+57,19
@@
#define vt100_word_left "\033\142"
#define vt100_word_right "\033\146"
#define vt100_word_left "\033\142"
#define vt100_word_right "\033\146"
-/* configuration */
+/* default configuration */
+#ifndef RDLINE_BUF_SIZE
#define RDLINE_BUF_SIZE 64
#define RDLINE_BUF_SIZE 64
+#endif
+#ifndef RDLINE_PROMPT_SIZE
#define RDLINE_PROMPT_SIZE 16
#define RDLINE_PROMPT_SIZE 16
+#endif
+#ifndef RDLINE_VT100_BUF_SIZE
#define RDLINE_VT100_BUF_SIZE 8
#define RDLINE_VT100_BUF_SIZE 8
+#endif
+#ifndef RDLINE_HISTORY_BUF_SIZE
#define RDLINE_HISTORY_BUF_SIZE 128
#define RDLINE_HISTORY_BUF_SIZE 128
-#
define RDLINE_HISTORY_MAX_LINE 64
+#
endif
enum rdline_status {
RDLINE_STOPPED,
enum rdline_status {
RDLINE_STOPPED,