summaryrefslogtreecommitdiff
path: root/src/terminal.c
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@googlemail.com>2012-09-26 21:24:34 +0200
committerDavid Herrmann <dh.herrmann@googlemail.com>2012-09-26 21:24:34 +0200
commit89cb239fce77d248eb320f495d3c583f8aba1419 (patch)
tree2e40d48c36f8ae6cf47321ecdaa081b7aef5a3ed /src/terminal.c
parent9c48153e300aee6170e2d6b1211066bdc2c0c227 (diff)
pty: set argv via helper function
This makes the pty layer independent of kmscon global state. This allows us to use it in other applications bundled with kmscon. There is still some work to do to make it fully independent so we can integrate it into TSM. But that's not really needed, yet. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
Diffstat (limited to 'src/terminal.c')
-rw-r--r--src/terminal.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/terminal.c b/src/terminal.c
index 027f067..526f34b 100644
--- a/src/terminal.c
+++ b/src/terminal.c
@@ -454,6 +454,10 @@ int kmscon_terminal_new(struct kmscon_terminal **out,
if (ret)
goto err_pty;
+ ret = kmscon_pty_set_argv(term->pty, kmscon_conf.argv);
+ if (ret)
+ goto err_pty;
+
ret = ev_eloop_new_fd(term->eloop, &term->ptyfd,
kmscon_pty_get_fd(term->pty),
EV_READABLE, pty_event, term);