From 954f9ea0d2320c5093ed5a53268233b1f0c5984e Mon Sep 17 00:00:00 2001 From: Thomas Osterried Date: Sat, 11 Feb 2017 15:33:50 +0100 Subject: the curses terminal connection displays the destination call in the upper left. call comes from commandline arg. Ensure to write it in upper case. --- call/call.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'call/call.c') diff --git a/call/call.c b/call/call.c index a21dbf2..1f3a452 100644 --- a/call/call.c +++ b/call/call.c @@ -1157,11 +1157,14 @@ static int start_screen(char *call[]) { int cnt; char idString[12]; + char *p; struct winsize winsz = {0}; if ((ioctl(0, TIOCGWINSZ, &winsz) >= 0) && winsz.ws_row && winsz.ws_col) resizeterm(winsz.ws_row, winsz.ws_col); sprintf(idString, " %9.9s ", call[0]); + for (p = idString; *p; p++) + if (islower(*p)) *p = toupper(*p); if ((win = initscr()) == NULL) return -1; -- cgit v1.2.3