Print a separator line across the terminal width.
()
| 45 | |
| 46 | |
| 47 | def separator(): |
| 48 | """Print a separator line across the terminal width.""" |
| 49 | try: |
| 50 | tput_output = subprocess.check_output( |
| 51 | ["tput", "cols"], encoding="utf-8" |
| 52 | ) |
| 53 | except subprocess.CalledProcessError: |
| 54 | terminal_width = 80 |
| 55 | else: |
| 56 | terminal_width = int(tput_output.strip()) |
| 57 | print("⎯" * terminal_width) |
| 58 | |
| 59 | |
| 60 | def log(emoji, message, *, spacing=None): |
no test coverage detected
searching dependent graphs…