Skip to content

Commit

Permalink
If system doesn't have termios.h, assume at least 79 char width
Browse files Browse the repository at this point in the history
Any normal system have at leasst 80x24 terminals, but then there was
Windows and their default HyperTerm which b0rks on line breaks on the
last column.  Users connecting over a serial console to a device running
pimd, and plagued with HyperTerm because their IT policy prevents them
from installing PuTTY, will probably thank me one day.

Signed-off-by: Joachim Wiberg <[email protected]>
  • Loading branch information
troglobit committed Oct 22, 2020
1 parent e641bb5 commit da6f4c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pimctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ static int ipc_ping(void)
#define ESC "\033"
static int get_width(void)
{
int ret = 74;
int ret = 79;
#ifdef HAVE_TERMIOS_H
char buf[42];
struct termios tc, saved;
Expand Down

0 comments on commit da6f4c3

Please sign in to comment.