Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 551 Bytes

README.md

File metadata and controls

36 lines (25 loc) · 551 Bytes

GoTerminal

Test GoTerminal

  1. Get the test code

    git clone https://github.com/zhan9san/GoTerminal.git
  2. Build a binary, IsTerminal

    cd GoTerminal/IsTerminal
    go build
  3. Verify the difference

    1. Run in terminal

      $ ./IsTerminal
      IsTerminal:  true
    2. Run IsTerminal thru Golang os/exec

      $ cd ../ExecIsTerminal
      $ go run main.go
      Starting command
      out: IsTerminal:  false
      
      err: