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
259259 [docterm (if kind (list 'doc kind term) term)]
260260 [doc (getprop docterm '*doc* NIL)]
261261 [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)
263265 (def (deunicode str)
264266 (if (member +os-name+ '("dos" "windows" "macos" "unknown"))
265267 (str-map (λ (r) (case r
@@ -371,6 +373,8 @@ · 105 unmodified lines
371373 (not term-bound))
372374 (princ " (undefined)"))
373375 (newline))))
376+ (io-buffer-mode! *io-out* buf-mode)
377+ (io-flush *io-out*)
374378 (void)))
375379
376380 ;;; 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