implement st's newterm instead of osc 7

This commit is contained in:
sewn 2023-05-28 05:44:02 +00:00
parent b4e418f251
commit 9ae89c74cb
2 changed files with 4 additions and 28 deletions

View file

@ -3302,8 +3302,11 @@ term_bell(struct terminal *term)
bool
term_spawn_new(const struct terminal *term)
{
char buf[32];
snprintf(buf, sizeof(buf), "/proc/%d/cwd", term->slave);
return spawn(
term->reaper, term->cwd, (char *const []){term->foot_exe, NULL},
term->reaper, realpath(buf, NULL), (char *const []){term->foot_exe, NULL},
-1, -1, -1, NULL);
}