Skip to content

Commit

Permalink
fixup ab01ceb
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Jan 24, 2020
1 parent ed2c171 commit 51bde60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions term.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ function ble/term.sh/register-varname {
function ble/term.sh/define-cap {
local name="$1" def="$2"
shift 2
ble/util/assign "$name" "ble/term.sh/tput \"\$@\" || echo -n \"\$def\""
ble/util/assign "$name" "ble/term.sh/tput $* || echo -n \"\$def\""
ble/term.sh/register-varname "$name"
}
function ble/term.sh/define-cap.2 {
local name="$1" def="$2"
shift 2
ble/util/assign "$name" "echo -n x;ble/term.sh/tput \"\$@\" || echo -n \"\$def\";echo -n x"
ble/util/assign "$name" "echo -n x;ble/term.sh/tput $* || echo -n \"\$def\";echo -n x"
builtin eval "$name=\${$name#x}; $name=\${$name%x}"
ble/term.sh/register-varname "$name"
}
Expand Down

0 comments on commit 51bde60

Please sign in to comment.