terminal package that utilize io.ReadWriter

57 views
Skip to first unread message

Vasiliy Tolstov

unread,
Apr 27, 2017, 6:04:22 PM4/27/17
to golang-nuts
I have some ReadWriter stream interface, that utilize custom rpc to
send/recv data from/to endpoint.
I need terminal package to run on client that understand standard
terminal escape symbols and can be used with ReadWriter interface.
On another end of enpoint runned bash.

I'm try ssh/terminal package but when i'm use it and enter date
command i get something like:
[root@143177 ~]# [root@143177 ~]# [root@143177 ~]# [root@143177 ~]#
date[root@143177 ~]# [root@143177 ~]# [root@143177 ~]# bash:
[root@143177: command not found[root@143177 ~]# [root@143177 ~]#
[root@143177 ~]# bash: [root@143177: command not found[root@143177 ~]#
[root@143177 ~]# [root@143177 ~]# bash: [root@143177: command not
found[root@143177 ~]# [root@143177 ~]# [root@143177 ~]# datebash:
[root@143177: command not found[root@143177 ~]# [root@143177 ~]#
[root@143177 ~]# bash: [root@143177: command not found[root@143177 ~]#
[root@143177 ~]# [root@143177 ~]# [root@143177 ~]#

custom ReadWriter when Read returns recieved data immediately if it
present, writer blocks while write data and returns when all data in
buffer writed.
--
Vasiliy Tolstov,
e-mail: v.to...@selfip.ru
Reply all
Reply to author
Forward
0 new messages