fyne-io/terminal

Can Terminal export the Write method?

Closed this issue · 9 comments

I want to send commands into Terminal.

This is a good point. What sort of content are you writing? We could expose Write([]byte) or WriteString(string)

This is my project: https://github.com/tk103331/fyneshell.
A shell client by fyne, for local PTY or SSH.

I want to implement the feature of quick command, which can quickly send the command to the terminal.

I think both methods will work.

That looks like a fun project. However we would appreciate it if you don't imply that the Fyne project created this - the wording "A shell client by fyne..." could be misleading.

That should be working for you now :)

Thank you for your reply. I will try it soon.

And, I apologize for my mistake. I will update the project description. Is it appropriate to look like this: "A simple SSH client via Fyne."?

Do you still need me to change the project name?

I have try it.It works well in local pty,but not well in ssh connection.
When i 'Write' cmd into terminal, the cmd can send into ssh connection,but not display in the terminal.

Is it appropriate to look like this: "A simple SSH client via Fyne."?

Great thank you.

Do you still need me to change the project name?

The name is less of a problem, but if people could confuse it with FyneTerm then maybe a different name would be helpful?

When i 'Write' cmd into terminal, the cmd can send into ssh connection,but not display in the terminal.

Perhaps you have opened the SSH connection with echo turned off? I don’t think the terminal is responsible for showing what was sent to the shell inside or you’d get doubled up rendering for a local terminal.

Maybe you are right.

Renamed project : https://github.com/tk103331/goshell

Renamed project : https://github.com/tk103331/goshell

Thanks, I appreciate that.