freenode/#sbcl - IRC Chatlog
Search
20:32:20
stylewarning
stassats: now i can resume the usual program of me asking you for a POWER8+ port
22:24:16
decent-username
Good evening everyone. I'm a newbie coming for #clnoobs. When loading the following code https://pastebin.com/raw/ZzaYLuny with "sbcl --load file-name.lisp" and evaluating (dump-db), the formatting on the first line isn't correct. Can you reproduce this? I'm using SBCL 1.4.10 and Manjaro as my OS.
22:25:18
|3b|
try putting ~& at beginning, so it starts new line if it thinks it is in middle of a line
22:25:39
|3b|
might be confused by previous output (like a repl prompt, or output of compilation or whatever)
22:29:14
decent-username
It's fine for me. Doesn't bother me. I thought it might be interesting for the developers.
22:30:40
|3b|
no hack, you might have intentionally printed part of a line and wanted to continue it with next output
22:31:27
|3b|
if you printed it to a string or newly opened file, it would probably format as you expect
22:33:52
|3b|
yeah, ~% always goes to next line, ~& doesn't if it thinks it is at beginning of line already
22:34:40
|3b|
ACTION supposes it might be a slime/swank bug if it is putting its own output in middle of output stream without resetting that
22:35:25
stassats
you can just do at the bare repl (loop repeat 2 do (format t "~a: ~10t~a~%" 10 20))
22:35:44
decent-username
slime has no problem with it. Only after editing the function, recompiling it with "C-c C-c". And it's only the first time.
22:36:58
|3b|
yeah, in that case input confuses it, it outputs "* ", so it thinks it is in middle of line, then you type stuff and hit enter so it isn't, but output doesn't notice
22:37:47
|3b|
if you enter (terpri) (dump-db) on single prompt, it starts with "* TITLE: Home", with Homelined up correctly
22:39:25
decent-username
It's nothing major though. I formats everything fine, when putting the function call inside the source file and loading the entire thing with sbcl.
22:45:51
stassats
(loop repeat 2 do (format *terminal-io* "~a: ~10t~a~%" 10 20)) suffers no such problem
22:47:17
decent-username
Those advanced loop macros are too much for my juvenile Practical-Common-Lisp-chapter-3-brain.
23:15:21
White_Flame
there's nothing in the standard that exposes the currently assumed printing column, right?