summaryrefslogtreecommitdiffstats
path: root/call
diff options
context:
space:
mode:
authorThomas Osterried <ax25@x-berg.in-berlin.de>2017-02-11 15:33:50 +0100
committerThomas Osterried <ax25@x-berg.in-berlin.de>2017-02-11 15:33:50 +0100
commit954f9ea0d2320c5093ed5a53268233b1f0c5984e (patch)
treea38900348cad586231788ec90334ba4b2d9c74e1 /call
parenta6d5fe1825e3a9daea090dc4f582f8fd89da0cf3 (diff)
the curses terminal connection displays the destination call in
the upper left. call comes from commandline arg. Ensure to write it in upper case.
Diffstat (limited to 'call')
-rw-r--r--call/call.c3
1 files changed, 3 insertions, 0 deletions
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;