OpenBSD CVS

CVS log for src/sbin/wsconsctl/display.c


[BACK] Up to [local] / src / sbin / wsconsctl

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.22 / (download) - annotate - [select for diffs], Fri Jun 28 13:32:46 2019 UTC (4 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, HEAD
Changes since 1.21: +3 -3 lines
Diff to previous 1.21 (colored)

When system calls indicate an error they return -1, not some arbitrary
value < 0.  errno is only updated in this case.  Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.

Revision 1.21 / (download) - annotate - [select for diffs], Wed Mar 27 17:24:17 2019 UTC (5 years, 2 months ago) by fcambus
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.20: +14 -3 lines
Diff to previous 1.20 (colored)

Add support for displaying fontwidth and fontheight values, this allows
users to know the size of the currently used font.

Based on a diff from Artturi Alm, thanks!

OK sthen@, kettenis@, tedu@, jcs@

Revision 1.20 / (download) - annotate - [select for diffs], Fri May 8 19:12:51 2015 UTC (9 years, 1 month ago) by miod
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)

Add a new `don't read back' flag for variables, to prevent reading their value
after modifying them. Give this flag to `display.focus', since screen
switching is asynchronous, and reading back will return the screen we are
switching from if the switch has not completed yet.

Also, disallow -= and += syntax for display.focus, as it doesn't make any sense.

Revision 1.19 / (download) - annotate - [select for diffs], Sun Oct 20 22:07:57 2013 UTC (10 years, 7 months ago) by miod
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.18: +8 -1 lines
Diff to previous 1.18 (colored)

Introduce write-only (for now) display.font parameter, which issues a
WSDISPLAYIO_USEFONT ioctl, asking the wsdisplay driver to change its
current display font to the one requested (by name).

Revision 1.18 / (download) - annotate - [select for diffs], Sun Aug 18 16:32:23 2013 UTC (10 years, 9 months ago) by guenther
Branch: MAIN
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored)

Fix calls to printf-like functions which passed a non-fixed string
as the format and no variable args.
Replace "%#0.*X" with "%#.*X": the zero-fill flag is ignored/implied
on numeric conversions when a precision is specified.

ok jung@ millert@ krw@

Revision 1.17 / (download) - annotate - [select for diffs], Wed Aug 8 16:44:07 2012 UTC (11 years, 10 months ago) by shadchin
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

fix type (part from NetBSD)

ok miod@

Revision 1.16 / (download) - annotate - [select for diffs], Fri Aug 20 00:20:55 2010 UTC (13 years, 9 months ago) by fgsch
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.15: +10 -19 lines
Diff to previous 1.15 (colored)

Don't silently ignore errors if we cannot open the device. While I'm here
simplify the code and apply some style(9).
Discussed with and ok miod@

Revision 1.15 / (download) - annotate - [select for diffs], Thu Jul 1 16:47:58 2010 UTC (13 years, 11 months ago) by maja
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.14: +24 -1 lines
Diff to previous 1.14 (colored)

Learn wsconsctl to handle more than the first keyboard, mouse and display.
E.g. if we have a /dev/wskbd1 keyboard1 will show up when doing a -a.

wsconsctl keyboard1 will now show you all variables for keyboard1.

feedback and ok miod@. -moj

Revision 1.14 / (download) - annotate - [select for diffs], Thu Jul 1 02:37:21 2010 UTC (13 years, 11 months ago) by maja
Branch: MAIN
Changes since 1.13: +15 -1 lines
Diff to previous 1.13 (colored)

add screen types and emulations to things to be shown for displays.
ok miod@. -moj

Revision 1.13 / (download) - annotate - [select for diffs], Sun Sep 27 06:27:03 2009 UTC (14 years, 8 months ago) by maja
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.12: +23 -3 lines
Diff to previous 1.12 (colored)

Show fbinfo if it exists. ok mglocker@  -moj

Revision 1.12 / (download) - annotate - [select for diffs], Wed Jul 15 20:32:28 2009 UTC (14 years, 11 months ago) by martynas
Branch: MAIN
Changes since 1.11: +7 -5 lines
Diff to previous 1.11 (colored)

for rw query and print value that has actually been set in the
similar way that mixerctl does.  so that info for setting things
like brightness makes sense (since we scale, like, 8 values to
per-cent).  also, it consistifies get/put, shrinks code since we
don't need to do that in every single 'driver'.  ok miod@

