---
name: "XmListGetKbdItemPos"
section: "3"
platform: "linux"
package: "openmotif"
version: "2.3.8-4"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/XmListGetKbdItemPos"
---

# XmListGetKbdItemPos(3)

A List function that returns the position of the item at the location cursor

## NAME

**XmListGetKbdItemPos** — A List function that returns the position of the item at the location cursor

## SYNOPSIS

```
#include <Xm/List.h>
int XmListGetKbdItemPos(
Widget widget);
```

## DESCRIPTION

**XmListGetKbdItemPos** returns the position of the list item at the location cursor.

- *widget*

  Specifies the ID of the List widget

For a complete definition of List and its associated resources, see [**XmList**(3)](/XmList/3.md).

## RETURN

Returns the position of the current keyboard item. A value of 1 indicates that the location cursor is at the first item of the list; a value of 2 indicates that it is at the second item; and so on. A value of 0 (zero) indicates the List widget is empty.

## RELATED

[**XmList**(3)](/XmList/3.md).
