Skip to content

Commit

Permalink
simplified example
Browse files Browse the repository at this point in the history
  • Loading branch information
Jomy10 committed Jan 5, 2024
1 parent 508e9c8 commit 9907dfa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,10 @@ SwiftCurses is a Swifty wrapper for ncurses.
```swift
import SwiftCurses

func helloWorld() throws {
try initScreen() { scr in
try initScreen() { scr in
try scr.print("Hello world !!!")
scr.refresh()
try scr.getChar()
}
}
```

Expand Down
1 change: 1 addition & 0 deletions Sources/SwiftCurses/color.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ public typealias ColorPairId = Int16
public typealias ColorId = Int16
public typealias ColorRGB = Int16

// TODO: conform to OptionSet
public struct Color {
/// Whether the terminal can manipulate colors.
///
Expand Down

0 comments on commit 9907dfa

Please sign in to comment.