We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd3bc1a commit 779394aCopy full SHA for 779394a
Sources/Curses.swift
@@ -166,7 +166,7 @@ internal class Curses {
166
func backgroundSet(windowHandle:UnsafeMutablePointer<WINDOW>, attributeValue:Int, character:Character) {
167
let unicodeScalars = character.unicodeScalars
168
let ascii = UInt(unicodeScalars[unicodeScalars.startIndex].value)
169
- let attributeAndCharacter : UInt = UInt(attributeValue) + ascii
+ let attributeAndCharacter : UInt = UInt(attributeValue) | ascii
170
CNCURSES.wbkgd(windowHandle, attributeAndCharacter)
171
}
172
0 commit comments