I noticed that pty numbers are never recycled after closing each window. -Mark
diff --git a/dvtm.c b/dvtm.c index bff057b..ae0c8f2 100644 --- a/dvtm.c +++ b/dvtm.c @@ -665,6 +665,7 @@ setup() { static void destroy(Client *c) { + close(c->pty); if (sel == c) focusnextnm(NULL); detach(c);