mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 21:35:54 +03:00
[GH-ISSUE #709] Question / Feature request #519
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#519
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 @jagottsicher on GitHub (Mar 12, 2022).
Original GitHub issue: https://github.com/rivo/tview/issues/709
This repo looks very promising if one is looking for an alternate to goncurses. Also more features and from scratch built up in Go.
My Question: Does it support to "printf" or "sprintf" to specific coorditnates on the screen (terminal)? and can I determinate the position of the cursor? is utf-8 fully supported? And does this repo support a windows command line as terminal without the need to have a third party terminal like cygwin?
@rivo commented on GitHub (Mar 12, 2022):
Based on your questions, my impression is you're rather looking for something like https://github.com/gdamore/tcell/.
tcellgives you full control over what you want to print on screen.tviewis based ontcelland focuses on providing common widgets such as buttons, input fields, forms, tables, and text views. If you want to put some text at a specific screen coordinate, there are ways to do that but that's not it's main focus so it might be cumbersome.tviewsupports UTF-8 fully and it supports all terminals thattcellsupports, including the Windows command line.@jagottsicher commented on GitHub (Mar 12, 2022):
True, thanks for turning my head into direction tcell. I am not really searching for something that specific but want to create some cool examples for a course. Also the long term maybe create a tool like mc which could (as a vision) become something like an super-extended tui proving a serious tui with graphic-like features and can be served over ssh terminal.
Imagine macos or kde/gnome with mc and/or total commander all over ssh but server-sided executed. But that's a vision only cause I like Go much. :-)
My questions answered, thanks, I'll close the issue (asap as I don't know I can close it with the APP)
@rivo commented on GitHub (Mar 12, 2022):
Just another small note,
tcellallows you to print individual UTF-8 characters on screen but if you want to print entire strings that contain UTF-8 characters, it gets complicated very quickly.tviewhandles this for you buttcelldoesn't. I spent way more time making this work than I initially expected.@jagottsicher commented on GitHub (Mar 12, 2022):
Thanks! I'll keep that in mind, and when I face that problem I will thankfully remember it!