Skip to content

TTYloom v0.18-beta

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 19 Nov 13:33

Portable Linux binaries for x86-64 and ARM64 (without Hunspell), matching source and SHA-256 checksums. See the README for installation and source builds with spell checking.

Added

  • Mute a whole server: /mute discord:Gophers (the section keys of /fold, completed by Tab) mutes every conversation of a section of the sidebar, the ones that come later too: no bell, no notification and no pulse, even on a mention, the counts dimmed and out of [Act: …] and of the tab. A muted server goes after the other servers of its network whatever the sort, however many unread messages it holds, its header dimmed; in the windows list its windows take the darkest colour, like the oldest ones. /unmute discord:Gophers undoes it; /mute alone in a window with no conversation lists the muted sections too. Saved in muted.toml (sections); any section works, an IRC network as well, but a conversation with that exact name comes first (/mute telegram stays the conversation "Telegram"). A section is known by its name: a server renamed must be muted again.
  • Sidebar auto-hide: /set sidebar_autohide on slides the F2 sidebar away to the left once the mouse has been off it for sidebar_autohide_delay (1 s by default), and slides it back as soon as the mouse touches the left edge of the screen; F2, F7, Shift+F2 and Shift+Tab bring it back too. It never hides when the terminal reports no mouse move.
  • ffmpeg sandbox: ffmpeg and ffprobe now run in a sandbox when they decode a video, an animated PNG or an animated WebP: resource limits, no_new_privs and, where the kernel has Landlock, read access to the decoded file and their own libraries only, with no write and no network. /debug shows the active mode; TTYLOOM_FFMPEG_SANDBOX=off turns it off. mpv is not sandboxed: it runs only on your action.
  • Stickers tab in the GIF box: Tab in Ctrl+G, a click on Stickers at its top, or /sticker [query] shows the stickers you can send, on the grid of the GIF box. Telegram: your recent and favorite stickers, then your installed packs, each loaded when the list reaches it, one request at a time; typing a word or an emoji asks Telegram for the stickers of that emoji (joy finds 😂). Discord: your favorite and most used stickers of the server (from the settings Discord syncs between its apps), then all its stickers; typing filters by name. Enter or a click sends. Discord without Nitro allows only the stickers of the server of the channel, so the tab offers no other; IRC has no stickers.
  • Stickers show: a Discord sticker, ignored until now (a message holding only one looked empty), shows under its message with a [sticker name] label, up to the three a message can hold: a PNG one as a picture, an APNG or GIF one playing like a GIF; Discord's own stickers, drawn in Lottie, show their name alone. On Telegram, a video sticker now plays like a GIF, its transparency kept (ffmpeg with libvpx), and an animated sticker (Lottie) shows the still picture Telegram gives with it instead of a label alone. IRC has no stickers.

Changed

  • The reactions you use most come first: the reaction picker and the quick reactions of the right-click menu now start with the reactions your account uses most, as the network counts them across all your apps, phone included. On Telegram that is the quick bar of the official apps (messages.getTopReactions), ordered within what the chat allows; on Discord, your favorite emojis then your most used reactions, read from the settings Discord syncs between its apps, before the local recents. The order is read again at each connection; when the network does not answer, the order stays as before. Telegram does not offer 😂 as a reaction, so it never shows there; IRC has no reactions.
  • Telegram logout empties the session file: /telegram logout now logs out on every Telegram data center the session used and empties session.json; the next login makes a new key. The library now keeps the keys of the other data centers in that file, and they must not stay after a logout.
  • Dependencies: gotd/td v0.166.1 (connection core rewritten upstream: a clock that is off no longer blocks the connection, a ping is sent again after a salt change, the QR login retries a temporary error), gotd/contrib v0.26.0, golang.org/x/net v0.63.0, and five modules that are not compiled into the binary (ogen, goldmark, x/exp, x/mod, x/tools); govulncheck v1.10.0 and actions/setup-go v7.1.0 in the CI. Each diff was read before the update; the bundle of setup-go was rebuilt from its sources and is identical to the published one.
  • Notes belong to an account: on Telegram and Discord a /note now belongs to the account that wrote it, and another account on the same network no longer sees it; on IRC it belongs to the network, so a /nick keeps it. An existing notes.toml is kept: its notes go to the first account known on their network.
  • Transfers show the same way on the three networks: a file that downloads shows loading 42 % on its line, and a document or an IRC DCC offer shows downloading <file>… 42 % in the status bar too; an upload shows sending <file>… 42 % in the status bar on Telegram, Discord and IRC. A DCC send, once the peer has it, becomes a normal file line that its menu, o and Ctrl+D open.
  • 48 and 50 Mpx photos load: phone photos up to 50 megapixels now show; the old limit was about 42. A large image is halved before its last resize: a 12 Mpx photo in a 4K preview takes 47 MB instead of 326 MB, with no visible change.
  • Image bombs are refused: a small file that claims a huge flat image (PNG, JPEG, GIF or WebP) no longer decodes by itself. Over 64 MiB of memory, an image that shows with no action of yours may take at most 128 bytes of memory per byte of its file; its label says why, and the preview (v or a click) still shows it. A text-only 8K screenshot falls under this rule.
  • Scrolled-up view keeps its place: while you read older messages, new messages, history pages, edits and a resize no longer move the lines you are reading. At the bottom, new messages still show.
  • Ctrl+K in the expanded editor stays on its line: it deleted every line after the cursor, with no undo. It now deletes to the end of the current line, and at the end of a line it joins the next one, as in readline.
  • Window after a chat goes: when the chat you are reading is left, removed or dropped at an account change, the window before it now shows, as with /close, instead of window 0.
  • IRC rooms that need a registered nick join at start: on a network without SASL, ttyloom now waits up to 5 seconds for NickServ to confirm the login before it joins your rooms, so a room with +r no longer refuses you at each start and reconnection.
  • Masked links carry no terminal hyperlink: a link whose text is not its address is no longer sent to the terminal as an OSC 8 link, so a Shift-click of the terminal cannot open it with no question. A click in ttyloom still shows the address first.
  • Reproducible local release builds: scripts/release.sh now ignores the Go settings of the caller (GOFLAGS, GOEXPERIMENT, go env -w) and any go.work above its build folder, which is now private under dist/.

