Skip to content

Commit

Permalink
fix coloring in bash
Browse files Browse the repository at this point in the history
ecma48 clears the data buffer when it emits an event. Bash sets multiple styles/colors in the same commend. So, the 2nd+
events emitted for these multi-style sequences had an empty data list, causing them to be ignored by vterm.

IIRC, the original reason for skipping events with empty Raw data was for a bug that was fixed by rewriting the ecma48
parser.
  • Loading branch information
aaronjanse committed Sep 28, 2020
1 parent 714bc26 commit 2e00523
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions vterm/stdout.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,6 @@ func (v *VTerm) ProcessStdout(input *bufio.Reader) {
v.useFastRefresh()
}

if len(output.Raw) == 0 {
break
}

// log.Printf(":: %q", output.Raw)

switch x := output.Parsed.(type) {
Expand Down

0 comments on commit 2e00523

Please sign in to comment.