# Class: MainController

Main Controller Class

# Public Instance Methods

### menu ()

Show source...

        # File bbs/lib/controllers/main.rb, line 58
    58:   def menu
    59:     done = false
    60:     validkeys=['A','B','C','E','F','G','H','M','P','T','U','?']
    61:     until done == true
    62:       key = Tgio::Input.menuprompt('menu_main.ftl',validkeys, nil) # nil is for tpl vars hash
    63:       test_session
    64:       print "\n"
    65:       case key
    66:         when "A" # AutoMessage
    67:           Telegard.unimplemented
    68:         when "B" # BBS Lists
    69:           Telegard.unimplemented
    70:         when "C" # Chat Rooms
    71:           Telegard.unimplemented
    72:         when "E" # Email Tools
    73:           #EmailController.new.menu
    74:           Telegard.unimplemented
    75:         when "F" # File Areas
    76:           FileAreaController.new.menu
    77:         when "G" # Good Bye
    78:           Telegard::goodbye
    79:         when "H" # Call History
    80:           CallHistoryController.new.menu
    81:         when "M" # Messages Areas
    82:           MsgareaController.new.menu
    83:         when "P" # Page Sysop
    84:           Telegard.unimplemented
    85:         when "T" # Timebank
    86:           Telegard.unimplemented
    87:         when "U" # User Menu
    88:           UserController.new.menu
    89:         when "?" # User Help
    90:           HelpController.new.menu
    91:       end #/case
    92:       test_session
    93:     end #/until
    94:   end