message: fixing multiline query pasting in shell
diff: @@ -241,7 +241,7 @@ static int enableRawMode(int fd) {
  raw.c_cc[VMIN] = 1; raw.c_cc[VTIME] = 0; /* 1 byte, no timer */
  /* put terminal in raw mode after flushing */
  - if (tcsetattr(fd,TCSAFLUSH,&raw) < 0) goto fatal;
  + if (tcsetattr(fd,TCSADRAIN,&raw) < 0) goto fatal;
  rawmode = 1;
  return 0;
  @@ -252,7 +252,7 @@ fatal:
  static void disableRawMode(int fd) {
  /* Don't even check the return value as it's too late. */
  - if (rawmode && tcsetattr(fd,TCSAFLUSH,&orig_termios) != -1)
  + if (rawmode && tcsetattr(fd,TCSADRAIN,&orig_termios) != -1)
  rawmode = 0;
  }
  