---
name: "form_cursor"
section: "3x"
platform: "macos"
package: "ncurses"
version: "79"
release: "macOS 26.5"
platforms: ["linux", "macos"]
url: "https://new.carta.tech/form_cursor/3x"
---

# form\_cursor(3x)

position a form window cursor

## NAME

**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**).

## SEE ALSO

**curses**(3X), **form**(3X).

## NOTES

The header file **\<form.h\>** automatically includes the header file **\<curses.h\>**.

## 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.
