summary refs log tree commit diff
path: root/bin
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
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')
-rw-r--r--bin/man1/ptee.110
-rw-r--r--bin/ptee.c4
2 files changed, 7 insertions, 7 deletions
diff --git a/bin/man1/ptee.1 b/bin/man1/ptee.1
index 04f9cdac..ba615f27 100644
--- a/bin/man1/ptee.1
+++ b/bin/man1/ptee.1
@@ -1,4 +1,4 @@
-.Dd July 17, 2019
+.Dd October 18, 2021
 .Dt PTEE 1
 .Os
 .
@@ -26,14 +26,14 @@ to a file or pipe.
 .Pp
 Type
 .Ic ^S
-to toggle writing to standard output.
+to write a media copy sequence
+to standard output.
 Type
 .Ic ^Q
-to write the media copy sequence for
-.Xr shotty 1 .
+to toggle writing to standard output.
 .
 .Sh SEE ALSO
-.Xr tee 1
+.Xr script 1
 .
 .Sh BUGS
 Window size changes are not propagated
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");
ef='/src/commit/home/.xsession?id=7a61e3a223e44ada59d4f860f1c76a4406d1dcb4&follow=1'>Tweak trackpad scaling, mouse accelerationJune McEnroe 2021-02-08Use xsel in up and add it do install.shJune McEnroe 2021-02-07Swap root window coloursJune McEnroe 2021-02-07Add -X flag to install X stuff on OpenBSDJune McEnroe 2021-02-07Adjust brightness by smaller incrementsJune McEnroe 2021-02-07Fix cwm window cycling, move big by defaultJune McEnroe 2021-02-07Use class names for Foreground, Background, BorderColorJune McEnroe 2021-02-07Add simple battery status and clock to xsessionJune McEnroe 2021-02-07Set cursor theme and sizeJune McEnroe 2021-02-07Use scrot for up -s if no screencaptureJune McEnroe 2021-02-07Enable mouse acceleration in XJune McEnroe 2021-02-07Set colours for Xt and cwmJune McEnroe 2021-02-07Set urgency on bell in xtermJune McEnroe 2021-02-07Add bindings for brightness controlJune McEnroe 2021-02-07Set X key repeat rateJune McEnroe 2021-02-07Bump font size to 12June McEnroe 2021-02-07Fully configure and rebind cwmJune McEnroe 2021-02-07Add BintiJune McEnroe 2021-02-07Finish configuring xtermJune McEnroe 2021-02-06Enable tapping, reverse scroll, set scaling in wsconsctlJune McEnroe 2021-02-06Set root window to black on purple snowJune McEnroe 2021-02-06Add xmodmap configurationJune McEnroe 2021-02-06Add initial OpenBSD X configurationJune McEnroe 2021-02-06Add xterm output to schemeJune McEnroe