AutoYADM commit: 2025-06-09 18:39:42

This commit is contained in:
Daniel Fichtinger 2025-06-09 18:39:42 -04:00
parent eafc2ae303
commit 0a173e7323
2 changed files with 24 additions and 2 deletions

View file

@ -65,14 +65,12 @@ def main():
diagnostics = parse_specs(payload)
_ = outfile.write("ok\n")
outfile.flush()
print("ok", flush=True)
elif line.startswith("query "):
_, pos = line.split(" ", 1)
l, c = map(int, pos.strip().split())
result = is_cursor_in_any((l, c), diagnostics)
_ = outfile.write("true\n" if result else "false\n")
outfile.flush()
print("ok", flush=True)
elif line == "exit":
break