tessl install tessl/pypi-asciimatics@1.15.0A cross-platform package to replace curses (mouse/keyboard input & text colours/positioning) and create ASCII animations
Agent Success
Agent success rate when using this tile
81%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.33x
Baseline
Agent success rate without this tile
61%
Build a terminal-based log viewer that displays log content larger than the visible screen using a scrolling buffer. The viewer allows users to navigate through content that extends beyond the terminal's physical display area.
Create a screen buffer with a height larger than the terminal's visible height. This allows content to be rendered beyond what is immediately visible.
Print log lines into the buffer and display the visible portion in the terminal window. The buffer should contain all log content while only a subset is shown on screen.
Support keyboard navigation:
Display a status line showing the current viewing position (e.g., "Lines 1-20 of 100").
@generates
def create_log_viewer(screen, log_lines):
"""
Create and run a log viewer with scrolling buffer.
Parameters:
- screen: Screen instance
- log_lines (list): List of log line strings to display
The function should handle user input for scrolling and display
the appropriate portion of the log based on scroll position.
"""Provides terminal control and screen management with scrolling buffer support.
@satisfied-by