Skip to content

Commit

Permalink
Screen.h:
Browse files Browse the repository at this point in the history
* Removed extra +1 on row amount in resize_terminal_window() which fixed a resizing bug.
  • Loading branch information
razterizer committed Oct 10, 2024
1 parent 8de12e2 commit 28c7af1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Screen.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ std::pair<int, int> get_terminal_window_size()

void resize_terminal_window(int nr, int nc)
{
std::cout << "\033[8;" << nr + 1 << ";" << nc << "t"; // Resize terminal.
std::cout << "\033[8;" << nr << ";" << nc << "t"; // Resize terminal.
}

template<int NR, int NC>
Expand Down

0 comments on commit 28c7af1

Please sign in to comment.