Skip to content

Commit

Permalink
Merge pull request #135 from yury/increase-possible-term-size
Browse files Browse the repository at this point in the history
Increase maximum columns and rows.
  • Loading branch information
holzschu authored Nov 8, 2022
2 parents bc7c233 + be55414 commit 6f46f90
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ios_system.m
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@
void* context;
int global_errno;
char commandName[NAME_MAX];
char columns[4];
char lines[4];
char columns[5];
char lines[5];
bool activePager;
} sessionParameters;

Expand Down Expand Up @@ -252,8 +252,8 @@ void ios_setWindowSize(int width, int height, const void* sessionId) {
return;
}

sprintf(resizedSession->columns, "%d", width);
sprintf(resizedSession->lines, "%d",height);
sprintf(resizedSession->columns, "%d", MIN(width, 9999));
sprintf(resizedSession->lines, "%d", MIN(height, 9999));
// Also send SIGWINCH to the main thread of resizedSession:
if (resizedSession->current_command_root_thread != NULL) {
pthread_kill(resizedSession->current_command_root_thread, SIGWINCH);
Expand Down

0 comments on commit 6f46f90

Please sign in to comment.