Improve editor's upload progress display a bit

This commit is contained in:
John Lorentzson 2025-07-29 17:04:53 +02:00
parent 47e189f709
commit bf16fe3a6c

View file

@ -757,8 +757,11 @@ Additionally ensures correct line numbers on the way, as a bonus."
"If non-NIL, reload asm function addresses from listing before every compile.") "If non-NIL, reload asm function addresses from listing before every compile.")
(defun draw-transfer-progress (progress total) (defun draw-transfer-progress (progress total)
(move-cursor 1 0) (clear-screen)
(format *eio* "Uploading, ~D/~D~%" progress total)) (let ((text (format nil "Uploading, ~4,'0D/~4,'0D" progress total)))
(move-cursor 12 (- (/ 80 2) (/ (length text) 2)))
(write-string text *eio*)
(force-output *eio*)))
(defun com-compile-buffer () (defun com-compile-buffer ()
(when *refresh-asm-functions-p* (when *refresh-asm-functions-p*