summaryrefslogtreecommitdiffstats
path: root/tsak/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tsak/main.cpp')
-rw-r--r--tsak/main.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/tsak/main.cpp b/tsak/main.cpp
index 57e228c2e..2b51dbc85 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);
+ }
}
}
}