If a remote system is the aim I’d recommend checking out an SSH app I wrote using the fyne terminal library - it probably does what you need.
https://github.com/andydotxyz/sshterm/blob/57557c8e6ab083370f00acd21d228b0bbd692518/main.go#L170