1
0
mirror of https://github.com/sharkdp/bat synced 2026-08-08 19:41:45 +00:00

Added line wrapping.

This commit is contained in:
eth-p
2018-05-11 21:59:26 -07:00
parent 22c8978fca
commit 4e4110bf50
4 changed files with 214 additions and 85 deletions
+5
View File
@@ -13,6 +13,11 @@ pub enum OutputComponent {
Plain,
}
#[derive(Debug, Eq, PartialEq, Copy, Clone, Hash)]
pub enum OutputWrap {
Character
}
impl OutputComponent {
pub fn components(&self, interactive_terminal: bool) -> &'static [OutputComponent] {
match *self {