1
Programming / Re: BearLibTerminal: a pseudo-terminal window library for roguelike
« on: December 15, 2018, 05:19:46 PM »
When I toggle into full screen, the lines for drawn boxes become really thin. Is there anyway to prevent that?
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Just remember that dimensions_t returned from print/measure is a size, not coordinates, so you have to add it to the last printing position.What is the proper way to do this for wrapped text? Everything I've tried has been off so far and I can't figure out why.
terminal_bkcolor(activeTheme->bkColor);
#define TEXT_WIDTH 60
#define TEXT_HEIGHT 30
#define TEXT_X ((SCREEN_WIDTH / 2) - (TEXT_WIDTH / 2))
#define TEXT_Y 2
char *awesomeText= "I don't know anything about anything. In fact, I can't even say for sure if what I just said is true; and truth be told, I'm not even sure if I can or cannot say anything for sure. I think - not know - that you should, perhaps, ignore me, maybe.";
terminal_print_ext(TEXT_X, TEXT_Y, TEXT_WIDTH, 0, 0, awesomeText);
dimensions_t mark = terminal_measure_ext(TEXT_WIDTH, TEXT_HEIGHT, awesomeText);
terminal_print_ext(mark.width, mark.height, 0, 0, 0, "[color=red]@");