moo.sdk.output.get_client_mode

moo.sdk.output.get_client_mode()

Return the current player’s shell mode.

Returns "rich" (prompt_toolkit TUI, the default) or "raw" (line- based I/O for traditional MUD clients that cannot handle cursor control).

Verbs use this to short-circuit editor-opening code paths in raw mode and suggest the inline @edit ... with "..." form instead. Most verbs should call can_open_editor() instead, which also returns True for raw-mode clients that advertise GMCP Editor support (e.g. the djangomoo Mudlet bridge).

Return type:

str