check y, row position ?

10 views
Skip to first unread message

M Kelly

unread,
Aug 23, 2019, 8:52:58 PM8/23/19
to tmux-users
Hi,

Anyone know how (if its possible) to write the logic to check if the cursor_y value is at the bottom of the pane ?
Someting like #{?#{==:#{cursor_y},pane_height-2} ?

thx for all tmux,
-mark

Nicholas Marriott

unread,
Aug 26, 2019, 5:20:58 AM8/26/19
to M Kelly, tmux-users
Hi

It will be pane_height - 1 but there is no builtin subtraction so you'll
need to do it in a script.
> --
> You received this message because you are subscribed to the Google Groups
> "tmux-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to tmux-users+...@googlegroups.com.
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/tmux-users/CAD5ox-EwSm9aCf%2BjrXaJmYQtSTB%3DmyXefw98YSfk7CqG1Ew91Q%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages