Should .dispose()
be a trapdoor function?
#3939
Labels
type/documentation
Regarding website, API documentation, README, etc.
Milestone
As part of lifecycle management,
xterm.dispose()
exists to dispose of a terminal object. The documentation states that this function:However, as part of this process, it also overwrites the
.write()
call, making the terminal no longer usable.It seems as though the opposite would be
open()
:Should this be the case? Should
.open()
reinstate the.write()
call? Or should the documentation be updated to reflect the fact that this is an error, and perhaps a warning be added to.write()
or.open()
to indicate the user is using a terminal that has been disposed of?This is an extension of the discussion from #3910
The text was updated successfully, but these errors were encountered: