Luflosi 6606f51636
Fix compilation on macOS 10.12
The constants `NSControlStateValueOn`, `NSControlStateValueOff` and `NSControlStateValueMixed` are only available for macOS 10.13 or above according to https://developer.apple.com/documentation/appkit/nscontrolstatevalueon?language=objc.
Without this commit, compilation fails with this message:
```
glfw/cocoa_window.m:1537:28: error: use of undeclared identifier 'NSControlStateValueOn'
              item.state = NSControlStateValueOn;
                           ^
glfw/cocoa_window.m:1539:28: error: use of undeclared identifier 'NSControlStateValueMixed'
              item.state = NSControlStateValueMixed;
                           ^
glfw/cocoa_window.m:1542:47: error: use of undeclared identifier 'NSControlStateValueOn'
          item.state = controller.isDesired ? NSControlStateValueOn : NSControlStateValueOff;
                                              ^
glfw/cocoa_window.m:1542:71: error: use of undeclared identifier 'NSControlStateValueOff'
          item.state = controller.isDesired ? NSControlStateValueOn : NSControlStateValueOff;
                                                                      ^
```
To fix this, simply redefine the constants to use the old and now deprecated constants on older macOS versions.

The code that causes this was introduced in 98519bf326834a126e89489a6a221ff21fab100f.
2021-04-22 10:53:34 +02:00
2021-03-10 08:20:35 +05:30
2019-07-07 21:10:15 +02:00
2021-04-22 10:53:34 +02:00
2021-04-13 09:53:57 +05:30
2021-01-16 20:52:12 +05:30
2018-05-09 11:32:22 +05:30
2018-05-30 12:46:00 +05:30
2020-07-09 01:57:39 +02:00
2020-02-20 11:10:49 +01:00
2019-08-09 03:27:22 +02:00
2021-02-06 12:10:30 +05:30
...
2021-03-17 14:45:23 +05:30
...
2021-04-18 10:46:06 +05:30
2020-03-14 14:59:31 +05:30
2021-03-29 12:15:47 +05:30
2020-10-31 01:44:33 +01:00
2020-06-06 09:23:36 +05:30

= kitty - the fast, feature-rich, cross-platform, GPU based terminal

See https://sw.kovidgoyal.net/kitty/

image:https://github.com/kovidgoyal/kitty/workflows/CI/badge.svg["Build status", link="https://github.com/kovidgoyal/kitty/actions?query=workflow%3ACI"]

To ask questions about kitty usage, use either the https://github.com/kovidgoyal/kitty/discussions/[discussions on GitHub] or the
https://www.reddit.com/r/KittyTerminal[Reddit community]

Packaging status in various repositories:

image:https://repology.org/badge/vertical-allrepos/kitty.svg[https://repology.org/project/kitty/versions]
Description
kitty with bold_is_bright patch
Readme GPL-3.0 48 MiB
Languages
Python 43.6%
C 28.3%
Go 20%
Objective-C 6%
Shell 1.5%
Other 0.5%