static Backend *back;
static void *backhandle;
+static Config cfg;
/*
* Default settings that are specific to pterm.
/*
* Start up the connection.
*/
- logctx = log_init(NULL);
+ logctx = log_init(NULL, &cfg);
{
char *error;
char *realhost;
/* nodelay is only useful if stdin is a terminal device */
int nodelay = cfg.tcp_nodelay && isatty(0);
- error = back->init(NULL, &backhandle, cfg.host, cfg.port,
+ error = back->init(NULL, &backhandle, &cfg, cfg.host, cfg.port,
&realhost, nodelay);
if (error) {
fprintf(stderr, "Unable to open connection:\n%s\n", error);