claude-code-wrapped 0.1.9 → 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -31,25 +31,9 @@ CONTRIB_COLORS = ["#161B22", "#0E4429", "#006D32", "#26A641", "#39D353"]
|
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
def wait_for_keypress():
|
|
34
|
-
"""Wait for user to press Enter
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
import tty
|
|
38
|
-
fd = sys.stdin.fileno()
|
|
39
|
-
old_settings = termios.tcgetattr(fd)
|
|
40
|
-
try:
|
|
41
|
-
tty.setraw(fd)
|
|
42
|
-
ch = sys.stdin.read(1)
|
|
43
|
-
# Also handle escape sequences for special keys
|
|
44
|
-
if ch == '\x1b':
|
|
45
|
-
sys.stdin.read(2) # consume rest of escape sequence
|
|
46
|
-
return ch
|
|
47
|
-
finally:
|
|
48
|
-
termios.tcsetattr(fd, termios.TCSADRAIN, old_settings)
|
|
49
|
-
except (ImportError, AttributeError, OSError):
|
|
50
|
-
# Fallback for non-Unix systems (Windows) or piped input
|
|
51
|
-
input()
|
|
52
|
-
return '\n'
|
|
34
|
+
"""Wait for user to press Enter."""
|
|
35
|
+
input()
|
|
36
|
+
return '\n'
|
|
53
37
|
|
|
54
38
|
|
|
55
39
|
def create_dramatic_stat(value: str, label: str, subtitle: str = "", color: str = COLORS["orange"], extra_lines: list[tuple[str, str]] = None) -> Text:
|
package/package.json
CHANGED