frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ghostling

https://github.com/ghostty-org/ghostling
44•bjornroberg•2h ago

Comments

vintagedave•1h ago
The C file is small enough to read (over a few minutes.)

I got to about line 5 and realized: I’ve never seen quite that technique for embedding a font via an autogenerated header before. I’m more used to Windows resources; this seems to generate a byte array in CMake code. I’m somewhere between horrified and impressed, in that I feel we’ve finally discovered a cross platform binary resource embedding solution.

vintagedave•53m ago
And as a Windows programmer the use of a method called DrawTextEx surprised me :)

A really neat sample. Shows the power of the ghosttty library very well. The author chose well with their other libraries, it’s the kind of demo that lets the code actually demo what to trying to without much else getting in the way. Rather inspirational to wrote my own terminal app now.

fresh_broccoli•48m ago
Fun fact: XPM bitmaps were designed to be #included unmodified, the files contain C boilerplate: https://en.wikipedia.org/wiki/X_PixMap
simonw•24m ago
Here's the build script that uses: https://github.com/ghostty-org/ghostling/blob/main/bin2heade...

I ran it against a 1x1 pixel GIF:

  cmake -DINPUT=pixel.gif -DOUTPUT=pixel.h -DARRAY_NAME=pixel_gif -P bin2header.cmake
And got this:

  // Auto-generated from /private/tmp/exp/pixel.gif — do not edit.
  static const unsigned char pixel_gif[] = {
      0x47, 0x49, 0x46, 0x38, 0x39, 0x61, 0x01, 0x00, 0x01, 0x00, 0x80, 0x00, 
      0x00, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x2c, 0x00, 0x00, 0x00, 0x00, 
      0x01, 0x00, 0x01, 0x00, 0x00, 0x02, 0x02, 0x44, 0x01, 0x00, 0x3b
  };
kingforaday•19m ago
For cross-compilation ease it makes sense if you don't care about the size explosion.
oDot•48m ago
I use libghostty for Trolley[0], which packages TUIs as desktop apps, like Electron does for web apps.

It really is quite an amazing piece of software. I just wrapped it in a useful GUI and a bundle/package CLI and it just works. Even on Windows. Kudos to the Ghostty developers.

[0] https://github.com/weedonandscott/trolley

nout•23m ago
I think your github readme is really missing a picture/screenshot to quickly understand what is the experience like. I.e. if your app is mainly about adding the chrome (as in the surrounding UI pixels) around the TUI, then it would be good to show what is the chrome like.
imiric•17m ago
This looks interesting.

I don't need my terminal emulator to support tabs, windows, or session management. My WM manages tabs and windows, and I use tmux for sessions, which also gives me a scrollback buffer, selection, clipboard, search, etc. This combination allows me to use any simple terminal emulator, such as urxvt, st, and now foot, without issues.

Ghostty didn't appeal to me, but I might give this a try. It's good that OSC support is planned. A plugin-like system, similar to st's but less cumbersome, would be nice to have.

Better, Faster, and (Even) More

https://randsinrepose.com/archives/better-faster-and-even-more/
1•mooreds•1m ago•0 comments

American cover-up of Japanese war crimes

https://en.wikipedia.org/wiki/American_cover-up_of_Japanese_war_crimes
1•sigma5•1m ago•0 comments

ByteDance agrees to $6B sale of MLBB publisher to Saudi Arabia's Savvy Games

https://escharts.com/news/bytedance-6-billion-sale-mlbb-publisher-savvy-games-group
1•doppp•3m ago•0 comments

How to have a healthy relationship with caffeine

https://www.npr.org/2023/03/06/1161394509/the-truth-about-caffeine
2•andsoitis•10m ago•0 comments

Interface Hall of Shame (1999)

http://hallofshame.gp.co.at/mshame.htm
2•everlier•15m ago•0 comments

OpenAI Plans Launch of Desktop 'Superapp'

https://www.neowin.net/news/openai-to-merge-atlas-browser-chatgpt-and-codex-into-a-single-desktop...
1•m463•16m ago•1 comments

Pentagon to adopt Palantir AI as core US Military system

https://www.reuters.com/technology/pentagon-adopt-palantir-ai-as-core-us-military-system-memo-say...
2•abawany•20m ago•0 comments

