mirror of
https://github.com/koreader/koreader
synced 2024-11-10 01:10:34 +00:00
kodev: improve kodev prompt
Automatically use rlwrap if available.
This commit is contained in:
parent
342fc850ad
commit
070d591483
6
kodev
6
kodev
@ -402,7 +402,11 @@ $(build_options_help_msg '' 'use existing build' 'default' '')
|
|||||||
"
|
"
|
||||||
parse_options "${BUILD_GETOPT_SHORT}" "${BUILD_GETOPT_LONG}" '0' "$@"
|
parse_options "${BUILD_GETOPT_SHORT}" "${BUILD_GETOPT_LONG}" '0' "$@"
|
||||||
setup_target 'emulator'
|
setup_target 'emulator'
|
||||||
run_make ${NO_BUILD:+--assume-old=all} run-prompt
|
local margs=()
|
||||||
|
if command -v rlwrap >/dev/null; then
|
||||||
|
margs+=(RWRAP='rlwrap')
|
||||||
|
fi
|
||||||
|
run_make ${NO_BUILD:+--assume-old=all} "${margs[@]}" run-prompt
|
||||||
}
|
}
|
||||||
|
|
||||||
function kodev-run() {
|
function kodev-run() {
|
||||||
|
Loading…
Reference in New Issue
Block a user