Exemple #1
0
static void alarm_handler(int sig)
{
  axio_eolmode(NodeIo, EOLMODE_TEXT);
  axio_puts("\n",NodeIo);
  if (check_perms(PERM_ANSI, 0L) != -1) {
    axio_printf(NodeIo,"\e[05;31m");
  }
Exemple #2
0
int do_links(int argc, char **argv)
{
    struct ax_routes *axrt, *p;
    char digipath[AX25_MAX_DIGIS*10];
    char tipoconn[9];
    int i=0;

    axio_puts("",NodeIo);
    if (User.ul_type == AF_NETROM) {
        axio_printf(NodeIo,"%s} ", NodeId);
    }
    if ((axrt=read_ax_routes()) == NULL) {
        if (errno) node_perror("do_links: read_ax_routes", errno);
        else axio_printf(NodeIo,"No known links");
        if (User.ul_type == AF_NETROM) {
            node_msg("");
        }
        return 0;
    }

    /* "links" */
    if (check_perms(PERM_ANSI, 0L) != -1) {
        axio_printf(NodeIo, "\e[01;33m");
    }