title: golang opening second terminal/console
body: <p>I have been looking around and can't find another question like this for golang. </p>
  
  <p>Is there a way in golang to open a second console / terminal window and send output to it? 
  I basically want to use one terminal for typing in, and the other to have a constant feed of information that will update in the window whenever the program wants, so I don't want to overwrite what a user is currently typing into the first terminal. </p>
  
  <p>Update:</p>
  
  <p>I have been working on some ideas, and with the exec function, you can run terminal commands, such as the windows "start" function, which opens another terminal and. This is as far as I have made it, now I just need to add a pipe so that the executable "node.exe" will read from it. This apparently is done using the cmd structure in the exec library. I will update, once I get it all i'll post my answer. </p>
  
  <pre><code>package main
  
  import (
      "log"
      "os/exec"
  )
  
  func main(){
      cmd := exec.Command("cmd","/C","start","node.exe")
      err := cmd.Start()
      if err != nil {
          log.Fatal(err)
      }
      for i := 0; i &lt; 100; i++{
          log.Println(i)
      }
  }
  </code></pre>
  
  <p>This runs node.exe in another terminal, meanwhile it loops through and prints 0-99 to the current terminal</p>