Set the terminal dimensions in col*row

This commit is contained in:
Joseph Ferano 2022-09-17 21:15:50 +07:00
parent 54e13abc7f
commit 763ba92b86

6
bt.c
View File

@ -96,6 +96,12 @@ int main(void) {
InitWindow(screenWidth, screenHeight, "basic term"); InitWindow(screenWidth, screenHeight, "basic term");
struct winsize sz;
int result = ioctl(fds.master, TIOCGWINSZ, &sz);
sz.ws_col = 200;
sz.ws_row = 120;
result = ioctl(fds.master, TIOCSWINSZ, &sz);
SetTargetFPS(60); SetTargetFPS(60);
Font *fontDefault = load_font(); Font *fontDefault = load_font();