mirror of
https://github.com/alacritty/alacritty.git
synced 2025-11-06 22:44:18 -05:00
Remove alacritty_config from alacritty_terminal
There's no need to force alacritty's user configuration on other users of the crate, thus provide the options actually used by alacritty_terminal itself.
This commit is contained in:
parent
3ffd6c8f26
commit
5060f8eeb8
46 changed files with 840 additions and 794 deletions
|
|
@ -5,14 +5,13 @@ use std::fs::{self, File};
|
|||
use std::io::Read;
|
||||
use std::path::Path;
|
||||
|
||||
use alacritty_terminal::ansi;
|
||||
use alacritty_terminal::config::Config;
|
||||
use alacritty_terminal::event::{Event, EventListener};
|
||||
use alacritty_terminal::grid::{Dimensions, Grid};
|
||||
use alacritty_terminal::index::{Column, Line};
|
||||
use alacritty_terminal::term::cell::Cell;
|
||||
use alacritty_terminal::term::test::TermSize;
|
||||
use alacritty_terminal::term::Term;
|
||||
use alacritty_terminal::term::{Config, Term};
|
||||
use alacritty_terminal::vte::ansi;
|
||||
|
||||
macro_rules! ref_tests {
|
||||
($($name:ident)*) => {
|
||||
|
|
@ -105,10 +104,10 @@ fn ref_test(dir: &Path) {
|
|||
let grid: Grid<Cell> = json::from_str(&serialized_grid).unwrap();
|
||||
let ref_config: RefConfig = json::from_str(&serialized_cfg).unwrap();
|
||||
|
||||
let mut config = Config::default();
|
||||
config.scrolling.set_history(ref_config.history_size);
|
||||
let mut options = Config::default();
|
||||
options.scrolling_history = ref_config.history_size as usize;
|
||||
|
||||
let mut terminal = Term::new(&config, &size, Mock);
|
||||
let mut terminal = Term::new(options, &size, Mock);
|
||||
let mut parser: ansi::Processor = ansi::Processor::new();
|
||||
|
||||
for byte in recording {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue