mirror of
https://github.com/imcarlost/pidcat-repl.git
synced 2026-08-08 23:17:43 -04:00
Reduce newline abuse.
This commit is contained in:
@@ -154,8 +154,7 @@ while True:
|
|||||||
if line_package == package:
|
if line_package == package:
|
||||||
pids.add(line_pid)
|
pids.add(line_pid)
|
||||||
|
|
||||||
linebuf = '\n\n\n'
|
linebuf = colorize(' ' * (header_size - 1), bg=WHITE)
|
||||||
linebuf += colorize(' ' * (header_size - 1), bg=WHITE)
|
|
||||||
linebuf += indent_wrap(' Process created for %s\n' % target)
|
linebuf += indent_wrap(' Process created for %s\n' % target)
|
||||||
linebuf += colorize(' ' * (header_size - 1), bg=WHITE)
|
linebuf += colorize(' ' * (header_size - 1), bg=WHITE)
|
||||||
linebuf += ' PID: %s UID: %s GIDs: %s' % (line_pid, line_uid, line_gids)
|
linebuf += ' PID: %s UID: %s GIDs: %s' % (line_pid, line_uid, line_gids)
|
||||||
@@ -168,7 +167,7 @@ while True:
|
|||||||
linebuf = '\n'
|
linebuf = '\n'
|
||||||
linebuf += colorize(' ' * (header_size - 1), bg=RED)
|
linebuf += colorize(' ' * (header_size - 1), bg=RED)
|
||||||
linebuf += ' Process %s killed' % dead_pid
|
linebuf += ' Process %s killed' % dead_pid
|
||||||
linebuf += '\n\n\n'
|
linebuf += '\n'
|
||||||
print linebuf
|
print linebuf
|
||||||
|
|
||||||
if owner not in pids:
|
if owner not in pids:
|
||||||
|
|||||||
Reference in New Issue
Block a user