]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - man/mitem_current.3x
ncurses 6.5 - patch 20240615
[ncurses.git] / man / mitem_current.3x
index 456b028497f1f470b5cde4b0c85a133c5d60e7af..42d36c39754bf08d44ee50b2d0dfc1101bac8ba2 100644 (file)
@@ -1,6 +1,5 @@
-'\" t
 .\"***************************************************************************
 .\"***************************************************************************
-.\" Copyright 2018-2022,2023 Thomas E. Dickey                                *
+.\" Copyright 2018-2023,2024 Thomas E. Dickey                                *
 .\" Copyright 1998-2006,2010 Free Software Foundation, Inc.                  *
 .\"                                                                          *
 .\" Permission is hereby granted, free of charge, to any person obtaining a  *
 .\" Copyright 1998-2006,2010 Free Software Foundation, Inc.                  *
 .\"                                                                          *
 .\" Permission is hereby granted, free of charge, to any person obtaining a  *
 .\" authorization.                                                           *
 .\"***************************************************************************
 .\"
 .\" authorization.                                                           *
 .\"***************************************************************************
 .\"
-.\" $Id: mitem_current.3x,v 1.29 2023/09/16 23:38:39 tom Exp $
-.TH mitem_current 3X 2023-09-16 "ncurses 6.4" "Library calls"
+.\" $Id: mitem_current.3x,v 1.37 2024/03/16 15:35:01 tom Exp $
+.TH mitem_current 3X 2024-03-16 "ncurses @NCURSES_MAJOR@.@NCURSES_MINOR@" "Library calls"
 .SH NAME
 \fBmitem_current\fP \-
 set and get current_menu_item
 .SH SYNOPSIS
 .SH NAME
 \fBmitem_current\fP \-
 set and get current_menu_item
 .SH SYNOPSIS
-\fB#include <menu.h>\fP
-.sp
-\fBint set_current_item(MENU *\fImenu\fB, ITEM *\fIitem\fB);\fR
-.br
-\fBITEM *current_item(const MENU *\fImenu\fB);\fR
-.sp
-\fBint set_top_row(MENU *\fImenu\fB, int \fIrow\fB);\fR
-.br
-\fBint top_row(const MENU *\fImenu\fB);\fR
-.sp
-\fBint item_index(const ITEM *\fIitem\fB);\fR
+.nf
+\fB#include <menu.h>
+.PP
+\fBint set_current_item(MENU *\fImenu\fP, ITEM *\fIitem\fP);
+\fBITEM *current_item(const MENU *\fImenu\fP);
+.PP
+\fBint set_top_row(MENU *\fImenu\fP, int \fIrow\fP);
+\fBint top_row(const MENU *\fImenu\fP);
+.PP
+\fBint item_index(const ITEM *\fIitem\fP);
+.fi
 .SH DESCRIPTION
 The function \fBset_current_item\fP sets the current item (the item on which
 the menu cursor is positioned).
 .SH DESCRIPTION
 The function \fBset_current_item\fP sets the current item (the item on which
 the menu cursor is positioned).
@@ -84,11 +83,6 @@ No items are connected to the menu.
 .TP 5
 .B E_SYSTEM_ERROR
 System error occurred (see \fBerrno\fP(3)).
 .TP 5
 .B E_SYSTEM_ERROR
 System error occurred (see \fBerrno\fP(3)).
-.SH SEE ALSO
-\fBcurses\fP(3X), \fBmenu\fP(3X).
-.SH NOTES
-The header file \fB<menu.h>\fP automatically includes the header file
-\fB<curses.h>\fP.
 .SH PORTABILITY
 These routines emulate the System V menu library.
 They were not supported on
 .SH PORTABILITY
 These routines emulate the System V menu library.
 They were not supported on
@@ -99,3 +93,6 @@ The SVr4 menu library documentation specifies the \fBtop_row\fP and
 .SH AUTHORS
 Juergen Pfeifer.
 Manual pages and adaptation for new curses by Eric S. Raymond.
 .SH AUTHORS
 Juergen Pfeifer.
 Manual pages and adaptation for new curses by Eric S. Raymond.
+.SH SEE ALSO
+\fB\%curses\fP(3X),
+\fB\%menu\fP(3X)