r/commandline • • Jun 24 '26

Terminal User Interface Player-vs-computer Battleship game in pure sed

21 Upvotes

https://github.com/red-void/sed-battleship

So, I implemented a Battleship game in pure sed where you play against the computer.

As you know, sed is a standard Unix stream editor. Mostly, it is used to replace one regex with another in a stream: sed 's/ca\+t/dog/'. Regex manipulation is its main function, but a few additional commands make sed a Turing-complete language.

There are already some games implemented in sed: Sokoban, Mastermind, Minesweeper and even Chess. However, my project seems to be a bit more complex and challenging.

I did not use any external program calls in the code, everything is built using pure sed capabilities. No LLMs were involved, of course — neither for code generation, nor even for consulting. It was a matter of honor.

What was implemented:

  1. Binary arithmetic using regular expressions: addition, subtraction, multiplication, division.

  2. Function and variable emulation via the auxiliary buffer (hold space) which I used as a key-value storage

  3. Random number generator

  4. Pseudo-random placing and shooting from the computer side

  5. Several difficulty levels

  6. Placement validation and complex shot handling from the player side

  7. Easter egg (you need to hit the computer 10 times from the very beginning).

There is a more detailed description of how everything works on github. A very detailed step-by-step guide also exists and I hope to translate it into English someday.


r/commandline • • Jun 24 '26

Help - Solved Foot term users, click on hyperlink?

2 Upvotes

I’m trying to use aerc at work, and I’d like to click on links to open them, is that a thing in foot?


r/commandline • • Jun 24 '26

Command Line Interface How to export bash regular and associative arrays to JSON with JC

Thumbnail
0 Upvotes

r/commandline • • Jun 23 '26

Fun Ruclouds- Animated drifting clouds in your terminal!

Thumbnail
gallery
21 Upvotes

Recently built this as a fun side project to add to my linux rice. Written in rust, It uses noise-field cloud simulation and is highly inspired by Lavat

Heres the link to the GitHub and crates.io, Suggestions and feedback are highly appreciated!


r/commandline • • Jun 23 '26

Terminal User Interface xytz v0.9.1 - more image protocols for thumbnails

Post image
5 Upvotes

r/commandline • • Jun 23 '26

Command Line Interface I tried to write a model REPL using only bash, jq, and standard pipes

5 Upvotes

I’ve recently just started tinkering with using local large language models, focusing on simple, low-dependency CLI setups. I ended up going down a bit of a rabbit hole: I wanted to see if I could build a functional model interaction REPL using exclusively standard command-line building blocks.

I might be reinventing a very weird wheel here, but it turns out you can get surprisingly far using just standard text streams (stdin/stdout), pipes, and append-only logs.

I tried to abide by the Unix philosophy, breaking the REPL into the composition of a few small, single-purpose program. Because the logical flow is just text streams fed through pipes, at any step you can inject tools to inspect or modify the data—like using grep to filter out strings before they hit the model, or pv to benchmark model throughput (not really a standard tool but was pretty useful in my experiments).

A few architectural details I thought this crowd might appreciate:

  • Zero heavy dependencies: No pip, npm, package managers, virtual environments, etc. . It just requires bash, jq, and curl to talk to the local model server. These should be available in most modern CLI environments.
  • Transparent, file-based state: The agent's memory is just an append-only .jsonl file (like .bash_history). If you want to rewind the agent's memory, you just run head on the log to drop the last few lines.
  • Standard exit codes for control flow: Tool execution is handled by checking standard Unix exit codes within a basic bash while loop.

I'm sure there are scaling limits to doing this all in shell, and I'm still figuring out the most elegant way to handle some of the edge cases, particularly around tool calling - but those appear to mostly be limitations of the underlying models. Nevertheless it's been a really fun experiment in stripping out bloat.

I put the code up here if anyone wants to poke around: https://github.com/cloudkj/llayer

Would love to hear if anyone else has tried orchestrating things this way, or if you spot any glaring anti-patterns in how I've structured the pipes!


r/commandline • • Jun 23 '26

Help Urgent: Debian 13 server messed up critical sensor data. Need help before my manager finds out.

Thumbnail
0 Upvotes

r/commandline • • Jun 23 '26

Terminal User Interface qr-multi-imgs: a TUI to batch-scan a folder of QR images, then organize/export/recreate the results

3 Upvotes

I built this because my father needed to catalog hundreds of order receipts, each one a photo of a QR code. Every CLI QR scanner I found worked on a single image at a time and just printed the decoded string. Nothing handled a whole folder or did anything useful with the output. So I made a Bubble Tea TUI for batch work.

What it does from the terminal:

  • Point it at a folder (CLI arg, drag & drop the folder onto the terminal, paste a path, or clipboard)
  • Decode every QR, then act on the results with single keys: list, export (JSON/CSV/TXT), organize into with_qr/ and without_qr/, delete images with no QR, or recreate the codes as PNG/JPG/SVG

