tessl install tessl/pypi-textual@6.1.0Modern Text User Interface framework for building cross-platform terminal and web applications with Python
Agent Success
Agent success rate when using this tile
93%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.18x
Baseline
Agent success rate without this tile
79%
Build a terminal-based task manager application that demonstrates custom keyboard shortcuts and input handling.
Create a task list application with the following features:
Display a list of tasks, where each task has:
Implement the following keyboard shortcuts:
Add Task: Press a or n to add a new task. When triggered, show an input field where the user can type the task description. Press Enter to save, Escape to cancel.
Toggle Complete: Press space to toggle the completion status of the currently selected/focused task.
Delete Task: Press d or Delete to remove the currently selected/focused task.
Navigation: Support both j/k (vim-style) and arrow keys (up/down) for navigating between tasks in the list.
Quit: Press q or Ctrl+C to exit the application.
The application should start with 3 sample tasks:
Your implementation should pass the following test cases:
a activates the input field for adding a new task @testspace toggles the selected task's completion status @testj moves selection down and k moves selection up @test@generates
from textual.app import App
class TaskManagerApp(App):
"""A task manager application with custom key bindings."""
passModern Text User Interface framework for building terminal applications.
@satisfied-by