cfg.host[sizeof(cfg.host) - 1] = '\0';
got_host = 1;
}
+ } else {
+ cmdline_error("unknown option \"%s\"", p);
}
}
}
hwnd = NULL;
- term = term_init(NULL);
+ term = term_init(&cfg, NULL);
logctx = log_init(NULL);
term_provide_logctx(term, logctx);
/*
* Set up a line discipline.
*/
- ldisc = ldisc_create(term, back, backhandle, NULL);
+ ldisc = ldisc_create(&cfg, term, back, backhandle, NULL);
session_closed = FALSE;