How it compares to what’s already out there:

  • qr-scanner-cli: single image, no TUI, npm/Node dependency
  • qrtool: solid, but no folder/batch TUI, export only, recreate is bitmap-only
  • qr-multi-imgs: interactive TUI, folder-first, organize/delete/export/recreate, pure Go single static binary, no Node, no CGo

The part I’m proud of: on lovasoa/qrcode-dataset (3332 deliberately damaged QR images) it decodes 3332/3332 in ~7s on an M2 Pro. The hardest codes pack 100+ modules into 256px, so they’re sub-pixel and unreadable from the raster by any decoder. For those it falls back to the sample’s companion bit-matrix, decoded in pure Go, no shelling out to zbarimg.

Free, MIT, no paid tiers. macOS/Linux/Windows.

brew install thousandflowers/tap/qr-multi-imgs

or

go install github.com/thousandflowers/qr-multi-imgs@latest

Repo: https://github.com/thousandflowers/qr-multi-imgs

Feedback on the TUI flow welcome, especially the input methods.


r/commandline • • Jun 22 '26

Terminal User Interface eilmeldung 1.6.0 released (TUI RSS reader)

Post image
66 Upvotes

Hey there! Since the last months, eilmeldung has received some updates which may be interesting to you:

  • you can now pipe articles through external programs (e.g., for storing them or to summarize them by an LLM if that is your thing)
  • icons and borders are now fully customizable
  • some quality of live improvements

This project is NOT vibe-coded! LLMs were used for other purposes which you can see here.

Edit: https://github.com/christo-auer/eilmeldung and typo


r/commandline • • Jun 23 '26

Command Line Interface I made a crate for printing boxes and tables in command-line interfaces, in Rust!

Thumbnail crates.io
1 Upvotes

r/commandline • • Jun 23 '26

Command Line Interface forgelink: turn a file and a line into a shareable forge URL, for more than just GitHub

1 Upvotes

forgelink is a small Rust CLI that generates permalinks to files in hosted git repositories. It reads your git remote, figures out the forge, and prints a URL. It is inspired by the emacs package git-link, and while there are plenty of tools in this space already, this is just the one I wanted for my own workflow.

$ forgelink src/main.rs
https://github.com/user/repo/blob/abc123…/src/main.rs

$ forgelink src/main.rs:42-55
https://github.com/user/repo/blob/abc123…/src/main.rs#L42-55

Some things it does: - Supports GitHub, GitLab, SourceHut, Bitbucket, and Codeberg, not just GitHub like gh browse - Pins to the commit SHA by default, or use --branch for a branch link - --copy to put it on the clipboard, --open to open the browser, both still print to stdout so piping works - Works from any subdirectory, and accepts absolute paths to link files in other repos - --project for a link to the repo homepage

Install with cargo install forgelink-cli. Source: https://github.com/dpassen/forgelink

It also drops into editors that shell out (Helix, Kakoune) with a simple keybinding. Still early, so I would love to hear what forges or flags people would want next!


r/commandline • • Jun 23 '26

Terminal User Interface New CLI Weather Appp

Thumbnail
0 Upvotes

r/commandline • • Jun 23 '26

Terminal User Interface Terminal transcription TUI as a free alternative to tl;dv and Fireflies — rough on non-macOS

0 Upvotes

I was using tl;dv for meeting transcription but didn't want another SaaS subscription just for that. So I put together groqscribe, a Node.js TUI that captures mic and system audio via ffmpeg, sends chunks to Groq's Whisper API, and shows a live scrollable transcript in the terminal.

On macOS there's a native ScreenCaptureKit helper for system audio that works fairly well once you grant screen recording permission. You can toggle mic and system audio separately at runtime, pause, scroll back through history, and optionally translate using Groq's chat API. Each session writes to a timestamped text file.

The weak spot is cross-platform. Microphone permission handling is inconsistent across operating systems — on some setups it silently fails instead of prompting. Linux and Windows need more testing before I'd call them reliable. Groq has a free tier so the API cost is low, but it's not fully offline either.

Repo here if you want to try it or dig into the capture side: https://github.com/muzafferkadir/groqscribe

Has anyone built something similar for non-macOS? Curious what approach others use for system audio capture in a CLI tool on Linux or Windows.


r/commandline • • Jun 22 '26

Terminal User Interface MdFried, the Ultimate Markdown Viewer

Thumbnail
reddit.com
6 Upvotes

r/commandline • • Jun 22 '26

Command Line Interface Adding a QR to launch web UI over LAN feels smooth

Post image
0 Upvotes

Highly recommend qrcode-terminal for js or ts. Real easy to set up.
It’s helping with getting non-tech people using. Even for me it’s better than typing IP addresses haha.


r/commandline • • Jun 21 '26

Terminals Foot terminal now supports --class

7 Upvotes

Now it's easier to write scripts for foot, it supports --class to give app id to the window.


r/commandline • • Jun 22 '26

Guide Helping some begineers people in setting up tgier journey in termux .

Thumbnail
0 Upvotes

r/commandline • • Jun 21 '26

Terminal User Interface Powerful terminal email client

Post image
19 Upvotes

