mirror of
https://github.com/rivo/tview.git
synced 2026-04-27 05:45:49 +03:00
[GH-ISSUE #478] any hint or possibility to use tview on server? #347
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#347
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @hick on GitHub (Jul 22, 2020).
Original GitHub issue: https://github.com/rivo/tview/issues/478
I mean to develop a telnet server using tview, and use telnet client to connect to such server resposing with tview terminal ui ?
tview.NewApplication().SetRoot(box, true).Run()will output the tview ui on the server directly@tslocum commented on GitHub (Aug 18, 2020):
I created sshtargate to accomplish this for SSH connections by creating a pseudo-terminal and then copying between the input/output of the pty and the SSH connection.
https://gitlab.com/tslocum/sshtargate/-/blob/master/portal/portal.go
@rivo commented on GitHub (Sep 15, 2020):
I'll close this. @hick, please get in touch with @tslocum. He managed to do this and can answer your questions.
@iamtakingiteasy commented on GitHub (Aug 22, 2021):
Linked sources does not seem to use tview, nor tcell at all.
Allocating OS pty should not be required for this task, just to wrap ssh channel ReadWriteCloser with
tcell.Ttymethods to expose window dimensions, window dimensions change callback and noop implementation for other methods, see https://github.com/gdamore/tcell/issues/148Sadly tcell's
NewTerminfoScreenFromTtyseem to be hard-wired to load terminfo details from local environment and there is no means in current API to override it.https://github.com/gdamore/tcell/pull/479 hopefully should provide such means in form of
NewTerminfoScreenFromTtyTerminfo.@progrium commented on GitHub (Aug 13, 2022):
The previously mentioned function was merged, so I decided to try it out with an integration example using gliderlabs/ssh and it works!
https://github.com/progrium/tview-ssh