Does anybody have any idea why when running an exec.Command into a different tty such as /dev/ttys001 opened in a separate terminal tab, doesn’t properly register std input whilst the command is running?
For example, the following code works fine and loads vim in the /dev/ttys001's terminal tab, but when actually switching to /dev/ttys001's tab from the tab that started the exec.Command, stdin is choppy and doesn’t work correctly.
Is this because trying to write to the tab attempts to write to vim and the tabs stdin at the same time?