Filter
Exclude
Time range
-
Near
Introducing `terminui` 📟 A fast, double buffered toolkit for building terminal UIs. I wanted a TUI toolkit with a small core model, predictable double buffered rendering (only changed cells flush), and strict types. Built with Command Code. Core pipeline: Backend -> Terminal -> Frame -> Buffer -> Cells Widgets are pure render functions: `(area: Rect, buf: Buffer) => void` No classes, no `this`, no hidden mutable UI tree. $ pnpm add terminui $ npm i terminui Frame loop is intentionally minimal: 1) render into current buffer 2) diff previous vs current (`bufferDiff`) 3) draw only changed cells 4) flush 5) swap buffers 6) clear next write buffer So terminal I/O scales with what changed, not with full screen size every frame. Cell model is tiny but expressive: - `symbol` - `fg` / `bg` / optional `underlineColor` - `modifier` bitmask Diffs are structural (symbol colors modifiers), so unchanged cells never hit the draw path. Wide-char correctness is built in (CJK/fullwidth). `charWidth(codePoint)` detects width-2 glyphs, and writes a placeholder empty cell after them, which keeps cursor math, wrapping, and diffs stable across frames. Layout uses a small constraint solver: `Length`, `Percentage`, `Ratio`, `Min`, `Max`, `Fill` `splitLayout` does two passes: - resolve non-fill constraints first - distribute remaining space by fill weights Then leftover cells go to the last fill chunk for deterministic results. Style system: - named ANSI colors indexed(0..255) 24-bit RGB - modifier bitflags (bold, italic, underline, etc) - additive/subtractive modifier composition via `patchStyle` This makes style composition functional and predictable. Built-in widgets: Block, Paragraph, List, Table, Gauge, LineGauge, Tabs, Sparkline, BarChart, Scrollbar, Clear Stateful renderers exist where they should (selection/offset state), while rendering stays pure. Backend contract is deliberately tiny: `size`, `draw`, `flush`, `clear`, cursor get/set hide/show So you can swap in a Node backend, a test backend, or custom transport without changing widget code. Examples include: - primary-screen dashboard - alternate-screen multi-frame simulation - kitchen-sink demo (all widgets constraints styles) - live and one-shot weather dashboard (Open-Meteo) Type safety baseline: `strict: true`, `noUncheckedIndexedAccess: true`, zero `any`. If you build TUIs in TS and want composable primitives, try it: $ pnpm add terminui $ npm i terminui Build something and share with me. :)
19
72
789
65,514
Друзі, ми заколабились з українським брендом PatchStyle і раді представити вам ахуєнний патч для трушних візьМЕМчан! Тож якщо хочете нас підтримати та підкреслити свою негетеросексуальну орієнтацію, замовляйте за посиланням: patch.style/vizmem/
7
400
patchstyle tetovejumi pa visu kermeni ar 4.3 android versijas emoji (bez nozimes)
1
2
95
23 Nov 2023
DÀNH CHO AI SỢ KIM TIÊM Quỹ Bill & Melinda Gates đã tài trợ 23,6 triệu USD cho công ty Micron Biomedical có trụ sở tại Hoa Kỳ để hỗ trợ việc sản xuất đại trà công nghệ tiêm không kim lần đầu tiên. Công nghệ này hoạt động bằng cách cung cấp vắc xin qua các kim nhỏ tan chảy được đặt trên da. Các chuyên gia y tế toàn cầu đã lâu đã thảo luận về tiềm năng của công nghệ tương tự để tăng cường việc tiêm phòng. Nó đơn giản hơn trong việc vận chuyển và tiêm phòng so với việc sử dụng kim tiêm truyền thống, đặc biệt là ở các nước thu nhập thấp, nơi việc tiếp cận tất cả trẻ em cần được tiêm phòng vẫn là một thách thức. Tuy nhiên, việc mở rộng quy mô sản xuất đã là một rào cản. Một thử nghiệm tại Gambia trong năm nay đã chỉ ra rằng thiết bị của Micron có thể cung cấp vắc xin sởi-rubella, do Serum Institute của Ấn Độ sản xuất, cho người lớn, trẻ sơ sinh và trẻ nhỏ một cách an toàn và hiệu quả như việc sử dụng ống tiêm, và tạo ra một phản ứng miễn dịch tương tự. Công nghệ này "có thể giúp vượt qua một số rào cản lớn nhất để loại bỏ sởi và rubella trên toàn cầu", theo lời James Goodson, nhà nghiên cứu cấp cao tại Bộ Y tế và Phòng chống Dịch bệnh (CDC) Hoa Kỳ, một đối tác khác của Micron. Nó giảm thiểu nhu cầu về bảo quản khi phân phối và không đòi hỏi một chuyên gia được đào tạo để tiêm phòng. Nó cũng có thể giúp đỡ những người sợ tiêm. Kinh phí sẽ hỗ trợ việc xây dựng một nhà máy sản xuất để sản xuất khoảng 10 triệu thiết bị mỗi năm, để thực hiện các thử nghiệm lâm sàng lớn hơn và sau đó là việc sử dụng rộng rãi, dựa vào sự phê duyệt của cơ quan quản lý. Công ty đã nhận được nhiều đợt tài trợ khác từ quỹ Gates để giúp đưa công nghệ được nhân rộng hơn trên thế giới. #PatchStyle #vaccine #billgates
87
78
1,258
Clothing patches are the perfect way to get recognized. They transform unnoticed ones into eye-catchy ones. #clothingpatches #stylewithpatches #patchgame #patchitup #patchstyle #patchgameon #patchcollection #apparelpatches #patchfashion
3
19
custom woven patches contact us to make custom woven patches: WhatsApp/call: 971 568568258 email:admin@labelfactory.ae website:labelfactory.ae #customwovenpatch #patchcollection #patchlove #wovenpatch #patchaddict #patchlover #patchcraze #patchstyle #patchmaker
2
15
New Illustration in my collection on mother's day!!! Please share your views if u like it!! #NFTdrop #NFTfamily #illustration #patchstyle #MotherDay2022
5
5
20
10 Feb 2022
📢📢📢“Caballus Patch Series”📢📢📢 This series only has 7 artworks with different characters I’ll send a gift to the collector at the end of this series Especially for collectors of this “Patch Series” #borninline #caballus #patchstyle #NFTCommumity #NFT #nftcollectors
1
2
4
Ya puedes empezar a disfrutar de la nueva colección de otoño en tiendas PATCH. Muy pronto en WEB √ Blanca de Navarra, 3 √ Paseo de La Habana, 19 √ Velázquez 41 M A D R I D #modahombre #menswear #fashionmen #fashionfromspain #modaespañola #modahombres #patchstyle #iampatch
1
3
There is nothing better than a pile of patches! 👌 📸: @graysjackets #PatchInspo #PatchStyle #Patches
1
Come and get close to observe the unique movement of a fine timepiece. Be swept away by the #AIKON Automatic Skeleton 45mm. #BeYourAikon #YourTimeIsNow Thank you to @patchstyle for the exquisite picture. Find out more: bit.ly/2K2r6pU
1
4
Ya tienes disponible la colección de baño PATCH 2019 ! | Somos optimistas veraniegos 🙌🏻☀️ 🏄‍♂️ . #patchstyle #iampatch #swimwear #menfashion #menswear #casualwear #madeinspain
2
Con las vacaciones d Semana Santa a la vuelta d la esquina, no dejes tus compras para última hora.Nuetras tiendas abren hasta las 8:30 pm todos los días expcepto Domingo Y 24/7 en WEB 👉 patchonline.es 😜 #semanasanta #vacaciones #patchstyle #modahombre #madeinspain
2
3