diff options
| author | Hibby <d@vehibberd.com> | 2020-03-24 20:55:41 +0000 |
|---|---|---|
| committer | Hibby <d@vehibberd.com> | 2020-03-24 20:55:41 +0000 |
| commit | 93a75b098cfd7eef8dc24f9eb98c278b726cba59 (patch) | |
| tree | eef66061d0d1d92b5088244ab078e015ea4509a2 /gateway.c | |
| parent | e194582206323fee5cbdf62b1c0dca13499fafb1 (diff) | |
| parent | ef4822cca2ffcc86c9d5da3a11033e33480df50e (diff) | |
Update upstream source from tag 'upstream/2.11'
Update to upstream version '2.11'
with Debian dir a307fbe04ee061f870829d2e65cdb55a78ae0550
Diffstat (limited to 'gateway.c')
| -rw-r--r-- | gateway.c | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -266,7 +266,12 @@ static ax25io *connect_to(char **addr, int family, int escape, int compr) if (check_perms(PERM_ANSI, 0L) != -1) { axio_printf(NodeIo, "\e[01;33m"); } + if (check_perms(PERM_ANSI, 0L) == -1) { axio_printf(NodeIo,"link setup (%s)...", User.dl_port); + } + if (check_perms(PERM_ANSI, 0L) != -1) { + axio_printf(NodeIo,"link setup (%s)...\e[0;m", User.dl_port); + } } /* else node_msg("Trying %s on %s... Type <RETURN> to abort", User.dl_name, User.dl_port); */ break; @@ -795,7 +800,7 @@ int do_connect(int argc, char **argv) if (check_perms(PERM_ANSI, 0L) != -1) { axio_printf(NodeIo,"\e[01;31m"); } - axio_printf(NodeIo,"Returning you to the shell..."); + axio_printf(NodeIo, "Returning you to the shell..."); } else if ((User.ul_type == AF_AX25) && (!stay)) { axio_flush(NodeIo); @@ -1146,17 +1151,17 @@ int do_ping(int argc, char **argv) if (User.ul_type == AF_NETROM){ axio_printf(NodeIo,"%s} ", NodeId); } - if (User.ul_type == AF_INET) { +// if (User.ul_type == AF_INET) { if (check_perms(PERM_ANSI, 0L) != -1) { axio_printf(NodeIo, "\e[05;31m"); - } +// } } axio_printf(NodeIo,"Ping aborted."); - if (User.ul_type == AF_INET) { +// if (User.ul_type == AF_INET) { if (check_perms(PERM_ANSI, 0L) != -1) { axio_printf(NodeIo, "\e[0;m"); } - } +// } if (User.ul_type == AF_NETROM) { node_msg(""); } |
