コード例 #1
0
ファイル: ncurses.go プロジェクト: apcera/sample-apps
// Test whether colour values can be changed
func CanChangeColor() bool {
	return bool(C.bool(C.can_change_color()))
}
コード例 #2
0
ファイル: ncurses.go プロジェクト: Olreich/ncurses
/* Checks whether the current terminal supports changing the default color values, and returns true if so */
func CanChangeColors() bool {
	if C.can_change_color() > 0 {
		return true
	}
	return false
}