From 118c8c6d3fe5270adf47d34b852df649128d3bea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Sun, 12 Jun 2022 21:16:01 +0200 Subject: Add explaining comment to get-terminal-size. --- module/vulgar/info.scm | 2 ++ 1 file changed, 2 insertions(+) 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" -- cgit v1.2.3