no_std support

This commit is contained in:
Jeremy Soller 2022-11-08 08:43:27 -07:00
parent e95671f68f
commit 268805ba0c
18 changed files with 190 additions and 38 deletions

View file

@ -1,3 +1,5 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
use cosmic_text::{Attrs, Color, FontSystem, SwashCache, Buffer, Metrics};
use std::cmp;
use termion::{
@ -92,9 +94,9 @@ fn main() {
print!(
"{} {}",
color::Bg(color::Rgb(
scale(color.b()),
scale(color.g()),
scale(color.r()),
scale(color.g()),
scale(color.b()),
)),
color::Bg(color::Reset),
);