From 8ea49712fd4c9f158128832e6c93308afeb1bd4d Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Sun, 18 Jan 2009 12:09:42 +0000 Subject: suspend-client command and suspend client when ^Z key binding is used. --- tty-write.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tty-write.c') diff --git a/tty-write.c b/tty-write.c index a776ca57..62adb8b2 100644 --- a/tty-write.c +++ b/tty-write.c @@ -1,4 +1,4 @@ -/* $Id: tty-write.c,v 1.6 2009-01-14 19:29:32 nicm Exp $ */ +/* $Id: tty-write.c,v 1.7 2009-01-18 12:09:42 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -45,6 +45,8 @@ tty_vwrite_window(void *ptr, enum tty_cmd cmd, va_list ap) c = ARRAY_ITEM(&clients, i); if (c == NULL || c->session == NULL) continue; + if (c->flags & CLIENT_SUSPENDED) + continue; if (c->session->curw->window == wp->window) { va_copy(aq, ap); -- cgit