Guest User

Untitled

a guest
Sep 15th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 0.33 KB | None | 0 0
  1. (defmethod render ((obj progbar))
  2.   (with-slots (size step steps)
  3.       (let* ((size (- size 2))
  4.              (fill (floor (* (/ step steps) size)))
  5.              (done (coerce (char-times #\# fill) 'string))
  6.              (left (coerce (char-times #\. (- size fill)) 'string))
  7.         (printw (format nil "[~A~A]" done left))))))
Add Comment
Please, Sign In to add comment