mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
kodev: improve kodev prompt
Automatically use rlwrap if available.
This commit is contained in:
committed by
Frans de Jonge
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' "$@"
|
||||
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() {
|
||||
|
||||
Reference in New Issue
Block a user