Fixed

  • A narrow sidebar no longer crashes the client: at the minimum sidebar width, with avatars, the network letter and an unseen reaction on the current conversation, ttyloom exited. The reaction mark, then the network letter (and in the windows list the activity counter), now give way, and every row keeps the width of the panel.
  • A very thin, very long picture no longer takes hundreds of MB: a PNG of a few KB, 1 pixel wide and millions of pixels high (or wide), took up to 776 MB of memory to show in a message line. A picture with a side over 32,768 pixels is now refused from its header, before any decoding, with the "image too large" label; photos, 8K screenshots and long scrolling screenshots show as before.
  • /send sends the file you name: when ~/report and ~/report final.pdf both existed, /send ~/report final.pdf for you sent ~/report. A path with a space now goes in double quotes (/send "~/report final.pdf" for you), Tab adds the quotes, and an unquoted path that does not exist says to use them. /dcc send <nick> <path> accepts the same quotes.
  • A message sent during a long IRC paste no longer lands inside it: a paste goes out a few lines at a time, and a message typed meanwhile went out between two of its lines, so other users saw the paste cut in two; two quick messages could also swap. Messages, /me, IRC commands and DCC offers now leave in the order they were sent, each paste in one piece.
  • Messages missed while away are loaded: when more than one page of messages came while ttyloom was closed or offline, the window showed the cached messages and the recent ones side by side, with no sign that messages were missing between them. The hole is now marked and loaded page by page until it closes; a hole still open when ttyloom stops stays in the cache, marked, and its loading starts again at the next start. No cached message is lost.
  • A conversation read on another device leaves the activity list: [Act: …], the pulse, last_unread and a bell still waiting now clear when the phone reads the conversation up to its last message. A read of an older message keeps the newer ones counted.
  • A login prompt that closes by itself no longer sends what was typed: when the network closed a password or code prompt during the typing, the rest of the secret went into the chat input and Enter sent it. For one second after such a close, Enter, typing and pastes are ignored, and the status bar says the login prompt closed.
  • Two links side by side no longer pass for one: a message could put two links next to each other with no space, each one showing its own site, so the reader saw one link and a click on its end opened the second site at once. Every part of such a link that does not go where the whole link says now asks first and names its target, on Telegram and Discord.
  • A click on a reaction sends that reaction: when the reactions went on two lines, a click on ❤‍🔥 could send 🔥, because the label of one reaction was found inside another one. Each reaction is now clickable exactly where it is drawn.
  • Portrait phone videos are no longer squashed: a video stored in landscape with a rotation tag (most phone videos filmed upright) played inline squashed into a landscape box, and a video you sent gave the wrong width and height. This needs ffprobe from FFmpeg 5.1 or later; with an older one these videos play as before.
  • Discord keeps every message of the history it loads: when a message came before a conversation was opened (or after a reconnection), almost all of the history loaded next was forgotten at once, so reactions and link previews that came later on those messages did not show, and reacting, "who reacted" and i on them cost one more request each.
  • A Discord conversation opened from the cache is marked read on Discord too: when its newest message was already in the disk cache, opening the conversation marked it read only in ttyloom, and it stayed unread on the phone and at the next start until a new message came.
  • Telegram: a data race on an incoming reply: the conversation of a reply whose quote was still to read was copied while the screen updated it, which the race detector reports and which could in rare cases put a wrong name on the quote.
  • Typing right after Ctrl+V no longer sends the clipboard: the paste and image prompts of Ctrl+V open when the clipboard read ends, so a key typed meanwhile could answer them, and an e sent several lines or an image at once. For 300 ms after such a prompt opens, its e, c and l keys are ignored, as the y of a confirmation is.
  • Local names survive an account change: a /rename was erased for good, in aliases.toml too, when another account logged in on the same network. It now stays: an id names the same person or room for every account. A /mute already stayed, and still does.
  • No pinned banner from another account: after a switch to another account on the same network, a chat no longer shows the pinned message of the first account. A removed chat also loses its banner.
  • Switching windows during an image caption keeps each draft: the draft of the first window went into the second, and Enter sent it there.
  • Received files no longer deleted at start: a received file whose name starts with .part- was deleted at the next start; it now keeps a safe name and stays. An empty or relative download_dir no longer makes the clean-up look outside it.
  • History backups kept: a second unreadable history file no longer replaces the backup of the first, and a history file that cannot be opened (permissions, too many open files) is no longer moved aside or overwritten.
  • IRC unread counts kept at login: the unread count of an IRC room or private chat saved at exit now survives the next login.
  • Long IRC messages keep their end: the pieces of a long message are now sized for the room name and your nick; the server no longer cuts the end of each piece for the other users in rooms with long names.
  • /join no longer stays on "resolving…": a join refused for a reason ttyloom did not know (bad name, join throttle, TLS-only or oper-only room) now shows the reason of the server, and a join with no answer fails after 30 seconds.
  • IRC commands in rooms with unusual names: in the window of a room whose name holds a control or bidi character, /part, /topic, /mode, /kick, /ban, /cycle and the room completion now use the real room name. Such a room no longer shows up twice after a reconnection: its history stays under one entry.
  • Pinned banner after a slow start: on Telegram, a pinned message that could not be read when a chat first opened (rate limit during the start-up sync, network error) is read again the next time the window loads.
  • Who reacted, on Telegram: in a private chat where you and your contact pick the same reaction, the popup now names you both; in a group, a reaction sent as a channel shows the name of the channel instead of "?".
  • Telegram connection state: the status bar no longer stays on "disconnected" after a reconnection during a large burst of updates.
  • Discord custom emojis stay current: when a guild changes its emojis while ttyloom is loading chats, the picker and the emoji pictures of that guild now show the new set.
  • Discord inline code keeps :name: as typed: a custom emoji name inside `code` no longer goes out as raw <:name:id>.
  • Discord: your own typing, and a blank token_cmd: your own typing no longer shows as a typing line; a token_cmd that holds only spaces counts as no command, so the QR login saves its token and /discord logout revokes it.
  • Large GIFs show again: an animated GIF too large to animate (1920×1080 for example) now shows its first frame instead of an error.
  • Multi-line quotes: a Telegram blockquote of several lines shows the │ bar in front of every line, not only the first.
  • Scrollbar after Ctrl+L: a click on the empty last column no longer jumps into the hidden lines.
  • Open a file of an unknown type from a box: the question now shows with the file browser, the media browser or the preview closed, so y answers it.
  • A code block pasted mid-line goes out as a code block: in the expanded editor its closing fence now gets its own line.
  • The menu search keeps your draft: "search" in the menu of a conversation replaced the draft that conversation kept; a draft now stays, and the status bar says to send or clear it first.
  • /msg with only a conversation name sends nothing: /msg Fri + Tab gave /msg Friends room , and Enter sent "room" to "Friends room".
  • /sticker works like the other commands: Tab completes it, a prefix runs it, and /alias can no longer take its name.
  • /unmute says when the section still mutes, and the first Tab after /mute lists the sections too.
  • Paste works in the Ctrl+F search.
  • A refused image is not downloaded again: a file refused at decoding stays refused when the network sends its message again; a failed download still retries. o opens the file, and F4 or the preview decode it again.
  • A failed upload no longer says "loading": a send that fails keeps its error line and its file label, without the "loading" mark that stayed on it.
  • One history load at a time for a window: a sync page or a media refresh that came during a scroll load let a second load of the same window start (a page asked twice, one more request against the flood limits).
  • Smaller fixes: sync counts of a second sync in one session; the "last message" pill on a very narrow terminal; a Ghostty theme = light:x, dark:y value with spaces; a link whose address is not valid UTF-8 is no longer clickable; v1.0-rc.10 is newer than v1.0-rc.9 for the update check; Hunspell dictionaries that are not UTF-8 (source builds); a word added to spell.txt after a last line with no newline.
  • Lighter and faster: the file browser (Ctrl+D) searches the disk in the background; an unchanged screen with kitty pictures sends nothing; a Telegram delete of many messages costs about five times less; plain Telegram messages allocate nothing for their formatting; the start demo allocates about 40 % less a frame; old sticker previews are freed.