()
| 181 | |
| 182 | |
| 183 | public static void Init() { |
| 184 | ClientGlobals.con.linewidth = -1; |
| 185 | ClientGlobals.con.backedit = 0; |
| 186 | |
| 187 | CheckResize(); |
| 188 | |
| 189 | Com.Printf("Console initialized.\n"); |
| 190 | |
| 191 | // |
| 192 | // register our commands |
| 193 | // |
| 194 | ClientGlobals.con_notifytime = Cvar.getInstance().Get("con_notifytime", "3", 0); |
| 195 | |
| 196 | Cmd.AddCommand("toggleconsole", ToggleConsole_f); |
| 197 | Cmd.AddCommand("togglechat", ToggleChat_f); |
| 198 | Cmd.AddCommand("messagemode", MessageMode_f); |
| 199 | Cmd.AddCommand("messagemode2", MessageMode2_f); |
| 200 | Cmd.AddCommand("clear", Clear_f); |
| 201 | Cmd.AddCommand("condump", Dump_f); |
| 202 | Cmd.AddCommand("console_print", args -> Console.Print(args.get(0))); |
| 203 | ClientGlobals.con.initialized = true; |
| 204 | } |
| 205 | |
| 206 | /** |
| 207 | * If the line width has changed, reformat the buffer. |
no test coverage detected