Differences From Artifact [2a75e21fbb]:
- File
src/console.mm
— part of check-in
[f5b62f8203]
at
2025-03-04 23:03:58
on branch trunk
— Initial port to macOS
Doesn't work yet as SDL1 is broken on modern macOS. (user: js, size: 6297) [annotate] [blame] [check-ins using]
To Artifact [45e0d06f5e]:
- File src/console.mm — part of check-in [42d4b57828] at 2025-03-04 23:51:09 on branch trunk — Port to SDL2 (user: js, size: 5202) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
122 123 124 125 126 127 128 | } } COMMANDN(bind, bindkey, ARG_2STR) void saycommand(char *init) // turns input to the command line on or off { | | > > > > | < < < < < < < < | < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < > | 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 | } } COMMANDN(bind, bindkey, ARG_2STR) void saycommand(char *init) // turns input to the command line on or off { saycommandon = (init != NULL); if (saycommandon) SDL_StartTextInput(); else SDL_StopTextInput(); if (!editmode) keyrepeat = saycommandon; if (!init) init = ""; strcpy_s(commandbuf, init); } COMMAND(saycommand, ARG_VARI) void mapmsg(OFString *s) { @autoreleasepool { strn0cpy(hdr.maptitle, s.UTF8String, 128); } } COMMAND(mapmsg, ARG_1STR) void pasteconsole() { char *cb = SDL_GetClipboardText(); strcat_s(commandbuf, cb); } cvector vhistory; int histpos = 0; void history(int n) { |
︙ | ︙ |