2
0
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:
Benoit Pierre 2024-08-26 01:17:04 +02:00 committed by Frans de Jonge
parent 342fc850ad
commit 070d591483

6
kodev
View File

@ -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() {