[GH-ISSUE #775] broken links in InputField wiki #565

Closed
opened 2026-03-04 01:06:04 +03:00 by kerem · 8 comments
Owner

Originally created by @carpii on GitHub (Dec 3, 2022).
Original GitHub issue: https://github.com/rivo/tview/issues/775

I couldn't find a way to fork the wiki repo, so I'll report them here instead

https://github.com/rivo/tview/wiki/InputField

The two autocomplete links are broken

They have since moved from demos/inputfield/autocomplete.go -> demos/inputfield/autocomplete/main.go), and likewise for async

Originally created by @carpii on GitHub (Dec 3, 2022). Original GitHub issue: https://github.com/rivo/tview/issues/775 I couldn't find a way to fork the wiki repo, so I'll report them here instead https://github.com/rivo/tview/wiki/InputField The two autocomplete links are broken They have since moved from `demos/inputfield/autocomplete.go` -> `demos/inputfield/autocomplete/main.go`), and likewise for async
kerem closed this issue 2026-03-04 01:06:04 +03:00
Author
Owner

@rivo commented on GitHub (Dec 3, 2022):

Thanks for letting me know. I fixed the broken links.

I don't know if a PR can be submitted for a Wiki.

<!-- gh-comment-id:1336211029 --> @rivo commented on GitHub (Dec 3, 2022): Thanks for letting me know. I fixed the broken links. I don't know if a PR can be submitted for a Wiki.
Author
Owner

@rivo commented on GitHub (Dec 3, 2022):

By the way, @carpii, thank you for sponsoring me! 😊

<!-- gh-comment-id:1336211570 --> @rivo commented on GitHub (Dec 3, 2022): By the way, @carpii, thank you for sponsoring me! 😊
Author
Owner

@carpii commented on GitHub (Dec 3, 2022):

No probs, great lib thanks :-)

<!-- gh-comment-id:1336212085 --> @carpii commented on GitHub (Dec 3, 2022): No probs, great lib thanks :-)
Author
Owner

@carpii commented on GitHub (Dec 3, 2022):

@rivo - Just as a sidenote, do you know why VSCode terminal will only show 16 colors when debugging a tview app?

Top area is my tview app running in bash terminal. Bottom area is when debugging via VSCode.

I've pretty much exhausted my google-fu, and VSCode discord has no suggestions either

Thanks

<!-- gh-comment-id:1336219347 --> @carpii commented on GitHub (Dec 3, 2022): @rivo - Just as a sidenote, do you know why VSCode terminal will only show 16 colors when debugging a tview app? ![](https://i.imgur.com/eV10j0j.png) Top area is my tview app running in bash terminal. Bottom area is when debugging via VSCode. I've pretty much exhausted my google-fu, and VSCode discord has no suggestions either Thanks
Author
Owner

@rivo commented on GitHub (Dec 4, 2022):

I didn't know you could run tview (or tcell for that matter) in VSCode. I always get

"open /dev/tty: device not configured"

when I try to do that. But anything related to terminal support is a matter of tcell. You might want to ask for help there. I don't know much about that topic.

<!-- gh-comment-id:1336505476 --> @rivo commented on GitHub (Dec 4, 2022): I didn't know you could run `tview` (or `tcell` for that matter) in VSCode. I always get > "open /dev/tty: device not configured" when I try to do that. But anything related to terminal support is a matter of [`tcell`](https://github.com/gdamore/tcell). You might want to ask for help there. I don't know much about that topic.
Author
Owner

@carpii commented on GitHub (Dec 4, 2022):

Thanks, didn't think to try tcell support, but makes sense since they provide the coloring features

For debugging in vscode, I thinkit's just a case of adding "console": "integratedTerminal", to your .vscode/launch.json (and then select the launch profile from the Run and Debug tab)

Trimmed down version of mine below...

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "UI",
            "type": "go",
            "request": "launch",
            "mode": "debug",
            "program": "${workspaceRoot}",
            "console": "integratedTerminal",
            "args": ["ui"]
        },
        {
            "name": "Import OFX",
            "type": "go",
            "request": "launch",
            "mode": "debug",
            "program": "${workspaceRoot}",
            "console": "integratedTerminal",
            "args": ["import", "--filename", "data/barclays_test.ofx"]
        }
    ]
}

Then I can debug my tview app directly in vscode terminal (although color palette seems restricted). Still, it's pretty handy :)

<!-- gh-comment-id:1336527086 --> @carpii commented on GitHub (Dec 4, 2022): Thanks, didn't think to try tcell support, but makes sense since they provide the coloring features For debugging in vscode, I thinkit's just a case of adding `"console": "integratedTerminal",` to your `.vscode/launch.json` (and then select the launch profile from the Run and Debug tab) Trimmed down version of mine below... ```` { "version": "0.2.0", "configurations": [ { "name": "UI", "type": "go", "request": "launch", "mode": "debug", "program": "${workspaceRoot}", "console": "integratedTerminal", "args": ["ui"] }, { "name": "Import OFX", "type": "go", "request": "launch", "mode": "debug", "program": "${workspaceRoot}", "console": "integratedTerminal", "args": ["import", "--filename", "data/barclays_test.ofx"] } ] } ```` Then I can debug my tview app directly in vscode terminal (although color palette seems restricted). Still, it's pretty handy :) ![](https://i.imgur.com/6dz8SDJ.png)
Author
Owner

@carpii commented on GitHub (Dec 6, 2022):

Found the solution, you have to set this in vscode settings..

"terminal.integrated.minimumContrastRatio": 1

<!-- gh-comment-id:1340172919 --> @carpii commented on GitHub (Dec 6, 2022): Found the solution, you have to set this in vscode settings.. `"terminal.integrated.minimumContrastRatio": 1`
Author
Owner

@rivo commented on GitHub (Dec 8, 2022):

Wow! Nice! This is so useful! I had never figured that out myself. Thank you for this!

<!-- gh-comment-id:1342790466 --> @rivo commented on GitHub (Dec 8, 2022): Wow! Nice! This is so useful! I had never figured that out myself. Thank you for this!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tview#565
No description provided.