All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

Building Carbonyl: A Chrome Fork for Terminal Web Rendering

By

riddley

8mo ago· 20 min readen

Summary

The article introduces Carbonyl, a web browser that forks Chrome to render HTML content directly in terminal environments. It demonstrates how to convert Chrome's rendering output into terminal-compatible graphics using ANSI escape codes for color and cursor positioning. The technical guide shows Rust code examples for handling pixel rendering, color management, and cursor movement to display web content in terminal interfaces.

Key quotes

· 4 pulled
I wrote about forking Chrome to turn HTML to SVG two months ago, today we're going to do something similar by making it render into a terminal.
Let me introduce you to the Carbonyl web browser!
Let's hook html2svg's output into a Rust program:
fn move_cursor((x, y): (usize, usize)) { println!("\x1b[{};{}H", y + 1, x + 1) }
Snippet from the RSS feed
January 27, 2023

You might also wanna read