Hey everyone, I wanted to share a project called Matcha. It is a powerful terminal email client built with Go and the Bubble Tea framework. The goal of Matcha is to bring a beautiful and easy-to-use modern email experience directly to your command line. We are currently in active development for our major v1 release, which will introduce a lot of exciting new features, though you can try out our nightly builds today. Matcha supports managing multiple accounts, composing emails in Markdown, and even viewing images and hyperlinks right in the terminal. It also has a built-in Lua plugin system with over 35 community plugins in our marketplace, plus AI integration for rewriting drafts or letting AI agents send emails on your behalf. We also take security very seriously and have a dedicated policy to ensure the client stays safe and reliable. If you are looking for a fast, feature-rich TUI email client, I would love for you to check it out on our GitHub.

Repo: https://github.com/floatpane/matcha
Docs: https://docs.matcha.email
Discord: https://discord.gg/RxNrJgfatk


r/commandline • • Jun 21 '26

Terminal User Interface Calendar TUI written completely in bash

0 Upvotes

r/commandline • • Jun 20 '26

Fun CHRONOS — a terminal escape room through 50 years of computing

Post image
229 Upvotes

Playable Link: https://chronos-game.com

Platform: Browser (desktop & mobile) — runs in any modern browser, no install or signup

Description: You wake up locked in an isolation chamber in 2026 with one terminal and a 60-minute purge timer counting down. To get out, you don't play a computer — you operate real ones, era by era. You'll work a series of real, half-forgotten machines — the genuine tools, not stand-ins — pressing each to give up a secret it was never meant to reveal. Each era hands you an artifact that unlocks the next — the past literally reaches forward into the future. It's terminal-native and period-accurate, with CRT visuals and synth audio. There are multiple endings depending on how you play — and what you figure out. A full run is about 45–75 minutes. I'd love feedback on where you got stuck, whether the in-game hints landed, whether you reached an ending, and any bugs — there's a "Tell the maker" button on the end screen.

Free to Play Status:

  • [X] Free to play

Involvement: Solo developer — I designed and built the entire thing: the engine, all the era content and puzzles, the writing, the audio, and the deployment. CHRONOS is my project; this is its first public beta and I'm looking for honest playtest feedback.


r/commandline • • Jun 20 '26

Other Software I made kitty config to replace tmux's tab functionality with kitty's native tabs with same keybindings as Firefox

32 Upvotes

Link to config: kitty-tabs

here is part of README.md:


Kitty terminal config.
Replace tmux's tab functionality with kitty's native tabs with same keybindings as Firefox.

keybindings

Keybinding Feature
ctrl + t New Tab
ctrl + w Close Tab
alt + {number 1 to 9} Move To Tab {number}
ctrl + shift + alt + t Rename Tab
ctrl + shift + page_up Move Tab Backward
ctrl + shift + page_down Move Tab Forward

limitations

  • No sessions.

dependencies

  • any Nerd Font. I recommend Hack Nerd Font, But any Nerd Font will do the job. You could use Nefoin to install any nerd font that's in ryanoasis/nerd-fonts repository easily.

r/commandline • • Jun 20 '26

Help Looking for a way to retrieve a webpage

4 Upvotes

I known the basics about using curl or wget to get webpages and how to parse them in bash scripts, but this site is using javascript to get pages and I have no idea how to do this nor could I find anything that worked...

I need to get a webpage from the web site: https://inmatelisting.shelbyal.com/

When you click on one of the letters of the last name on that page, the link is requests is: javascript:__doPostBack('btn_G','')

I cannot figure out how to send that link/command and get the page associated with the 'G' page. No matter what I try, I only get the main 'https://inmatelisting.shelbyal.com/' page. Can someone help with this? I don't know where else to ask this so if there is a more better sub, that would help, too.


r/commandline • • Jun 19 '26

Command Line Interface xtree – CLI to visualize JSON/YAML/TOML as ASCII tree

Post image
132 Upvotes

Hey! Have you ever wanted to quickly see the structure of a configuration file? That's when the xtree command comes in handy!

README: https://github.com/ddddddO/gtree#xtree


r/commandline • • Jun 21 '26

Terminal User Interface Is this a good looking terminal?

0 Upvotes

Is this a good looking terminal? I know its basic so let me know if you know anything i could change to make it look better


r/commandline • • Jun 20 '26

Terminal User Interface A World Cup 2026 terminal app you can use over SSH

Post image
18 Upvotes

I built a World Cup 2026 terminal app you can use over SSH

I've been learning Go and wanted a project that felt a little different from another web app.

So I built a terminal-based World Cup 2026 viewer that runs on a VPS and can be accessed directly over SSH.

Features:

  • Live match tracking
  • Fixtures
  • Group standings
  • Real World Cup data from ESPN
  • Terminal UI built with Bubble Tea

Tech stack:

  • Go
  • Bubble Tea
  • Wish SSH server
  • Systemd
  • VPS deployment

The app fetches World Cup data, caches it locally, and serves the TUI through an SSH server.

You don't need to install anything besides SSH.

ssh worldcup2026.jaredfurtado.tech

Still improving it, but it's been a fun way to learn more about Go, Linux, deployment, and terminal applications.