aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-12-21 14:27:17 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-12-21 14:27:17 +0000
commit57de9feaa508fdd83c0d08c499232187c5f4b6c1 (patch)
tree66f5c07705aa62fae0fb81072e5cda7a0679b88d /terminal.h
parentterm: experimental: tweak delay timeouts (diff)
term: term_spawn_new(): new function, spawns a new foot/footclient process
Bind ctrl+shift+return to it
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/terminal.h b/terminal.h
index 4d82aeaa..b7a92be4 100644
--- a/terminal.h
+++ b/terminal.h
@@ -314,12 +314,14 @@ struct terminal {
bool is_shutting_down;
void (*shutdown_cb)(void *data, int exit_code);
void *shutdown_data;
+
+ char *foot_exe;
};
struct config;
struct terminal *term_init(
const struct config *conf, struct fdm *fdm, struct wayland *wayl,
- const char *term_env, int argc, char *const *argv,
+ const char *term_env, const char *foot_exe, int argc, char *const *argv,
void (*shutdown_cb)(void *data, int exit_code), void *shutdown_data);
bool term_shutdown(struct terminal *term);
@@ -379,3 +381,4 @@ void term_xcursor_update(struct terminal *term);
void term_set_window_title(struct terminal *term, const char *title);
void term_flash(struct terminal *term, unsigned duration_ms);
+bool term_spawn_new(const struct terminal *term);