Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (defmethod render ((obj progbar))
- (with-slots (size step steps)
- (let* ((size (- size 2))
- (fill (floor (* (/ step steps) size)))
- (done (coerce (char-times #\# fill) 'string))
- (left (coerce (char-times #\. (- size fill)) 'string))
- (printw (format nil "[~A~A]" done left))))))
Add Comment
Please, Sign In to add comment