Skip to content

Commit

Permalink
Made options and setup methods public, so terminal options can be cus…
Browse files Browse the repository at this point in the history
…tomized

- scrollback now can be changed
  • Loading branch information
Vitalii Kotivskyi committed Nov 26, 2024
1 parent d593642 commit a3a7eb3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Sources/SwiftTerm/Terminal.swift
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,10 @@ open class Terminal {
/// The current terminal rows (counting from 1)
public private(set) var rows: Int = 25
var tabStopWidth : Int = 8
var options: TerminalOptions

/// Terminal configuration options.
/// Setup(isReset:) method should be called to apply changes
public var options: TerminalOptions

// The current buffers
var buffers : BufferSet!
Expand Down Expand Up @@ -603,7 +606,7 @@ open class Terminal {
return getCharData(col: col, row: row)?.getCharacter()
}

func setup (isReset: Bool = false)
public func setup (isReset: Bool = false)
{
// Sadly a duplicate of much of what lives in init() due to Swift not allowing me to
// call this
Expand Down

0 comments on commit a3a7eb3

Please sign in to comment.