Created a function that truncates a string that is printed to a window if the string should exceed the window width.
This prevents the line wrap that occurs with mvwprintw when the window width is not wide enough. This mainly occurs with a 4:3 ratio monitor, 80 columns wide.
Created a function that truncates a string that is printed to a window if the string should exceed the window width.
This prevents the line wrap that occurs with mvwprintw when the window width is not wide enough. This mainly occurs with a 4:3 ratio monitor, 80 columns wide.