Skip to content

Commit

Permalink
Merge pull request #356 from Kotivskyi/feature/customise-terminal-opt…
Browse files Browse the repository at this point in the history
…ions

Made options and setup methods public, so terminal options can be cus…
  • Loading branch information
migueldeicaza authored Nov 26, 2024
2 parents d593642 + a3a7eb3 commit 7a7b0e8
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 7a7b0e8

Please sign in to comment.