Skip to content
Discussion options

You must be logged in to vote

If you want an example of how to integrate an HTTP call into Terminal.Gui, see the example below. This is a new scenario added to the UICatalog project, but you can use it in your own project, with the Main method in the Program.cs file. When the application loads, the data is immediately retrieved through the Loaded event. Later, it can be retrieved via the timer added through the Application.AddTimeout call. I used a ListView as the consumer of these calls, but you could use any other view or views, depending on your needs.

#nullable enable

using System.Collections.ObjectModel;
using System.Text;
using System.Text.Json;
using System.Text.Json.Serialization;

namespace UICatalog.Scenarios;

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@MaciekWin3
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by MaciekWin3
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants