aboutsummaryrefslogtreecommitdiffstats
path: root/scsh.init
diff options
context:
space:
mode:
Diffstat (limited to 'scsh.init')
-rw-r--r--scsh.init6
1 files changed, 6 insertions, 0 deletions
diff --git a/scsh.init b/scsh.init
index b4af555..0815825 100644
--- a/scsh.init
+++ b/scsh.init
@@ -190,6 +190,12 @@
))
+;;@ (FILE-POSITION <port> . <k>)
+(define (file-position port . args)
+ (if (null? args)
+ (tell port)
+ (apply seek port args)))
+
;;; (OUTPUT-PORT-WIDTH <port>)
(define (output-port-width . arg) 79)