notcurses_output: properly escape tab and newline

This commit is contained in:
nick black 2023-02-20 04:35:06 -05:00
parent 29a5dc2295
commit 2f4fb5514b
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -101,7 +101,7 @@ Functions accepting a set of EGCs must consist of a series of well-formed EGCs,
broken by cluster breaks, terminated by the appropriate NUL terminator.
Control characters are rejected, aside from two exceptions: a horizontal tab
(**'\t'**, 0x09), and a newline (**'\n'**, 0x0a) *when the output plane
(**'\\t'**, 0x09), and a newline (**'\\n'**, 0x0a) *when the output plane
is in scrolling mode*. A newline outside of scrolling mode will be rejected.
A tab will advance to the next tab stop, filling the space between with spaces.
Tab stops are separated by eight columns, and the first character of each line