Skip to content

Commit

Permalink
cosmetic renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
mitranim committed Apr 17, 2023
1 parent 2a0f028 commit 9944f35
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions gow_opt.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@ func (self Opt) TermInter() {

func (self Opt) TermClear() {
if self.ClearHard {
gg.Write(os.Stdout, TermCup+TermEscClearHard)
gg.Write(os.Stdout, TermEscCup+TermEscClearHard)
} else if self.ClearSoft {
gg.Write(os.Stdout, TermCup+TermEscClearSoft)
gg.Write(os.Stdout, TermEscCup+TermEscClearSoft)
}
}

Expand Down
12 changes: 6 additions & 6 deletions gow_term.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,21 @@ const (
TermEsc = string(rune(27))

// Control Sequence Introducer. Used for other codes.
TermCsi = TermEsc + `[`
TermEscCsi = TermEsc + `[`

// Update cursor position to first row, first column.
// Behavior may vary by terminal.
TermCup = TermCsi + `1;1H`
TermEscCup = TermEscCsi + `1;1H`

// Clear screen without clearing scrollback.
// Should typically be printed after `TermCup`.
// Should typically be printed after `TermEscCup`.
// Behavior may vary by terminal.
TermEscClearSoft = TermCsi + `2J`
TermEscClearSoft = TermEscCsi + `2J`

// Clear screen AND scrollback.
// Should typically be printed after `TermCup`.
// Should typically be printed after `TermEscCup`.
// Behavior may vary by terminal.
TermEscClearHard = TermCsi + `3J`
TermEscClearHard = TermEscCsi + `3J`
)

/**
Expand Down

0 comments on commit 9944f35

Please sign in to comment.