Term_keypress('0' + (ck - 64) % 10);
/* Hack -- Terminate the sequence */
+ /* MPW can generate 10 or 13 for keycode of '\r' */
+ /* -noMapCR option swaps '\r' and '\n' */
Term_keypress('\r');
}
if (str)
{
*s++ = (char)31;
- *s++ = (char)13;
+ *s++ = '\r';
*bufptr = s;
*strptr = str; /* where **strptr == ']' */
}
break;
}
}
- *s++ = (char)13;
+ *s++ = '\r';
*bufptr = s;
*strptr = str; /* where **strptr == ']' */
}
break;
case '#':
- for (j = 0; *str && *str != (char)13; j++)
+ for (j = 0; *str && *str != '\r'; j++)
key_code[j] = *str++;
key_code[j] = '\0';
break;
str++;
}
}
- if (*str++ != (char)13) return FALSE;
+ if (*str++ != '\r') return FALSE;
for (i = 0; i < max_macrotrigger; i++)
{