diff options
| author | Aram Drevekenin <aram@poor.dev> | 2020-09-23 11:47:37 +0200 |
|---|---|---|
| committer | Aram Drevekenin <aram@poor.dev> | 2020-09-23 11:47:37 +0200 |
| commit | eaba12c3ae4d67a7fcdbd0dec2bea3f2750c1f0b (patch) | |
| tree | 4948ca5b19c878a687df2959d301f2e7e6dfba00 /src/screen.rs | |
| parent | fix(compatibility): handle ansi properly with shit performance (diff) | |
| download | sl0ppij-eaba12c3ae4d67a7fcdbd0dec2bea3f2750c1f0b.tar.gz sl0ppij-eaba12c3ae4d67a7fcdbd0dec2bea3f2750c1f0b.tar.xz sl0ppij-eaba12c3ae4d67a7fcdbd0dec2bea3f2750c1f0b.zip | |
fix(compatibility): handle foreground/background color changes properly
Diffstat (limited to 'src/screen.rs')
| -rw-r--r-- | src/screen.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/screen.rs b/src/screen.rs index a4ac79ff..1c82f48b 100644 --- a/src/screen.rs +++ b/src/screen.rs @@ -69,8 +69,8 @@ impl Screen { receiver, send_screen_instructions: sender, full_screen_ws: full_screen_ws.clone(), - vertical_separator: TerminalCharacter::new('│').with_ansi_code(String::from("\u{1b}[m")), // TODO: better - horizontal_separator: TerminalCharacter::new('─').with_ansi_code(String::from("\u{1b}[m")), // TODO: better + vertical_separator: TerminalCharacter::new('│').reset_all_ansi_codes(), + horizontal_separator: TerminalCharacter::new('─').reset_all_ansi_codes(), terminals: BTreeMap::new(), active_terminal: None, os_api, |
