Terminal UI for Discourse forums
mkdir -p ~/.config/discourse-tui
cp theme.toml ~/.config/discourse-tui
cargo build --release
sudo cp target/release/discourse-tui /usr/bin
discourse-tui <url>
cp discourse-tui.desktop ~/.local/share/applications
Add this line to ~/.config/mimeapps.list, under [Added Associations] and [Default Applications]
x-scheme-handler/discourse=discourse-tui.desktop
You may need to logout for this to have an effect.
discourse-tui --new-key <url>
Click the link
Click "Authorize" You should see a terminal flash open briefly, this is discourse-tui opening and completing the authentication.
Now just run
discourse-tui
The TUI will open with the URL you specified in the --new-key phase and you will be logged in.
discourse://auth_redirect?payload=<base64>
URI as an argument to discourse-tui.
Try opening the network tab of your browser's developer tools, refreshing the authorize page, clicking authorize, and look for this URI.set -g default-terminal "screen-256color"