Skip to content

zhan9san/GoTerminal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

About

Test GoTerminal

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages