tui.sh/examples/curpos

7 lines
114 B
Plaintext
Raw Permalink Normal View History

2023-03-21 02:48:44 +03:00
#!/bin/sh
. ../tui.sh
pos="$(tui_curpos)"
printf 'Cursor position: COLUMN=%s LINE=%s\n' "${pos% *}" "${pos#* }"