-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
26 lines (20 loc) · 1.01 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Copyright (c) 2015, Maciej Kaminski.
WWW: maciejkaminski.pl
email: [email protected]
Published under 2-clause BSD-style license
1. Redistributions of source code must retain the above copyright notice
2. Redistributions in binary form must reproduce the above copyright notice
Version number is 1.1
library exports just 7 functions in one header
- init_completion - add phrase to completion table
- init_completions - sort completions table
- getline_complete - get line; returns 0 if just eolf
- completion_exists - check if completion is defined
- print_history - print command history to stdout
- hide_acline - when multithreaded application wants to print something without interrupting
input of command, you can temporarily hide
- restore_acline - and restore it immediately
please refer to comments in auto_complete.h for whole API description
please refer to example.c to see how to use this shit
Version 1.1
introduced hide_acline and restore_acline, basic support for C++ and thread safety