home · contact · privacy
Indent lines in log display.
authorChristian Heller <c.heller@plomlompom.de>
Fri, 30 May 2025 20:41:08 +0000 (22:41 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Fri, 30 May 2025 20:41:08 +0000 (22:41 +0200)
ircplom.py

index 21cda8c4ebe97b299cf837f1f78393c00a9eb50b..fe5e37c17d7e5391ecfcd711f7f7174390dcc02b 100755 (executable)
@@ -94,7 +94,8 @@ class Terminal:
 
     def wrap(self, line: str) -> list[str]:
         'Wrap line to list of lines fitting into terminal width.'
-        return self._blessed.wrap(line, width=self.size.x)
+        return self._blessed.wrap(line, width=self.size.x,
+                                  subsequent_indent=' '*4)
 
     def write_yx(self, offset: YX, msg: str) -> None:
         'Starting at offset, write line with msg, padded at end with spaces.'