From bb1850b7c33d9129b2a9c93dcad341d5d97c8e6a Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sat, 17 Sep 2011 18:19:34 -0500 Subject: [PATCH] Fix up tsak --- tsak/main.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tsak/main.cpp b/tsak/main.cpp index 57e228c..2b51dbc 100644 --- a/tsak/main.cpp +++ b/tsak/main.cpp @@ -329,9 +329,11 @@ int main (int argc, char *argv[]) } if (hide_event == true) { // Let anyone listening to our interface know that an SAK keypress was received - write(mPipe_fd_out, "SAK\n\r", 6); - write(mPipe_fd_out, "SAK\n\r", 6); - write(mPipe_fd_out, "SAK\n\r", 6); + // I highly doubt there are more than 255 VTs active at once... + int i; + for (i=0;i<255;i++) { + write(mPipe_fd_out, "SAK\n\r", 6); + } } } }