no way to redirect xterm like cmd