diff --git a/schedule b/schedule index 155915e..c4caedb 100755 --- a/schedule +++ b/schedule @@ -106,10 +106,10 @@ show_tour_info() { } info_output_term() { - echo -n "$(tput setaf 2)Тур ${tour_num} " + echo -n "$(tput setaf 2)${tour_num} тур " echo "$(tput setaf 6)(${date_beg} - ${date_end})$(tput sgr0)" - echo -e "$1" | column -t | while IFS= read line; do + echo -en "$1" | column -t | while IFS= read line; do # Highlight player's name if [[ -n "$PLAYER" ]]; then players=$(grep -o "[^ ]*${PLAYER}[^ ]*" <<< "$line") @@ -127,6 +127,19 @@ info_output_term() { echo } +info_output_lor() { + echo "[u][b]${tour_num} тур (${date_beg} - ${date_end})[/b][/u]" + echo "[list]" + + echo -en "$1" | while read white black result; do + echo " [*][user]${white}[/user] - [user]${black}[/user] ${result}" + done + + echo "[/list]" + echo + +} + # Note that we use '"$@"' to let each command-line parameter expand to a # separate word. The quotes around '$@' are essential! # We need 'opts' as the 'eval set --' would nuke the return value of getopt