shithub: bar

Download patch

ref: 0b75fe8a57bc65d1d63f4452fc78a4b9ba9cfdb4
parent: 2c1df4a0d69a2803023f870cff92f26492e689f0
parent:
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Fri Feb 19 08:23:23 EST 2021

man: better looking example

--- a/bar.man	Fri Feb 19 08:18:27 2021
+++ b/bar.man	Fri Feb 19 08:23:23 2021
@@ -68,11 +68,15 @@
 .EX
 #!/bin/rc
 rfork ne
-fn bar { sed -u 's/$/ │ ⏮ │ ⏯ │ ⏭/g' | /bin/bar | awk -v 'c=plumb -d audio ''key ' '
-	/⏮/{system(c"<''")}
-	/⏯/{system(c"p''")}
-	/⏭/{system(c">''")}
- ' >[2]/dev/null }
+fn bar {
+	sed -u 's/$/ │ ⏮ │ ⏯ │ ⏭/g' \\
+	| /bin/bar \\
+	| awk -v 'c=plumb -d audio ''key ' '
+		/⏮/{system(c"<''")}
+		/⏯/{system(c"p''")}
+		/⏭/{system(c">''")}
+		' >[2]/dev/null
+}
 /bin/riow
 .EE
 .PP