The mged editor has several states:
The status command can be used to output the editor state:
Note that a database must be open to return an editor state.