Joachim Nilsson
3e40e24e11
Reintroduce .tar.gz for distribution archives
...
For systems that don't have xz in the base install.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2020-02-23 18:43:52 +01:00
Joachim Nilsson
322055b89a
debian: Ship upstream ChangeLog in .deb
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2020-02-23 18:43:52 +01:00
Joachim Nilsson
e1981428e7
debian: Add hardening, recommended by lintian
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2020-02-23 18:43:52 +01:00
Joachim Nilsson
d65245abbd
debian: .so symlinks should be in -dev package, found by lintian
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2020-02-23 18:43:52 +01:00
Joachim Nilsson
45c9b94e11
debian: Update to Standards-Version 4.3.0 and fix shlib deps
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2020-02-23 18:43:52 +01:00
Joachim Nilsson
bfcf222bdc
debian: Add symbols file, found by lintian
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2020-02-23 18:43:52 +01:00
Joachim Nilsson
49c466a23d
man: Update mdoc markup of functions
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2020-02-23 18:43:52 +01:00
Joachim Nilsson
6702d3262d
debian: Update to copyright format 1.0
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2020-02-23 18:43:52 +01:00
Joachim Nilsson
d8f3759367
debian: Fix missing content in libedtline1, introduced in 1.16.0
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2020-02-23 18:43:52 +01:00
Joachim Nilsson
8d5d04f667
Merge pull request #38 from echoprotocol/ECHO-732
...
added fix for multiline representing as one line
2020-01-13 19:04:28 +01:00
dvolynets
ceee039cfc
added fix for multiline representing as one line
2020-01-13 12:15:27 +03:00
Joachim Nilsson
02cccd1e87
Update ChangeLog and bump version for v1.17.0
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2020-01-05 09:53:19 +01:00
Joachim Nilsson
01dd4045b4
Bump ABI revision, v1.0.1 --> v1.0.2
...
Most notably, changes in behavior in history functions.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2020-01-05 09:49:47 +01:00
Joachim Nilsson
99ae6b86cb
Revert "Travis-CI: Disable clang temporarily for Coverity Scan run"
...
This reverts commit d9f725f20a
.
2020-01-05 08:29:58 +01:00
Joachim Nilsson
1305d05b75
examples: Refactor CLI unlock gimmick to fix possible Coverity issue
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2020-01-05 08:21:36 +01:00
Joachim Nilsson
d9f725f20a
Travis-CI: Disable clang temporarily for Coverity Scan run
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2020-01-05 07:58:33 +01:00
Joachim Nilsson
7278fd8581
Travis-CI: Clean build between different phases
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2020-01-05 07:58:13 +01:00
Joachim Nilsson
f619d9d788
Follow-up to d310910
, use EOF instead of -1 in calls to reposition()
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2020-01-05 07:52:31 +01:00
Joachim Nilsson
6c74203cbd
Update ChangeLog with latest fixes
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2020-01-05 07:52:31 +01:00
Joachim Nilsson
b44335f413
Defensive programming, check within boundaries before deref
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2020-01-05 07:52:31 +01:00
Joachim Nilsson
e36aae07f8
Refactor move_cursor_forward() into tty_forwardn()
...
- Use same namespace like other tty movement functions
- Replace globally exposed itoa() and dangerous strcpy() with snprintf()
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2020-01-05 07:52:31 +01:00
Joachim Nilsson
cf8f962e4f
Handle realloc() failures better
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2020-01-05 07:52:31 +01:00
Joachim Nilsson
deb2884310
Fix error return value from read_history() and write_history()
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2020-01-05 07:52:31 +01:00
Joachim Nilsson
81840c0f84
Update ChangeLog to reflect latest changes
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2019-11-28 07:03:44 +01:00
Joachim Nilsson
0b295197f6
Merge branch 'echoprotocol-simple_multiline'
2019-11-28 07:01:48 +01:00
Joachim Nilsson
1802e086e0
Bump version for v1.17.0 release cycle
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2019-11-28 07:01:13 +01:00
Joachim Nilsson
12d5584721
Fix for() loop; "statement with no effect" warning from GCC
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2019-11-28 06:59:53 +01:00
Joachim Nilsson
35506cd22e
Minor, coding style fixups
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2019-11-28 06:58:37 +01:00
Joachim Nilsson
f35af9f20d
Merge branch 'simple_multiline' of https://github.com/echoprotocol/editline into echoprotocol-simple_multiline
2019-11-28 06:41:43 +01:00
dvolynets
498b041a35
fixed indentations
2019-11-20 15:14:21 +03:00
dvolynets
d3109109c4
added simple multiline support
2019-11-20 15:14:02 +03:00
Joachim Nilsson
7355f56d25
Update ChangeLog(s) and bump version for v1.16.1 release
...
New ABI version 1.0.1
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2019-06-07 12:04:01 +02:00
Joachim Nilsson
5496152d51
Rephrase section introducing Jush, the stupid UNIX shell
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2019-06-01 17:24:59 +02:00
Joachim Nilsson
13f8d5f69c
Merge pull request #32 from abitmore/search-end-cleanup
...
Cleanup el_intr_pending in h_search_end()
2019-05-08 17:11:02 +02:00
Joachim Nilsson
c2b65646ea
Revert "Fi #31 : Aborting i-search with Ctrl-C should not generate signal"
...
This reverts commit e2c3b41d9a
.
2019-05-08 17:10:21 +02:00
Joachim Nilsson
e2c3b41d9a
Fi #31 : Aborting i-search with Ctrl-C should not generate signal
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2019-05-08 17:04:15 +02:00
Joachim Nilsson
4a17180d37
Add SIGINT notification to cli example, for debugging
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2019-05-08 17:03:49 +02:00
Joachim Nilsson
3e046cafd2
Clear line on failed Ctrl-R operation
...
The Ctrl-R search prompt and failed search text may be longer than
the regular CLI prompt. This patch clears the line to remove any
lingering artefacts.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2019-05-08 16:57:40 +02:00
Joachim Nilsson
0e493addab
Fix #30 : Ctrl-R with empty search string clears screen
...
The screen should only be cleared on Ctrl-L *and* empty regular line,
not when searching with an empty string.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2019-05-08 16:55:33 +02:00
abitmore
842bd67dd4
Cleanup el_intr_pending in h_search_end()
...
Fixes an issue when user pressed Ctrl+C when searching.
2019-05-08 07:51:13 -04:00
Joachim Nilsson
0eb8f228f7
Merge pull request #29 from abitmore/rl_set_getc_func
...
Add rl_set_getc_func()
2019-05-08 10:48:39 +02:00
abitmore
8f6d724e30
Add rl_set_getc_func()
...
So it's possible to install another implementation of rl_getc() function.
2019-05-07 17:58:06 -04:00
Joachim Nilsson
ee176c80d7
Only display return from readline() when there's something to show.
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2019-05-06 01:20:46 +02:00
Joachim Nilsson
979f05a5eb
Follow-up to a4b67d2
: Ctrl-L redisplay line when not on empty line
...
Like Ctrl-D, when on an empty line we clear the screen, when editing a
garbled line we refresh the line.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2019-05-06 00:54:57 +02:00
Joachim Nilsson
c95d25731d
Always use enums for el_status_t return values
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2019-05-06 00:54:17 +02:00
Joachim Nilsson
61d40f406f
examples: Catch SIGINT instead of mapping Ctrl-C, use default Ctrl-D
...
We want Ctrl-C to work as in Bash, so let's just catch SIGINT (and do
nothing). Also, the default Ctrl-D handler does what we want, i.e.
exit the CLI when we're on an empty line.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2019-05-06 00:52:13 +02:00
Joachim Nilsson
385cd77e9b
Merge branch 'abitmore-patch-1'
2019-05-03 17:13:39 +02:00
Abit
448a3dac08
Avoid continuously duplicate commands in history
...
When adding a command to history, if CONFIG_UNIQUE_HISTORY is defined, always compare current command with the last entry in history.
2019-05-03 16:54:25 +02:00
Joachim Nilsson
7506826ac7
debian: libeditline1 does not have any shlib deps.
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2019-04-27 15:44:30 +02:00
Joachim Nilsson
ec7f752095
debian: Add missing pkg-cconfig .pc file to -dev package
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
2019-04-27 15:43:56 +02:00