Set the terminal dimensions in col*row
This commit is contained in:
parent
54e13abc7f
commit
763ba92b86
6
bt.c
6
bt.c
@ -96,6 +96,12 @@ int main(void) {
|
||||
|
||||
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);
|
||||
|
||||
Font *fontDefault = load_font();
|
||||
|
Loading…
x
Reference in New Issue
Block a user