Skip to content

Commit 7a7b0e8

Browse files
Merge pull request #356 from Kotivskyi/feature/customise-terminal-options
Made options and setup methods public, so terminal options can be cus…
2 parents d593642 + a3a7eb3 commit 7a7b0e8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Sources/SwiftTerm/Terminal.swift

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,10 @@ open class Terminal {
274274
/// The current terminal rows (counting from 1)
275275
public private(set) var rows: Int = 25
276276
var tabStopWidth : Int = 8
277-
var options: TerminalOptions
277+
278+
/// Terminal configuration options.
279+
/// Setup(isReset:) method should be called to apply changes
280+
public var options: TerminalOptions
278281

279282
// The current buffers
280283
var buffers : BufferSet!
@@ -603,7 +606,7 @@ open class Terminal {
603606
return getCharData(col: col, row: row)?.getCharacter()
604607
}
605608

606-
func setup (isReset: Bool = false)
609+
public func setup (isReset: Bool = false)
607610
{
608611
// Sadly a duplicate of much of what lives in init() due to Swift not allowing me to
609612
// call this

0 commit comments

Comments
 (0)