mysqlshdk/libs/textui/term_vt100.h
// Requests a Report Device Status response from the device.
Requests a Report Device Status response from the device.
Requests a Report Device Status response from the device .
inline bool query_device_status() {
  send_escape("\033[5n");
  char buffer[4];
  read_escape("n", buffer, sizeof(buffer));
  return strcmp(buffer + 1, "0") == 0;
}
inline bool query_device_status ( ) { send_escape ( " \033 " ) ; char buffer [ 4 ] ; read_escape ( " " , buffer , sizeof ( buffer ) ) ; return strcmp ( buffer + 1 , " " ) == 0 ; }
Requests a Report Device Status response from the device.
Requests a Report Device Status response from the device .