pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/chat/tootstream



Module Name:    pkgsrc
Committed By:   nia
Date:           Mon Oct 14 08:24:44 UTC 2024

Modified Files:
        pkgsrc/chat/tootstream: distinfo
Added Files:
        pkgsrc/chat/tootstream/patches: patch-src_tootstream_toot.py

Log Message:
tootstream: fix help display

ride previous bump


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 pkgsrc/chat/tootstream/distinfo
cvs rdiff -u -r0 -r1.4 \
    pkgsrc/chat/tootstream/patches/patch-src_tootstream_toot.py

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/chat/tootstream/distinfo
diff -u pkgsrc/chat/tootstream/distinfo:1.11 pkgsrc/chat/tootstream/distinfo:1.12
--- pkgsrc/chat/tootstream/distinfo:1.11        Mon Oct 14 08:11:12 2024
+++ pkgsrc/chat/tootstream/distinfo     Mon Oct 14 08:24:43 2024
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.11 2024/10/14 08:11:12 nia Exp $
+$NetBSD: distinfo,v 1.12 2024/10/14 08:24:43 nia Exp $
 
 BLAKE2s (tootstream-0.4.0.tar.gz) = 28e9125d830ea52934f0f47152006fb1dfbbec957c1221fb114dc191ce299fe2
 SHA512 (tootstream-0.4.0.tar.gz) = efaa2322be4d0fed3f4f497b779f926e95223ad3e2124422e0802e6a7134592321f24cb9829dd79e8f593aa8b81acf4811c7ec04b387765cd864134d6a2180cd
 Size (tootstream-0.4.0.tar.gz) = 27829 bytes
+SHA1 (patch-src_tootstream_toot.py) = 1293b70b8ffc4d9031a6c32438943d9b5be0b3e1

Added files:

Index: pkgsrc/chat/tootstream/patches/patch-src_tootstream_toot.py
diff -u /dev/null pkgsrc/chat/tootstream/patches/patch-src_tootstream_toot.py:1.4
--- /dev/null   Mon Oct 14 08:24:44 2024
+++ pkgsrc/chat/tootstream/patches/patch-src_tootstream_toot.py Mon Oct 14 08:24:43 2024
@@ -0,0 +1,39 @@
+$NetBSD: patch-src_tootstream_toot.py,v 1.4 2024/10/14 08:24:43 nia Exp $
+
+underlined may not be supported by the target terminal, e.g.
+tmux running in xterm on netbsd
+
+--- src/tootstream/toot.py.orig        2024-10-14 08:23:05.679872648 +0000
++++ src/tootstream/toot.py
+@@ -1040,7 +1040,7 @@ def help(mastodon, rest):
+             if new_section:
+                 cprint(
+                     "{section}:".format(section=section),
+-                    fg("white") + attr("bold") + attr("underlined"),
++                    fg("white") + attr("bold"),
+                 )
+                 new_section = False
+ 
+@@ -1091,11 +1091,11 @@ def toot(mastodon, rest):
+             cprint("You tooted: ", fg("white") + attr("bold"), end="\n")
+             if resp["sensitive"]:
+                 cprint("CW: " + resp["spoiler_text"], fg("red"))
+-            cprint(text, fg("magenta") + attr("bold") + attr("underlined"))
++            cprint(text, fg("magenta") + attr("bold"))
+             posted = True
+         except Exception as e:
+             cprint("Received error: ", fg("red") + attr("bold"), end="")
+-            cprint(e, fg("magenta") + attr("bold") + attr("underlined"))
++            cprint(e, fg("magenta") + attr("bold"))
+ 
+         # If we're streaming then we can't edit the toot, so assume that we posted.
+         if is_streaming is True:
+@@ -1267,7 +1267,7 @@ def boost(mastodon, rest):
+         cprint(msg, attr("dim"))
+     except Exception as e:
+         cprint("Received error: ", fg("red") + attr("bold"), end="")
+-        cprint(e, fg("magenta") + attr("bold") + attr("underlined"))
++        cprint(e, fg("magenta") + attr("bold"))
+ 
+ 
+ @command("<id>", "Toots")



Home | Main Index | Thread Index | Old Index