History

help: print in buffered mode, then flush

Sigrid Solveig Haflínudóttir committed 4 months ago

Commit 3bdb4971 parent ab14fc72 files · +12 −6Browse files

Showing the changes to src (1 of 2 files). Show all

Unified · Split

src/system.sl+5−1
@@ -259,7 +259,9 @@ · 258 unmodified lines
259 [docterm (if kind (list 'doc kind term) term)]259 [docterm (if kind (list 'doc kind term) term)]
260 [doc (getprop docterm '*doc* NIL)]260 [doc (getprop docterm '*doc* NIL)]
261 [formals-list (getprop docterm '*formals-list* NIL)]261 [formals-list (getprop docterm '*formals-list* NIL)]
262 [term-bound (and (sym? term) (or (bound? term) (get-syntax term)))]}262 [term-bound (and (sym? term) (or (bound? term) (get-syntax term)))]
263 [buf-mode (io-buffer-mode *io-out*)]}
264 (io-buffer-mode! *io-out* :block)
263 (def (deunicode str)265 (def (deunicode str)
264 (if (member +os-name+ '("dos" "windows" "macos" "unknown"))266 (if (member +os-name+ '("dos" "windows" "macos" "unknown"))
265 (str-map (λ (r) (case r267 (str-map (λ (r) (case r
@@ -371,6 +373,8 @@ · 105 unmodified lines
371 (not term-bound))373 (not term-bound))
372 (princ " (undefined)"))374 (princ " (undefined)"))
373 (newline))))375 (newline))))
376 (io-buffer-mode! *io-out* buf-mode)
377 (io-flush *io-out*)
374 (void)))378 (void)))
375 379
376;;; standard procedures380;;; standard procedures

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t