From 9907dfa763bbc1aa0542a398a9670249247b027b Mon Sep 17 00:00:00 2001 From: Jomy10 Date: Fri, 5 Jan 2024 12:36:41 +0100 Subject: [PATCH] simplified example --- README.md | 4 +--- Sources/SwiftCurses/color.swift | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 27e39d9..e0c415c 100644 --- a/README.md +++ b/README.md @@ -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() - } } ``` diff --git a/Sources/SwiftCurses/color.swift b/Sources/SwiftCurses/color.swift index 5f8c37a..4d1d19f 100644 --- a/Sources/SwiftCurses/color.swift +++ b/Sources/SwiftCurses/color.swift @@ -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. ///