lprint: deal with prompt differently
This commit is contained in:
1 parent
ea83ce81aa
commit
0fe5825004
1 file changed
+2
-2
@@ -77,9 +77,9 @@ def startlog(uid, dpath, append=False):
|
||||
logbuffer = ''
|
||||
|
||||
|
||||
def lprint(s='', end='\n', flush=False, prompt="[=]", log=True):
|
||||
def lprint(s='', end='\n', flush=False, prompt="[=] ", log=True):
|
||||
|
||||
s = f"{prompt} " + f"\n{prompt} ".join(s.split('\n'))
|
||||
s = f"{prompt}" + f"\n{prompt}".join(s.split('\n'))
|
||||
print(s, end=end, flush=flush)
|
||||
|
||||
if log is True:
|
||||
|
||||
Reference in new issue
Block a user