#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Text_Display.H>
#include <FL/Fl_Text_Buffer.H>

enum {
    out_w = 300,
    out_h = 200,
    space = 10,
    win_h = out_h + 2 * space,
    win_w = out_w + 2 * space,
    font_size = 40
};

int main()
{
    Fl_Window win(win_w, win_h, "output");

    Fl_Text_Display out(space, space, out_w, out_h);
    out.textsize(font_size);
    out.box(FL_FLAT_BOX);
    out.color(FL_BACKGROUND_COLOR);

    Fl_Text_Buffer buf;
    out.buffer(buf);
    buf.text("hello there\nhow are you?\nAlright\n");
    buf.append("i am doing fine, it's all good\n");

    win.end();
    win.show();
    return Fl::run();
}
