aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-06-12 21:16:01 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2022-06-12 21:16:01 +0200
commit118c8c6d3fe5270adf47d34b852df649128d3bea (patch)
treeda0774a9dad45006f2a06bf1bbff14bf268e8bad
parentAllow HTML output of all routes. (diff)
downloadcalp-118c8c6d3fe5270adf47d34b852df649128d3bea.tar.gz
calp-118c8c6d3fe5270adf47d34b852df649128d3bea.tar.xz
Add explaining comment to get-terminal-size.
-rw-r--r--module/vulgar/info.scm2
1 files changed, 2 insertions, 0 deletions
diff --git a/module/vulgar/info.scm b/module/vulgar/info.scm
index 79e555da..963e20c8 100644
--- a/module/vulgar/info.scm
+++ b/module/vulgar/info.scm
@@ -1,6 +1,8 @@
(define-module (vulgar info)
:use-module (hnh util))
+;; Sort-of backwards subprocess call since we want the current terminal to be
+;; inherited by stty
(define-public (get-terminal-size)
(let* (((rpipe . wpipe) (pipe)))
(system (format #f "stty size > /proc/~s/fd/~s"