Revision 1.11 / (download) - annotate - [select for diffs], Thu Jun 26 05:42:06 2008 UTC (15 years, 11 months ago) by ray
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.10: +1 -8 lines
Diff to previous 1.10 (colored)

First pass at removing clauses 3 and 4 from NetBSD licenses.

Not sure what's more surprising: how long it took for NetBSD to
catch up to the rest of the BSDs (including UCB), or the amount of
code that NetBSD has claimed for itself without attributing to the
actual authors.

OK deraadt@

Revision 1.10 / (download) - annotate - [select for diffs], Fri Nov 19 19:34:40 2004 UTC (19 years, 6 months ago) by mickey
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.9: +3 -2 lines
Diff to previous 1.9 (colored)

repair display.focus pokus; from janjaap@ in pr#3990

Revision 1.9 / (download) - annotate - [select for diffs], Thu Jul 10 00:00:58 2003 UTC (20 years, 11 months ago) by david
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.8: +2 -1 lines
Diff to previous 1.8 (colored)

add missing includes
ok deraadt@ millert@ tedu@

Revision 1.8 / (download) - annotate - [select for diffs], Tue Dec 17 07:10:25 2002 UTC (21 years, 5 months ago) by mickey
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

display.focus is a signed int, make it so; this fixes a problem under x11, which is now a correct -1

Revision 1.7 / (download) - annotate - [select for diffs], Wed Dec 11 18:27:19 2002 UTC (21 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.6: +3 -7 lines
Diff to previous 1.6 (colored)

ansi

Revision 1.6 / (download) - annotate - [select for diffs], Wed May 22 20:36:06 2002 UTC (22 years ago) by mickey
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.5: +153 -105 lines
Diff to previous 1.5 (colored)

implement new type: %%, given min,cur,max print the value in %%.
also accepts -= and += to adjust the value.
implement new flags: INIT, DEAD.
init means to prefetch the variable before setting, where
dead means to assume the variable is not implemented
(enottty was observed, most likely), set by the low-level
routines (upon observing the ioctl results).
add the variables for screen brightness,contrast,backlight --
all are precent-type, also rework the display.c to be easier
on the eyes. requested, commented and helped upon by miod@ and drahn@.
there was a discussion on wheather truncate or round
(the thin and think ends of the same egg) where
decided to allow it to truncate until demanded
otherwise by the eager masses.

Revision 1.5 / (download) - annotate - [select for diffs], Wed Oct 24 17:45:59 2001 UTC (22 years, 7 months ago) by miod
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.4: +72 -58 lines
Diff to previous 1.4 (colored)

- repair usage() output
- when changing display.foo settings, print "display.foo -> bar" like done
for mouse.* and keyboard.*
- use warn() over err() whenever possible and appropriate code path to display
as much as useful information as possible even if one ioctl fails. This is
especially useful to get the display.* settings via wsconsctl -a if your
mouse can't be probed, like on the iBook.

ok mcikye@

Revision 1.4 / (download) - annotate - [select for diffs], Fri Jul 6 04:11:26 2001 UTC (22 years, 11 months ago) by pvalchev
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.3: +3 -2 lines
Diff to previous 1.3 (colored)

add if braces to avoid compiler warnings; ok mickey

Revision 1.3 / (download) - annotate - [select for diffs], Sat Jun 30 02:12:57 2001 UTC (22 years, 11 months ago) by mickey
Branch: MAIN
Changes since 1.2: +47 -31 lines
Diff to previous 1.2 (colored)

make it more sysctl-like, ommit -kmd switches.
no backwards compatibility keeped.
add ability to change screens from cmd line.

Revision 1.2 / (download) - annotate - [select for diffs], Tue May 8 22:31:09 2001 UTC (23 years, 1 month ago) by mickey
Branch: MAIN
Changes since 1.1: +88 -2 lines
Diff to previous 1.1 (colored)

add more display variables (for screen burner).
implement boolean type for variables.

Revision 1.1 / (download) - annotate - [select for diffs], Sat Jul 1 23:52:45 2000 UTC (23 years, 11 months ago) by mickey
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9, OPENBSD_2_8_BASE, OPENBSD_2_8

wscons control tool; initial import from newtbsd tree

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.