mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 21:35:54 +03:00
[GH-ISSUE #785] STDIN of tview process skipping some characters #575
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#575
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 @sharadregoti on GitHub (Dec 21, 2022).
Original GitHub issue: https://github.com/rivo/tview/issues/785
I have the following program, which tries to get a shell access into a running kubernetes pod. I am trying to achieve the same functionality but using tview. With below program i am able sync stdout, stdin, stderr of the kubectl process with tview UI.
But while inputting something (as it is a shell). I have to press the same key multiple times to view it on the UI.
For example, In this image I had to press
l2 times,s2 times &enterkey 2 times to execute the ls command. And also i am not able to view the cursor of shell.What am I doing wrong here?
@sharadregoti commented on GitHub (Jan 2, 2023):
@rivo Any update on this?
@rivo commented on GitHub (Jan 2, 2023):
I'm not able to run this program as it requires external dependencies.
But in any case, I don't think assigning
os.Stdin/os.Stdoutto other processes will work withtview(ortcell, for that matter).tcellneeds these two for itself. So whatever the problem is here, it's very likely due to two different processes trying to access the same resource.