title: How to re-size screen size over serial terminal
body: <p>I'm developing serial terminal sw and trying to resolve asynchronous screen size.
  Below is in detail</p>
  <ul>
  <li>There are modem_[a,b] and modem_a's uart1, _b's uart0 are connected(Main console port of both is uart0).</li>
  <li>serial_app on modem_a attempts to access to modem_b via serial line.</li>
  <li>serial_app uses termios library</li>
  </ul>
  <p>And it's possible to serial-access to modem_b then it provides terminal service like putty.
  <a href="https://i.stack.imgur.com/ANgoH.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ANgoH.jpg" alt="enter image description here" /></a></p>
  <p>But I change console window size then it starts asynchronous display.
  <a href="https://i.stack.imgur.com/akA1P.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/akA1P.jpg" alt="enter image description here" /></a></p>
  <p>However, I execute <code>resize</code> command then it becomes fixed.</p>
  <p>So I checked <code>SIGWINCH</code> and it was triggered on modem_a but not on modem_b. And I've looked for how to pass SIGWINCH through serial terminal or cause SIGWINCH over modem_b controlling terminal settings like ioctl_tty(), escape sequence(\e[8;$Height;$Width, ...) , and so on...</p>
  <p>Eventually I failed..</p>
  <p>I'd like to maintain synchronous display whenever I change window size.</p>
  <p>So you guys, Do you have a solution? or anything else?</p>