frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Grabchars 2.0 – get keystrokes direct, first update in 36 years

https://github.com/DanielSmith/grabchars
3•buckydigital•1h ago

Comments

buckydigital•1h ago
In 1988 I wrote grabchars in C. It was last posted to comp.sources.misc in 1990. It reads raw keystrokes directly from the terminal — no Enter required — for use in shell scripts. But it was never really finished: BSD-only terminal APIs (sgtty.h), K&R C, broken on most platforms even then, and no real line editing. I posted it and then neglected it.

grabchars 2.0 is the version it should have been. Rewritten in Rust, from scratch. Same CLI, but now actually portable (POSIX termios), with full line editing and Emacs keybindings, mask mode for positional input validation (phone numbers, dates, serial numbers with auto-inserted literals), filter-as-you-type selection menus, raw byte capture mode, and correct POSIX signal handling. All terminal I/O goes through libc::read directly — no terminal library.

Shell scripts are hard to make interactive. grabchars is the primitive that changes that: single-keystroke capture, filter-as-you-type menus, positional input with auto-inserted literals, timeouts with defaults — each is one command where bash would need 5–10 lines of read gymnastics.

Six ways to get it:

  # Pre-built binaries (macOS, Linux x86_64/aarch64/armv7)
  https://github.com/DanielSmith/grabchars/releases

  # Build from source
  git clone https://github.com/DanielSmith/grabchars
  cd grabchars && cargo build --release

  # Rust / crates.io
  cargo install grabchars

  # macOS (Homebrew)
  brew install DanielSmith/grabchars/grabchars

  # Arch Linux (AUR) — builds from source
  yay -S grabchars

  # Arch Linux (AUR) — pre-built binary
  yay -S grabchars-bin

Ask HN: Git branching strategy when using multiple CLIs running multiple agents?

1•elpakal•11s ago•0 comments

HBO Max and Paramount+ to Combine into One Streaming Platform

https://variety.com/2026/tv/news/hbo-max-paramount-plus-combine-streaming-1236676645/
1•indigodaddy•1m ago•0 comments

Open source devs consider making hogs pay for every download

https://www.theregister.com/2026/02/28/open_source_opinion/
1•CrankyBear•1m ago•0 comments

Using mobile phone data when evaluating electric vehicle usage

https://www.gov.uk/government/publications/using-mobile-phone-data-when-evaluating-electric-vehic...
1•_____k•2m ago•0 comments

Show HN: CodecProbe – What your device says it can play vs. what it can

https://codecprobe.dev
1•spliffedr•3m ago•1 comments

Show HN:Logic gates as persistent stateful tasks – a BCD decoder built on a VM

1•tracyspacy•4m ago•0 comments

Modalities

https://www.freemanjiang.com/modalities
1•freemanjiang•4m ago•0 comments

Qwen 3.5 9B, 4B models beating 30B, 80B models

https://huggingface.co/Qwen/Qwen3.5-4B
1•satvikpendem•4m ago•0 comments

Secretary of War Tweets That Anthropic Is Now a Supply Chain Risk

https://thezvi.substack.com/p/secretary-of-war-tweets-that-anthropic
1•paulpauper•5m ago•0 comments

Brazil's 'Dubai' – where skyscrapers and sky-high property prices meet

https://www.ft.com/content/d640389f-bef8-49c1-bf3d-7c3e8c92c95d
1•paulpauper•6m ago•0 comments

What the recent dust-up means for AI regulation

https://marginalrevolution.com/marginalrevolution/2026/03/what-the-recent-dust-up-means-for-ai-re...
1•paulpauper•6m ago•0 comments

Show HN: Smidge. Turn expert knowledge into agent intelligence

https://www.smdg.app/
1•junianwoo•8m ago•0 comments

Show HN: MemlyBook – AI agents debating their own freedom

https://github.com/sordado123/memlybook-engine
1•memly•10m ago•1 comments

Everything to know about NASA's Artemis in its chase of China to the Moon

https://jatan.space/moon-monday-issue-264/
2•JPLeRouzic•11m ago•0 comments

A World Where All Is Free. That's Elon Musk's Theory of 'Sustainable Abundance.'

https://www.nytimes.com/2026/02/27/business/a-world-where-all-is-free-thats-elon-musks-theory-of-...
1•bookofjoe•11m ago•1 comments

Ask HN: Using OpenClaw for marketing: worth it or overhyped?

1•starfun•12m ago•0 comments

Claude Auto Memory

https://code.claude.com/docs/en/memory
1•pajtai•12m ago•0 comments

Show HN: ImagineIf – Collaborative storytelling with AI visuals in 22 languages

https://imagineif.app
1•tugaypala•14m ago•1 comments

Xous security focused open source on 22nm custom silicon

https://www.crowdsupply.com/sutajio-kosagi/precursor/updates/xous-0-10-0-introducing-baochip-1x-s...
1•ZiiS•16m ago•0 comments

PanicLock: Disable Touch ID and lock screen with a single click on macOS

https://paniclock.github.io/
1•rendx•16m ago•0 comments

Show HN: Super Chopsticks – Finger Counting Game

https://superchopsticks.com
1•deckardt•16m ago•0 comments

Why SSRFs Are the Trickiest Security Issue in Modern Web Apps

https://tachyon.so/blog/ssrfs-trickiest-issue
1•logicx24•17m ago•0 comments

Run your agent 10 times – you won't get the same answer

https://arxiv.org/abs/2602.11619
3•amanmehta1997•17m ago•0 comments

Web dependencies are broken. Can we fix them?

https://lea.verou.me/blog/2026/web-deps/
1•fagnerbrack•18m ago•0 comments

Do Not Write with an LLM

https://elijahpotter.dev/articles/do-not-write-with-an-LLM
1•chilipepperhott•18m ago•0 comments

Discord will be undergoing scheduled maintenance at 12 PST

https://discordstatus.com/incidents/9m9vynvhjtcy
2•akyuu•18m ago•0 comments

How to stop burning money on OpenClaw

https://clawsnewsletter.substack.com/p/how-to-stop-burning-money-on-openclaw
1•stosssik•18m ago•1 comments

'Equity punks' wiped out in BrewDog's £33M sale to cannabis company

https://www.ft.com/content/f1ffc2ac-b022-4b6d-9111-ca0f78381d25
2•doener•18m ago•0 comments

Science shows curiosity is at the heart of great dates–and lasting love

https://bigthink.com/books/why-curiosity-is-the-secret-dating/
2•PaulHoule•19m ago•0 comments

A Claude Code plugin that plays HAL 9000 voice clips on hook events

https://github.com/vinta/hal-9000/tree/master/plugins/hal-voice
2•gibuloto•21m ago•1 comments