diff --git a/USAGE.md b/USAGE.md index ccddd4223..cddc9d180 100644 --- a/USAGE.md +++ b/USAGE.md @@ -299,13 +299,13 @@ int notcurses_refresh(struct notcurses* n, unsigned* restrict y, unsigned* restr // called while already visible to move the cursor. int notcurses_cursor_enable(struct notcurses* nc, int y, int x); -// Get the current location of the terminal's cursor, whether visible or not. -int notcurses_cursor_yx(const struct notcurses* nc, int* y, int* x); - // Disable the hardware cursor. It is an error to call this while the // cursor is already disabled. int notcurses_cursor_disable(struct notcurses* nc); +// Get the current location of the terminal's cursor, whether visible or not. +int notcurses_cursor_yx(const struct notcurses* nc, int* y, int* x); + // Returns a 16-bit bitmask in the LSBs of supported curses-style attributes // (NCSTYLE_UNDERLINE, NCSTYLE_BOLD, etc.) The attribute is only // indicated as supported if the terminal can support it together with color. diff --git a/doc/man/man3/notcurses_init.3.md b/doc/man/man3/notcurses_init.3.md index 1d8c6fbb5..88d8bd547 100644 --- a/doc/man/man3/notcurses_init.3.md +++ b/doc/man/man3/notcurses_init.3.md @@ -45,13 +45,13 @@ typedef struct notcurses_options { **void notcurses_version_components(int* ***major***, int* ***minor***, int* ***patch***, int* ***tweak***);** -**int notcurses_lex_margins(const char* ***op***, notcurses_options* ***opts***);** - **int notcurses_cursor_enable(struct notcurses* ***nc***, int ***y***, int ***x***);** +**int notcurses_cursor_disable(struct notcurses* ***nc***);** + **int notcurses_cursor_yx(const struct notcurses* ***nc***, int* ***y***, int* ***x***);** -**int notcurses_cursor_disable(struct notcurses* ***nc***);** +**int notcurses_lex_margins(const char* ***op***, notcurses_options* ***opts***);** # DESCRIPTION @@ -71,7 +71,7 @@ called to reset the terminal and free up resources. An appropriate **terminfo(5)** entry must exist for the terminal. This entry is usually selected using the value of the **TERM** environment variable (see -**getenv(3)**), but a non-**NULL** value for **termtype** will override this +**getenv(3)**), but a non-**NULL** value for ***termtype*** will override this (terminfo is not used on Microsoft Windows, where it is neither meaningful nor necessary to define **TERM**). An invalid terminfo specification can lead to reduced performance, reduced display capabilities, and/or display diff --git a/include/notcurses/notcurses.h b/include/notcurses/notcurses.h index 357518713..430e03cb8 100644 --- a/include/notcurses/notcurses.h +++ b/include/notcurses/notcurses.h @@ -3636,15 +3636,15 @@ ncbprefix(uintmax_t val, uintmax_t decimal, char* buf, int omitdec){ API int notcurses_cursor_enable(struct notcurses* nc, int y, int x) __attribute__ ((nonnull (1))); -// Get the current location of the terminal's cursor, whether visible or not. -API int notcurses_cursor_yx(const struct notcurses* nc, int* y, int* x) - __attribute__ ((nonnull (1))); - // Disable the hardware cursor. It is an error to call this while the // cursor is already disabled. API int notcurses_cursor_disable(struct notcurses* nc) __attribute__ ((nonnull (1))); +// Get the current location of the terminal's cursor, whether visible or not. +API int notcurses_cursor_yx(const struct notcurses* nc, int* y, int* x) + __attribute__ ((nonnull (1))); + // Convert the plane's content to greyscale. API void ncplane_greyscale(struct ncplane* n) __attribute__ ((nonnull (1)));