Re: [go-nuts] Foregrounding, process management, os/exec.Cmd

2017-01-23 Thread James Aguilar
On Sun, Jan 22, 2017 at 8:45 PM Ian Lance Taylor wrote: > On Sat, Jan 21, 2017 at 4:07 PM, James Aguilar > wrote: > > If you don't know or care about pagers and process management, you can > stop > > reading now. > > > > Background: I have a program that compile my code each time I modify it. >

Re: [go-nuts] Foregrounding, process management, os/exec.Cmd

2017-01-23 Thread Peter Waller
I'm afraid I can't find the code, but I actually did this in the distant past and recall having some success. (I was the one who introduced Ctty to SysProcAttr for this very purpose! :). One thing it seems as though you're missing is you don't set SysProcAttr.Setctty. The documentation string for

Re: [go-nuts] Foregrounding, process management, os/exec.Cmd

2017-01-22 Thread Ian Lance Taylor
On Sat, Jan 21, 2017 at 4:07 PM, James Aguilar wrote: > If you don't know or care about pagers and process management, you can stop > reading now. > > Background: I have a program that compile my code each time I modify it. It > produces logs continuously on a terminal. > > I'm trying to write a g

[go-nuts] Foregrounding, process management, os/exec.Cmd

2017-01-21 Thread James Aguilar
If you don't know or care about pagers and process management, you can stop reading now. *Background:* I have a program that compile my code each time I modify it. It produces logs continuously on a terminal. I'm trying to write a go program to wrap this program so that each compile log is op