HomeManualTopicsTypesSymbols

std::draw_text

draws text at the given position

Parameters

screen
some kind of screen
x
x-coordinate of the first character
y
y-coordinate of the first character
args*
the text to draw

Result

screen
the updated screen

Description

All args are converted to strings and concatenated.

This method uses the current foreground and background colour and obeyes the current window.

If the text consists of multiple lines, the cursor is moved back to x after each line.

Example

draw_text &screen x y "Hello World!"

Topic

Terminal

See also

std::draw_character draws a character at the given position
std::set_text_colour_at sets the foreground color at the given position
std::set_background_colour_at sets the background colour at the given position

Implemented by

std_types::screen draw the specified text at the current screen position