summaryrefslogtreecommitdiffstats
path: root/tsak
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-09-17 18:19:34 -0500
committerTimothy Pearson <[email protected]>2011-09-17 18:19:34 -0500
commitbb1850b7c33d9129b2a9c93dcad341d5d97c8e6a (patch)
tree36e223831be1454faf3149efd64b218ab25e76a2 /tsak
parent96c9b7f819a339925a625e28095ad8ba226ef1d9 (diff)
downloadexperimental-bb1850b7c33d9129b2a9c93dcad341d5d97c8e6a.tar.gz
experimental-bb1850b7c33d9129b2a9c93dcad341d5d97c8e6a.zip
Fix up tsak
Diffstat (limited to 'tsak')
-rw-r--r--tsak/main.cpp8
1 files 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);
+ }
}
}
}