def enterMode(clientId, remaining): pushCmdHandler(clientId, self.modeMap) sendToClient( clientId, "\r\n{!{FG[{FYEntering %s mode{FG] {@({!{FC!{@ to exit)\r\n" % self.modeName) if modeAddDefaultCmds: sendToClient(clientId, self.modeMap.commands()) sendToClient(clientId, "\r\n")
def enterMode( clientId, remaining ): pushCmdHandler( clientId, self.modeMap ) sendToClient( clientId, "\r\n{!{FG[{FYEntering %s mode{FG] {@({!{FC!{@ to exit)\r\n" % self.modeName) if modeAddDefaultCmds: sendToClient( clientId, self.modeMap.commands() ) sendToClient( clientId, "\r\n" )
def addRootMap( clientId ): pushCmdHandler( clientId, rootCmdMap )