---
name: "cursor"
section: "3form"
platform: "linux"
package: "ncurses-doc"
version: "6.5+20250216-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/cursor"
---

# cursor(3form)

position a form window cursor

## NAME

**pos\_form\_cursor** - position a form window cursor

## SYNOPSIS

```
#include <form.h>
```

**int pos\_form\_cursor(FORM \****form***);**

## DESCRIPTION

**The function pos\_form\_cursor restores the cursor to the position required** **for the forms driver to continue processing requests.** **This is useful after** **curses routines have been called to do screen-painting in response to a** **form operation.**

## RETURN VALUE

**This routine returns one of the following:**

- **E\_OK**

  **The routine succeeded.**

- **E\_BAD\_ARGUMENT**

  **Routine detected an incorrect or out-of-range argument.**

- **E\_NOT\_POSTED**

  **The form has not been posted.**

- **E\_SYSTEM\_ERROR**

  **System error occurred (see [errno(3)](/errno/3.md)).**

## PORTABILITY

**These routines emulate the System V forms library.** **They were not supported on** **Version 7 or BSD versions.**

## AUTHORS

**Juergen Pfeifer.** **Manual pages and adaptation for new curses by Eric S. Raymond.**

## SEE ALSO

**ncurses(3NCURSES),** **form(3FORM)**
