.\" Automatically generated by Pandoc 2.2.1 .\" .TH "al_open_native_text_log" "3alleg5" "" "Allegro reference manual" "" .hy .SH NAME .PP al_open_native_text_log \- Allegro 5 API .SH SYNOPSIS .IP .nf \f[C] #include\ ALLEGRO_TEXTLOG\ *al_open_native_text_log(char\ const\ *title,\ int\ flags) \f[] .fi .SH DESCRIPTION .PP Opens a window to which you can append log messages with al_append_native_text_log(3alleg5). This can be useful for debugging if you don't want to depend on a console being available. .PP Use al_close_native_text_log(3alleg5) to close the window again. .PP The flags available are: .TP .B ALLEGRO_TEXTLOG_NO_CLOSE Prevent the window from having a close button. Otherwise, if the close button is pressed, an event is generated; see al_get_native_text_log_event_source(3alleg5). .RS .RE .TP .B ALLEGRO_TEXTLOG_MONOSPACE Use a monospace font to display the text. .RS .RE .PP Returns NULL if there was an error opening the window, or if text log windows are not implemented on the platform. .SH SEE ALSO .PP al_append_native_text_log(3alleg5), al_close_native_text_log(3alleg5)