Revision d96ce104

View differences:

core/src/aos_shell.c
352 352

  
353 353
/**
354 354
 * @brief   Interprete a escape sequence
355
 * @details This function interpretes escape sequences (starting with ASCII
356
 *          "Escape" character 0x1B) according to the VT100 / VT52 ANSI escape
357
 *          sequence definitions.
358
 * @note    Only the most important escape sequences are implemented yet.
355 359
 *
356 360
 * @param[in] seq   Character sequence to interprete.
357 361
 *                  Must be terminated by NUL byte.
......
395 399
  }
396 400

  
397 401
  // HOME
398
  cmp = strcmp(seq, "\x1B\x4F\x48");
402
  cmp = strcmp(seq, "\x1B\x5B\x48");
399 403
  if (cmp == 0) {
400 404
    return KEY_HOME;
401 405
  } else {
......
403 407
  }
404 408

  
405 409
  // END
406
  cmp = strcmp(seq, "\x1B\x4F\x46");
410
  cmp = strcmp(seq, "\x1B\x5B\x46");
407 411
  if (cmp == 0) {
408 412
    return KEY_END;
409 413
  } else {

Also available in: Unified diff