For mapping purposes, you could also take a look at the TADS3 cartographer library by @Tomas. I haven’t tried it myself, but it seems that you can show an in-game map (as well as export to an external file) and can set an option to only show visited rooms.
Links: Tads3 cartographer extension (Thread), GitHub - toerob/t3cartographer: A library for the Tads3 programming language that creates an in-game graphical map from a tads3 objects and outputs it in either ascii, svg, graphviz dot or html.