Browse code

Add extern C

Ben Judd authored on 03/01/2024 16:38:45
Showing 1 changed files
... ...
@@ -1,3 +1,7 @@
1
+#ifdef __cplusplus 
2
+extern "C" {
3
+#endif
4
+
1 5
 #define TTY_COLOR_HIGHLIGHT TTY_COLOR_YELLOW
2 6
 
3 7
 #define SCORE_GAP_LEADING -0.005
... ...
@@ -17,3 +21,7 @@
17 21
 #define DEFAULT_NUM_LINES 10
18 22
 #define DEFAULT_WORKERS 0
19 23
 #define DEFAULT_SHOW_INFO 0
24
+
25
+#ifdef __cplusplus 
26
+}
27
+#endif
Browse code

show selection info (with -i option)

Ondrej Martinek authored on 16/03/2019 04:54:08 • John Hawthorn committed on 28/12/2019 07:17:18
Showing 1 changed files
... ...
@@ -16,3 +16,4 @@
16 16
 #define DEFAULT_PROMPT "> "
17 17
 #define DEFAULT_NUM_LINES 10
18 18
 #define DEFAULT_WORKERS 0
19
+#define DEFAULT_SHOW_INFO 0
Browse code

Set default options in config.def.h

John Hawthorn authored on 14/01/2019 05:17:04
Showing 1 changed files
... ...
@@ -11,3 +11,8 @@
11 11
 
12 12
 /* Time (in ms) to wait for additional bytes of an escape sequence */
13 13
 #define KEYTIMEOUT 25
14
+
15
+#define DEFAULT_TTY "/dev/tty"
16
+#define DEFAULT_PROMPT "> "
17
+#define DEFAULT_NUM_LINES 10
18
+#define DEFAULT_WORKERS 0
Browse code

Reduce ambiguous char wait time to 25ms

John Hawthorn authored on 10/09/2018 03:53:50
Showing 1 changed files
... ...
@@ -8,3 +8,6 @@
8 8
 #define SCORE_MATCH_WORD 0.8
9 9
 #define SCORE_MATCH_CAPITAL 0.7
10 10
 #define SCORE_MATCH_DOT 0.6
11
+
12
+/* Time (in ms) to wait for additional bytes of an escape sequence */
13
+#define KEYTIMEOUT 25
Browse code

Move sources into src directory

John Hawthorn authored on 21/05/2016 21:56:03
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,10 @@
1
+#define TTY_COLOR_HIGHLIGHT TTY_COLOR_YELLOW
2
+
3
+#define SCORE_GAP_LEADING -0.005
4
+#define SCORE_GAP_TRAILING -0.005
5
+#define SCORE_GAP_INNER -0.01
6
+#define SCORE_MATCH_CONSECUTIVE 1.0
7
+#define SCORE_MATCH_SLASH 0.9
8
+#define SCORE_MATCH_WORD 0.8
9
+#define SCORE_MATCH_CAPITAL 0.7
10
+#define SCORE_MATCH_DOT 0.6