Commit 70fc9724 authored by Konstantin Baev's avatar Konstantin Baev

Only code refactoring

parent d48915c4
...@@ -33,11 +33,11 @@ export TERM ...@@ -33,11 +33,11 @@ export TERM
# Terminal sequence to move to that position. # Terminal sequence to move to that position.
MOVE_TO_COL() MOVE_TO_COL()
{ {
[ -n "$COLUMNS" ] || COLUMNS=80 [ -n "$COLUMNS" ] || COLUMNS=80
# "tput hpa N" moves to col N; on dumb terms does nothing. # "tput hpa N" moves to col N; on dumb terms does nothing.
local pos=$(($COLUMNS - $RES_OFFSET)) local pos=$(($COLUMNS - $RES_OFFSET))
[ $pos -le 0 ] || [ $pos -le 0 ] ||
tput -- hpa $(($COLUMNS - $RES_OFFSET)) # Horizontal Position Absolute. tput -- hpa $(($COLUMNS - $RES_OFFSET)) # Horizontal Position Absolute.
} }
# Enumerate colors # Enumerate colors
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment