5.2.2 Character display semantics

Previous Table of Contents "New C Standard" commentary

252 The active position is that location on a display device where the next character output by the fputc function would appear.

253 The intent of writing a printing character (as defined by the isprint function) to a display device is to display a graphic representation of that character at the active position and then advance the active position to the next position on the current line.

254 The direction of writing is locale-specific.

255 If the active position is at the final position of a line (if there is one), the behavior of the display device is unspecified.

256 Alphabetic escape sequences representing nongraphic characters in the execution character set are intended to produce actions on display devices as follows:

257 \a (alert) Produces an audible or visible alert without changing the active position.

258 \b (backspace) Moves the active position to the previous position on the current line.

259 If the active position is at the initial position of a line, the behavior of the display device is unspecified.

260 \f (form feed) Moves the active position to the initial position at the start of the next logical page.

261 \n (new line) Moves the active position to the initial position of the next line.

262 \r (carriage return) Moves the active position to the initial position of the current line.

263 \t (horizontal tab) Moves the active position to the next horizontal tabulation position on the current line.

264 If the active position is at or past the last defined horizontal tabulation position, the behavior of the display device is unspecified.

265 \v (vertical tab) Moves the active position to the initial position of the next vertical tabulation position.

266 If the active position is at or past the last defined vertical tabulation position, the behavior of the display device is unspecified.

267 Each of these escape sequences shall produce a unique implementation-defined value which can be stored in a single char object.

268 The external representations in a text file need not be identical to the internal representations, and are outside the scope of this International Standard.

269 Forward references: the isprint function (7.4.1.8), the fputc function (7.19.7.3).

Next

Created at: 2008-01-30 02:39:39 The text from WG14/N1256 is copyright © ISO