X-Git-Url: https://ncurses.scripts.mit.edu/?a=blobdiff_plain;f=man%2Fcurs_addch.3x;h=875f47f3ccaa7a95a712d3d5075391618fac2c8c;hb=87c2c84cbd2332d6d94b12a1dcaf12ad1a51a938;hp=bf512cb150ebb3086a7ece1a8afb4fb927b080f5;hpb=74433bcf4f6fe40862a28f3c00edaedcd5054b01;p=ncurses.git diff --git a/man/curs_addch.3x b/man/curs_addch.3x index bf512cb1..875f47f3 100644 --- a/man/curs_addch.3x +++ b/man/curs_addch.3x @@ -1,6 +1,6 @@ '\" t .\"*************************************************************************** -.\" Copyright 2018-2020,2021 Thomas E. Dickey * +.\" Copyright 2018-2022,2023 Thomas E. Dickey * .\" Copyright 1998-2015,2017 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -28,7 +28,7 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_addch.3x,v 1.58 2021/12/25 20:18:06 tom Exp $ +.\" $Id: curs_addch.3x,v 1.60 2023/03/11 20:39:26 tom Exp $ .TH curs_addch 3X "" .ie \n(.g .ds `` \(lq .el .ds `` `` @@ -48,17 +48,17 @@ .SH SYNOPSIS \fB#include \fP .PP -\fBint addch(const chtype \fP\fIch\fP\fB);\fP +\fBint addch(const chtype \fIch\fB);\fR .br -\fBint waddch(WINDOW *\fP\fIwin\fP\fB, const chtype \fP\fIch\fP\fB);\fP +\fBint waddch(WINDOW *\fIwin\fB, const chtype \fIch\fB);\fR .br -\fBint mvaddch(int \fP\fIy\fP\fB, int \fP\fIx\fP\fB, const chtype \fP\fIch\fP\fB);\fP +\fBint mvaddch(int \fIy\fB, int \fIx\fB, const chtype \fIch\fB);\fR .br -\fBint mvwaddch(WINDOW *\fP\fIwin\fP\fB, int \fP\fIy\fP\fB, int \fP\fIx\fP\fB, const chtype \fP\fIch\fP\fB);\fP +\fBint mvwaddch(WINDOW *\fIwin\fB, int \fIy\fB, int \fIx\fB, const chtype \fIch\fB);\fR .sp -\fBint echochar(const chtype \fP\fIch\fP\fB);\fP +\fBint echochar(const chtype \fIch\fB);\fR .br -\fBint wechochar(WINDOW *\fP\fIwin\fP\fB, const chtype \fP\fIch\fP\fB);\fP +\fBint wechochar(WINDOW *\fIwin\fB, const chtype \fIch\fB);\fR .br .SH DESCRIPTION .SS Adding characters @@ -71,10 +71,10 @@ If the advance is at the right margin: The cursor automatically wraps to the beginning of the next line. .bP At the bottom of the current scrolling region, -and if \fBscrollok\fP is enabled, +and if \fBscrollok\fP(3X) is enabled, the scrolling region is scrolled up one line. .bP -If \fBscrollok\fP is not enabled, +If \fBscrollok\fP(3X) is not enabled, writing a character at the lower right margin succeeds. However, an error is returned because it is not possible to wrap to a new line @@ -96,7 +96,16 @@ The tab interval may be altered by setting the \fBTABSIZE\fP variable. .PP If \fIch\fP is any other nonprintable character, it is drawn in printable form, -i.e., the \fB^\fP\fIX\fP notation used by \fBunctrl\fP(3X). +using the same convention as \fBunctrl\fR(3X): +.bP +Control characters are displayed in the \fB^\fIX\fR notation. +.bP +Values above 128 are either meta characters (if the screen has not +been initialized, or if \fBmeta\fP(3X) has been called with a \fBTRUE\fP E parameter), +shown in the \fBM\-\fIX\fR notation, or are displayed as themselves. +In the latter case, the values may not be printable; +this follows the X/Open specification. +.PP Calling \fBwinch\fP after adding a nonprintable character does not return the character itself, but instead returns the printable representation of the character. @@ -180,7 +189,7 @@ or if the window pointer is null. If it is not possible to add a complete character, an error is returned: .bP -If \fBscrollok\fP is not enabled, +If \fBscrollok\fP(3X) is not enabled, writing a character at the lower right margin succeeds. However, an error is returned because it is not possible to wrap to a new line