menu_cursor(3X)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1

okay so bestie, welcome to the menu_cursor(3X) page β€” Library calls section, iykyk. The star of the show is pos_menu_cursor, and she has one job: position a menu's cursor. πŸ’…

🌸 NAME 🌸

pos_menu_cursor β€” position a menu's cursor

✨ SYNOPSIS ✨

#include <menu.h>

int pos_menu_cursor(const MENU *menu);

πŸ¦‹ DESCRIPTION πŸ¦‹

The function pos_menu_cursor restores the cursor to the current position associated with the menu's selected item. It's giving "put my cursor back where it belongs" energy, and it's useful after curses routines have been called to do screen-painting in response to a menu select. Lowkey the perfect little reset moment. ✨

πŸ’… RETURN VALUE πŸ’…

This routine returns one of the following:

  • E_OK β€” the routine succeeded. periodt.
  • E_SYSTEM_ERROR β€” System error occurred (see errno(3)). 😭
  • E_BAD_ARGUMENT β€” Routine detected an incorrect or out-of-range argument. not cute.
  • E_NOT_POSTED β€” The menu has not been posted.

🫢 PORTABILITY 🫢

These routines emulate the System V menu library. They were not supported on Version 7 or BSD versions. so that's the tea 🍡

πŸ‘‘ AUTHORS πŸ‘‘

Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S. Raymond. legends only 🫢

🌈 SEE ALSO 🌈

  • curses(3X)
  • menu(3X)

mwah πŸ’‹ β€” source/version: ncurses 6.5, date: 2024-03-16, filed under menu_cursor(3X). 🫢✨

πŸ“¦ where this page comes from