summary refs log tree commit diff
path: root/bin/ptee.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-10-18 13:52:12 -0400
committerJune McEnroe <june@causal.agency>2021-10-18 13:52:12 -0400
commit377e1bc213e9364c0faa314695c7269237e778b1 (patch)
tree4975b1d2f8caa9cf01555c988ed29646c23dbe36 /bin/ptee.c
parentAdd shotty -i to output inline colors (diff)
downloadsrc-377e1bc213e9364c0faa314695c7269237e778b1.tar.gz
src-377e1bc213e9364c0faa314695c7269237e778b1.zip
Swap functions of ^Q and ^S in ptee
Diffstat (limited to 'bin/ptee.c')
-rw-r--r--bin/ptee.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ptee.c b/bin/ptee.c
index 6bc20fc5..335e0e67 100644
--- a/bin/ptee.c
+++ b/bin/ptee.c
@@ -78,12 +78,12 @@ int main(int argc, char *argv[]) {
 			ssize_t rlen = read(STDIN_FILENO, buf, sizeof(buf));
 			if (rlen < 0) err(EX_IOERR, "read");
 
-			if (rlen == 1 && buf[0] == CTRL('S')) {
+			if (rlen == 1 && buf[0] == CTRL('Q')) {
 				stop ^= true;
 				continue;
 			}
 
-			if (rlen == 1 && buf[0] == CTRL('Q')) {
+			if (rlen == 1 && buf[0] == CTRL('S')) {
 				char dump[] = "\x1B[10i";
 				ssize_t wlen = write(STDOUT_FILENO, dump, sizeof(dump) - 1);
 				if (wlen < 0) err(EX_IOERR, "write");