# Ruby curses - how to find current field

**URL:** <https://www.ruby-forum.com/t/ruby-curses-how-to-find-current-field/268112>\
**Category:** Ruby\
**Created:** [January 6, 2026, 5:54pm UTC](https://www.ruby-forum.com/t/ruby-curses-how-to-find-current-field/268112 "2026-01-06T17:54:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![colinmac](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/dbc845/32.png) [@colinmac](https://www.ruby-forum.com/u/colinmac)\
**Post date:** [January 6, 2026, 5:54pm UTC](https://www.ruby-forum.com/t/ruby-curses-how-to-find-current-field/268112/1 "2026-01-06T17:54:32Z")

</div>

I am new here. Sorry if this is posted in the wrong place.

I am trying curses from Ruby on an rpi. I have a form with fields up and running but I need to determine which field in the form has the cursor when a particular key is pressed. All the documentatioin I can find suggests I need something like my\_form.current\_field, but that fails…

I can get round that by read the cursor y and x positions, but am I missing an easier way?

thanks, Colin
