tui.sh/examples/curpos
2023-03-21 02:48:44 +03:00

7 lines
114 B
Bash

#!/bin/sh
. ../tui.sh
pos="$(tui_curpos)"
printf 'Cursor position: COLUMN=%s LINE=%s\n' "${pos% *}" "${pos#* }"