Initial table mode added. Probably bugs.

This commit is contained in:
Storm Dragon
2025-07-07 09:46:12 -04:00
parent 3390c25dfe
commit d1a42835e4
8 changed files with 527 additions and 26 deletions

View File

@ -55,6 +55,17 @@ class ScreenManager:
def get_screen_text(self):
return self.currScreenText
def get_line_text(self, line_number):
"""Get text from a specific line (0-based index)"""
if not self.env["screen"]["new_content_text"]:
return ""
lines = self.env["screen"]["new_content_text"].split("\n")
if line_number < 0 or line_number >= len(lines):
return ""
return lines[line_number]
def get_curr_screen(self):
try: