update calc example with new keyboard style

This commit is contained in:
Kay Marquardt (Gnadelwartz) 2019-04-15 16:44:26 +02:00
parent 3824137433
commit 6ff574b9a3

5
calc
View File

@ -3,7 +3,7 @@
# This file is public domain in the USA and all free countries. # This file is public domain in the USA and all free countries.
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying) # Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)
#### $$VERSION$$ v0.6-rc1-7-g14eb352 #### $$VERSION$$ v0.60-dev3-7-gf5538ef
# adjust your language setting here # adjust your language setting here
# https://github.com/topkecleon/telegram-bot-bash#setting-up-your-environment # https://github.com/topkecleon/telegram-bot-bash#setting-up-your-environment
@ -19,8 +19,7 @@ echo 'Enter first number.'
read -r A read -r A
echo 'Enter second number.' echo 'Enter second number.'
read -r B read -r B
echo 'Select Operation: mykeyboardstartshere "Addition" "Subtraction" "Multiplication" "Division" "Cancel"' echo 'Select Operation: mykeyboardstartshere [ "Addition" , "Subtraction" , "Multiplication" , "Division" , "Cancel" ]'
echo 'Your anwser can be: add, sub, mul, div or cancel'
read -r opt read -r opt
echo -n 'Result: ' echo -n 'Result: '
case $opt in case $opt in