aboutsummaryrefslogtreecommitdiff
path: root/module/vulgar/info.scm
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-06-23 03:23:44 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2022-06-23 03:48:22 +0200
commit1976980d4a272fb7fc3694c734bfc6825edfc721 (patch)
tree8460db1176c64895e9968447588953fac85fe7d6 /module/vulgar/info.scm
parentRemove all inline use-modules. (diff)
downloadcalp-1976980d4a272fb7fc3694c734bfc6825edfc721.tar.gz
calp-1976980d4a272fb7fc3694c734bfc6825edfc721.tar.xz
Centralize (almost) all exports to :export in define-module.
Diffstat (limited to 'module/vulgar/info.scm')
-rw-r--r--module/vulgar/info.scm5
1 files changed, 3 insertions, 2 deletions
diff --git a/module/vulgar/info.scm b/module/vulgar/info.scm
index 0f55c942..04c19c24 100644
--- a/module/vulgar/info.scm
+++ b/module/vulgar/info.scm
@@ -1,10 +1,11 @@
(define-module (vulgar info)
:use-module ((srfi srfi-1) :select (car+cdr))
- :use-module (srfi srfi-71))
+ :use-module (srfi srfi-71)
+ :export (get-terminal-size))
;; Sort-of backwards subprocess call since we want the current terminal to be
;; inherited by stty
-(define-public (get-terminal-size)
+(define (get-terminal-size)
(let ((rpipe wpipe (car+cdr (pipe))))
(system (format #f "stty size > /proc/~s/fd/~s"
(getpid) (port->fdes wpipe)))