small cleaning

http-comm
Ondřej Hruška 7 years ago
parent 10fafd7c23
commit 1742f4604a
  1. 8
      user/apars_osc.c
  2. 2
      user/sgr.h

@ -37,17 +37,21 @@ apars_handle_osc(char *buffer)
// Do something with the data string and number // Do something with the data string and number
// (based on xterm manpage) // (based on xterm manpage)
if (n == 0 || n == 2) { if (n == 0 || n == 2) {
// Window title (or "icon name" in Xterm)
screen_set_title(buffer); screen_set_title(buffer);
} }
else if (n == 9) { else if (n == 9) {
// iTerm2-style "growl" notifications
buffer--; buffer--;
buffer[0] = 'G'; buffer[0] = 'G';
notify_growl(buffer); notify_growl(buffer);
} }
else if (n >= 81 && n <= 85) { // ESPTerm: action button label else if (n >= 81 && n <= 85) {
// ESPTerm: action button label
screen_set_button_text(n - 80, buffer); screen_set_button_text(n - 80, buffer);
} }
else if (n >= 91 && n <= 95) { // ESPTerm: action button text else if (n >= 91 && n <= 95) {
// ESPTerm: action button message
strncpy(termconf_scratch.btn_msg[n - 91], buffer, TERM_BTN_MSG_LEN); strncpy(termconf_scratch.btn_msg[n - 91], buffer, TERM_BTN_MSG_LEN);
} }
else { else {

@ -46,6 +46,4 @@ enum SGR_CODES {
SGR_BG_BRT_END = 107, SGR_BG_BRT_END = 107,
}; };
#define SGR_OFF(n) (20+(n))
#endif //ESP_VT100_FIRMWARE_SGR_H #endif //ESP_VT100_FIRMWARE_SGR_H

Loading…
Cancel
Save