Пример #1
0
 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")
Пример #2
0
 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" )
Пример #3
0
def addRootMap( clientId ):
    pushCmdHandler( clientId, rootCmdMap )