Annika Backstrooms on Nostr: How do folks make those cool terminal outputs that update multiple lines ...
How do folks make those cool terminal outputs that update multiple lines independently? Like this docker compose one that has 3 spinners on 3 different lines for the status of each container, and each line updates as the status changes.
I know about `tput` but I assume there are some decent libraries for this sort of thing.
#AskMastodon
Published at
2025-05-04 21:47:05 UTCEvent JSON
{
"id": "da0788eb5ce4abb9f9a679125bfbd3e3431589138a587cae3e11891fff739eb8",
"pubkey": "7d51f2185887624f853b2c122eb4b41248788d26ec0aea387cf1ac29e206f51e",
"created_at": 1746395225,
"kind": 1,
"tags": [
[
"t",
"askmastodon"
],
[
"imeta",
"url https://xoxo-media.sfo2.cdn.digitaloceanspaces.com/media_attachments/files/114/451/744/287/026/370/original/e415fb2508a410cb.png",
"m image/png",
"dim 538x159",
"blurhash UGBy?at7adj?5Znhs:jY};Rij]j[5Yn$acoI"
],
[
"proxy",
"https://xoxo.zone/users/annika/statuses/114451757470615560",
"activitypub"
],
[
"client",
"Mostr",
"31990:6be38f8c63df7dbf84db7ec4a6e6fbbd8d19dca3b980efad18585c46f04b26f9:mostr",
"wss://relay.mostr.pub"
]
],
"content": "How do folks make those cool terminal outputs that update multiple lines independently? Like this docker compose one that has 3 spinners on 3 different lines for the status of each container, and each line updates as the status changes.\n\nI know about `tput` but I assume there are some decent libraries for this sort of thing.\n\n#AskMastodon\n\nhttps://xoxo-media.sfo2.cdn.digitaloceanspaces.com/media_attachments/files/114/451/744/287/026/370/original/e415fb2508a410cb.png",
"sig": "605e2027dd093b6fe046fedc24c3ec7fe1660b4ade4ab9a7763b2a6bd5bb5a58aa632f39970f7857cb7e54b827ac062abd16318bda3083e4d4f5749b5efc8740"
}