title: what's the default state of a newly opened terminal
body: <p>I have the following functions in Linux,</p>
  
  <pre><code>#include &lt;termios.h&gt;
  
  struct termios s;
  int fd=open("/dev/ttyO0",O_RDWR);
  tcgetattr( fd,&amp;s);
  </code></pre>
  
  <p>And what's will be content in <code>s</code>, or in another word, whats the state of my <code>ttyO0</code> terminal( a serial terminal) which is referred by <code>fd</code>. Is there a default state for a newly opened terminal, since the fd is brand new now. Please also let me know where to find the related document.</p>