(*, focused: bool, intercepted: bool, timestamp: float)
| 347 | |
| 348 | |
| 349 | def format_left_indicators(*, focused: bool, intercepted: bool, timestamp: float): |
| 350 | indicators: list[str | tuple[str, str]] = [] |
| 351 | if focused: |
| 352 | indicators.append(("focus", ">>")) |
| 353 | else: |
| 354 | indicators.append(" ") |
| 355 | pretty_timestamp = human.format_timestamp(timestamp)[-8:] |
| 356 | if intercepted: |
| 357 | indicators.append(("intercept", pretty_timestamp)) |
| 358 | else: |
| 359 | indicators.append(("text", pretty_timestamp)) |
| 360 | return "fixed", 10, urwid.Text(indicators) |
| 361 | |
| 362 | |
| 363 | def format_right_indicators( |
no test coverage detected
searching dependent graphs…