Linux Applications Programming by Example: The Fundamental APIs (2nd Edition)

https://github.com/arnoldrobbins/LinuxByExample-2e
2•teleforce•21m ago•0 comments

Neanderthals lost their Y chromosome

https://www.science.org/content/article/how-neanderthals-lost-their-y-chromosome
1•bediger4000•22m ago•0 comments

Show HN: PromptPrivacy, an automated wiki tracking AI privacy policies

https://prompt-privacy.vercel.app/
1•Sonofg0tham•22m ago•1 comments

Show HN: Bookwork-whisper: serverless front end from eBook to audiobook

https://github.com/mstsirkin/bookworm-whisper
1•mishutka•27m ago•0 comments

'Great crackdown': Russia tightens the screws on the internet

https://www.reuters.com/world/europe/great-crackdown-russia-tightens-screws-internet-2026-03-20/
2•consumer451•27m ago•0 comments

Elon Musk misled Twitter investors, San Francisco jury finds

https://www.sfchronicle.com/tech/article/elon-musk-twitter-trial-guilty-22088401.php
4•randycupertino•28m ago•1 comments

The Anglosphere is increasingly miserable

https://www.economist.com/graphic-detail/2026/03/19/the-anglosphere-is-increasingly-miserable
2•andsoitis•30m ago•0 comments

Clueless Words

https://www.cluelesswords.com
1•nonsootoh•31m ago•0 comments

Tech Exec Accused of Smuggling Nvidia Chips to China Resigns from Board

https://www.wsj.com/tech/super-micro-computer-employees-arrested-for-alleged-sales-to-china-45a2bd73
3•fortran77•37m ago•1 comments

My heuristics are wrong. What now?

https://brooker.co.za/blog/2026/03/20/ic-leadership.html
2•vinhnx•38m ago•0 comments

Why I'm Not Worried About Running Out of Work in the Age of AI

https://kellblog.com/2026/03/19/why-im-not-worried-about-running-out-of-work-in-the-age-of-ai/
3•0bytematt•45m ago•0 comments

You're likely infected with a brain-eating virus you've never heard of

https://arstechnica.com/health/2026/03/youre-likely-already-infected-with-a-brain-eating-virus-yo...
4•jnord•47m ago•0 comments

San Francisco jury finds Elon Musk defrauded Twitter investors during takeover

https://www.courthousenews.com/san-francisco-jury-finds-elon-musk-defrauded-twitter-investors-dur...
6•jnord•48m ago•0 comments

Netryx: Open-Source Street-Level Geolocation Engine

https://github.com/sparkyniner/Netryx-OpenSource-Next-Gen-Street-Level-Geolocation
2•homarp•55m ago•1 comments

China doesn't want you to know about Operation Yellowbird

https://www.washingtonpost.com/opinions/2026/03/20/alysa-liu-olympics-arthur-tiananmen-square-china/
4•MilnerRoute•55m ago•1 comments

Musk on Mars

https://mceglowski.substack.com/p/musk-on-mars
1•adamwk•56m ago•0 comments

American heresy: should Peter Thiel be burned at the stake?

https://www.notion.so/American-heresy-should-Peter-Thiel-be-burned-at-the-stake-3274ac94ca0580d7b...
3•cratermoon•58m ago•0 comments

Snakes' ability to stand upright could inform soft robotics: study

https://seas.harvard.edu/news/snakes-plane
3•hhs•1h ago•0 comments

Fourth Amendment Law by Analogy

https://www.lawfaremedia.org/article/fourth-amendment-law-by-analogy
1•hn_acker•1h ago•0 comments

Bun vs. Node.js Performance: Why Your Event Loop Is the Real Bottleneck

https://howtocenterdiv.com/beyond-the-div/bun-is-fast-your-event-loop-is-not
1•imkyssa•1h ago•1 comments

Rewebly – Redesign any websites in seconds

https://rewebly.com
1•xavier_ber•1h ago•0 comments

How the Iran war threatens global food supply

https://www.npr.org/2026/03/20/nx-s1-5750812/how-the-iran-war-threatens-global-food-supply
19•kaycebasques•1h ago•0 comments

When Amazon and JD.com lock horns, it's shoppers that win

https://www.ft.com/content/c90aee36-1d5e-4a44-bc83-51f244ccd056
2•hhs•1h ago•0 comments