support resize  term window