|
|
@ -18,9 +18,10 @@ fathom_cursor() { |
|
|
|
# Get the position of the cursor |
|
|
|
# Get the position of the cursor |
|
|
|
stty -echo |
|
|
|
stty -echo |
|
|
|
printf "\033[6n" |
|
|
|
printf "\033[6n" |
|
|
|
IFS=';' read -r -d R ROW COL |
|
|
|
oldIFS="$IFS"; IFS=';' read -r ROW COL |
|
|
|
stty echo |
|
|
|
stty echo |
|
|
|
position=$(printf "%s;%s" "${ROW#*[}" "${COL%%R*}") |
|
|
|
position=$(printf "%s;%s" "${ROW#*[}" "${COL%%R*}") |
|
|
|
|
|
|
|
IFS="$oldIFS" |
|
|
|
|
|
|
|
|
|
|
|
if $x && $y; then |
|
|
|
if $x && $y; then |
|
|
|
if $verbose; then |
|
|
|
if $verbose; then |
|
|
|