Mercurial > hg > xemacs-beta
comparison src/device.c @ 5398:5256fedd50e6
issue 757 - tty device metric for num-color-cells
-------------------- ChangeLog entries follow: --------------------
src/ChangeLog addition:
2011-03-28 Jeff Sparkes <jsparkes@gmail.com>
* console-tty-impl.h (struct tty_console): Add field for number of
displayable colors.
* device-tty.c (tty_device_system_metrics): Return metrics for
num-color-cells and num-bit-planes. Tracker issue 757.
* device.c: There are two required args for device-system-metric.
* redisplay-tty.c (init_tty_for_redisplay): Retrieve number of
colors from terminal description. Default to 2 if none found.
author | Jeff Sparkes <jsparkes@gmail.com> |
---|---|
date | Mon, 28 Mar 2011 09:25:15 -0400 |
parents | 71ee43b8a74d |
children | 248176c74e6b |
comparison
equal
deleted
inserted
replaced
5382:d363790fd936 | 5398:5256fedd50e6 |
---|---|
1055 (device)) | 1055 (device)) |
1056 { | 1056 { |
1057 return DEVICE_PRINTER_P (decode_device (device)) ? Qt : Qnil; | 1057 return DEVICE_PRINTER_P (decode_device (device)) ? Qt : Qnil; |
1058 } | 1058 } |
1059 | 1059 |
1060 DEFUN ("device-system-metric", Fdevice_system_metric, 1, 3, 0, /* | 1060 DEFUN ("device-system-metric", Fdevice_system_metric, 2, 3, 0, /* |
1061 Get a metric for DEVICE as provided by the system. | 1061 Get DEVICE METRIC as provided by the system. |
1062 | 1062 |
1063 METRIC must be a symbol specifying requested metric. Note that the metrics | 1063 METRIC must be a symbol specifying requested metric. Note that the metrics |
1064 returned are these provided by the system internally, not read from resources, | 1064 returned are these provided by the system internally, not read from resources, |
1065 so obtained from the most internal level. | 1065 so obtained from the most internal level. |
1066 | 1066 |