Justine Smithies on Nostr: But if i do this using python it does not display the icon but does echo the -e ...
But if i do this using python it does not display the icon but does echo the -e character which is suppoesed to be an option for echo.
result = subprocess.Popen('echo -e "Firefox\\0icon\\x1fweechat" | fuzzel -d -w 100 -l "$LINES"', shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, env=d)
2/2
Published at
2023-08-30 18:01:03Event JSON
{
"id": "b6b4728b730f7e46c940e6e1282617319862fd126d6d321bad93be6be9bcbbe3",
"pubkey": "f9c4dead438177be7101eb7b5107db4e8bdf351840ddfc72f9f890dc8949309b",
"created_at": 1693418463,
"kind": 1,
"tags": [
[
"e",
"13da6378df3eabd1ff94438b2bf15673c045c9c6407b325f6b942558c207a2a2",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://fosstodon.org/users/JustineSmithies/statuses/110979872430519392",
"activitypub"
]
],
"content": "But if i do this using python it does not display the icon but does echo the -e character which is suppoesed to be an option for echo.\n\nresult = subprocess.Popen('echo -e \"Firefox\\\\0icon\\\\x1fweechat\" | fuzzel -d -w 100 -l \"$LINES\"', shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, env=d)\n\n2/2",
"sig": "eab08d844a55bf10f8e4ee828c0a63a2a0132a676dcc149943fd301c5a2bd72e6a422b59008da20776c8f48e56f9642684604a38111eea61453a5126bc9d5271"
}