Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: rename vendored vt100 crate #7649

Merged
merged 3 commits into from Mar 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
30 changes: 15 additions & 15 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/turborepo-vt100/Cargo.toml
@@ -1,5 +1,5 @@
[package]
name = "vt100"
chris-olszewski marked this conversation as resolved.
Show resolved Hide resolved
name = "turborepo-vt100"
version = "0.15.2"
authors = ["Jesse Luehrs <doy@tozt.net>"]
edition = "2021"
Expand Down
4 changes: 2 additions & 2 deletions crates/turborepo-vt100/src/lib.rs
Expand Up @@ -12,13 +12,13 @@
//! # Synopsis
//!
//! ```
//! let mut parser = vt100::Parser::new(24, 80, 0);
//! let mut parser = turborepo_vt100::Parser::new(24, 80, 0);
//!
//! let screen = parser.screen().clone();
//! parser.process(b"this text is \x1b[31mRED\x1b[m");
//! assert_eq!(
//! parser.screen().cell(0, 13).unwrap().fgcolor(),
//! vt100::Color::Idx(1),
//! turborepo_vt100::Color::Idx(1),
//! );
//!
//! let screen = parser.screen().clone();
Expand Down
4 changes: 3 additions & 1 deletion crates/turborepo-vt100/tests/attr.rs
@@ -1,3 +1,5 @@
use turborepo_vt100 as vt100;

mod helpers;

#[test]
Expand All @@ -12,7 +14,7 @@ fn attrs() {

#[test]
fn attributes_formatted() {
let mut parser = vt100::Parser::default();
let mut parser = turborepo_vt100::Parser::default();
assert_eq!(parser.screen().attributes_formatted(), b"\x1b[m");
parser.process(b"\x1b[32mfoo\x1b[41mbar\x1b[33mbaz");
assert_eq!(parser.screen().attributes_formatted(), b"\x1b[m\x1b[33;41m");
Expand Down
2 changes: 2 additions & 0 deletions crates/turborepo-vt100/tests/basic.rs
@@ -1,3 +1,5 @@
use turborepo_vt100 as vt100;

#[test]
fn object_creation() {
let parser = vt100::Parser::default();
Expand Down
2 changes: 2 additions & 0 deletions crates/turborepo-vt100/tests/control.rs
@@ -1,5 +1,7 @@
mod helpers;

use turborepo_vt100 as vt100;

#[test]
fn bel() {
struct State {
Expand Down
2 changes: 2 additions & 0 deletions crates/turborepo-vt100/tests/csi.rs
@@ -1,3 +1,5 @@
use turborepo_vt100 as vt100;

mod helpers;

#[test]
Expand Down
2 changes: 2 additions & 0 deletions crates/turborepo-vt100/tests/escape.rs
@@ -1,3 +1,5 @@
use turborepo_vt100 as vt100;

mod helpers;

#[test]
Expand Down
2 changes: 2 additions & 0 deletions crates/turborepo-vt100/tests/helpers/fixtures.rs
@@ -1,3 +1,5 @@
use turborepo_vt100 as vt100;

use serde::de::Deserialize as _;
use std::io::Read as _;

Expand Down
2 changes: 2 additions & 0 deletions crates/turborepo-vt100/tests/helpers/mod.rs
Expand Up @@ -3,6 +3,8 @@ mod fixtures;
pub use fixtures::fixture;
pub use fixtures::FixtureScreen;

use turborepo_vt100 as vt100;

pub static mut QUIET: bool = false;

macro_rules! is {
Expand Down
2 changes: 2 additions & 0 deletions crates/turborepo-vt100/tests/init.rs
@@ -1,3 +1,5 @@
use turborepo_vt100 as vt100;

#[test]
fn init() {
let parser = vt100::Parser::default();
Expand Down
2 changes: 2 additions & 0 deletions crates/turborepo-vt100/tests/mode.rs
@@ -1,3 +1,5 @@
use turborepo_vt100 as vt100;

mod helpers;

#[test]
Expand Down
2 changes: 2 additions & 0 deletions crates/turborepo-vt100/tests/osc.rs
@@ -1,3 +1,5 @@
use turborepo_vt100 as vt100;

mod helpers;

#[test]
Expand Down
2 changes: 2 additions & 0 deletions crates/turborepo-vt100/tests/processing.rs
@@ -1,3 +1,5 @@
use turborepo_vt100 as vt100;

mod helpers;

#[test]
Expand Down
2 changes: 2 additions & 0 deletions crates/turborepo-vt100/tests/quickcheck.rs
@@ -1,3 +1,5 @@
use turborepo_vt100 as vt100;

use quickcheck::Arbitrary as _;

mod helpers;
Expand Down
2 changes: 2 additions & 0 deletions crates/turborepo-vt100/tests/scroll.rs
@@ -1,3 +1,5 @@
use turborepo_vt100 as vt100;

mod helpers;

#[test]
Expand Down
2 changes: 2 additions & 0 deletions crates/turborepo-vt100/tests/split-escapes.rs
@@ -1,3 +1,5 @@
use turborepo_vt100 as vt100;

use std::io::Read as _;

fn get_file_contents(name: &str) -> Vec<u8> {
Expand Down
2 changes: 2 additions & 0 deletions crates/turborepo-vt100/tests/text.rs
@@ -1,3 +1,5 @@
use turborepo_vt100 as vt100;

mod helpers;

#[test]
Expand Down
2 changes: 2 additions & 0 deletions crates/turborepo-vt100/tests/weird.rs
@@ -1,3 +1,5 @@
use turborepo_vt100 as vt100;

mod helpers;

#[test]
Expand Down
2 changes: 2 additions & 0 deletions crates/turborepo-vt100/tests/window_contents.rs
@@ -1,4 +1,6 @@
#![allow(unused_imports)]
use turborepo_vt100 as vt100;

mod helpers;

use std::io::Read as _;
Expand Down
2 changes: 2 additions & 0 deletions crates/turborepo-vt100/tests/write.rs
@@ -1,3 +1,5 @@
use turborepo_vt100 as vt100;

use std::io::Write as _;

#[test]
Expand Down