Commit Graph
27 Commits
Author SHA1 Message Date
marschap 254bd128ef preprations for more flexible key handling in menus 2007-10-04 21:00:20 +00:00
marschap 6a1511bb72 * coding style harmonization in servers/
- explicitely declare void arguments
  - make a few string args const
* better support for shorter displays in server screen
* make target to create top level tag file
2007-04-02 21:29:53 +00:00
marschap d39c092fb4 fix a few more warnings 2006-04-14 08:04:09 +00:00
marschap 743871cff3 make get_key() result const char *, so that it is not modified 2006-04-06 13:25:14 +00:00
robijn 2c40e25f0f Added server message in bottom-right corner of active screen.
Will display short text if a rotation key is pressed.
2003-02-28 15:19:58 +00:00
robijn 71922063b8 Change to priority classes. Will probably require some fixings.
- Now using priority classes internally and in protocol
- Converting (depreciated) priorty numbers to the classes BACKGROUND,
  INFO and FOREGROUND
- Added menu_goto command (only works when menu not active)
2003-02-27 21:20:20 +00:00
robijn dc619e596f - Moved some code from main.c to screenlist.c
- Implemented reloading by sending SIGHUP.
- Now doing 'real 8Hz' rendering and 32Hz input processing.
- Removed noscreen feature (that we rejected).
2002-08-04 20:58:51 +00:00
robijn c8fc08f6e3 Reporting cleaned up and levels made more consistent. 2002-07-14 20:30:33 +00:00
robijn 3168d4cafc Menustuff added/modified! 2002-05-26 19:21:23 +00:00
robijn 726f2f995e Big changes in code of clients, screens and widgets.
- Moved and altered code to create, destroy and manipulate clients, screens
  and widgets in an OO-like manner.
- Moved command execution code to a commands directory, splitting commands to
  what subject they are concerned.
- Menus are temporary disabled while working on new menu structure.
2002-04-26 00:00:31 +00:00
robijn 71056ec551 v0.5 kick-off 2001-12-30 00:15:25 +00:00
robijn b228b720d9 Added uniform copyright notice to all files of the server core. 2001-12-27 23:30:36 +00:00
robijn 285d29edf3 Reporting patch. 2001-11-29 14:09:13 +00:00
ddouthitt 80a1eda63f Fixed a bug that (almost) got away.... 2001-10-12 04:36:18 +00:00
ddouthitt 8df79efc98 Re-enable client keys (make client_add_key work again) 2001-10-12 04:35:26 +00:00
ddouthitt ae18a158fc Numerous (TINY) fixes: mostly unused variables... 2001-10-05 22:04:35 +00:00
ddouthitt eb6e99e7e8 Server no longer uses a fixed lcd structure, but now a pointer to
a lcd_logical_driver structure (lcd_ptr).  Fixed bug in lcd.c
which caused lcd_drv_getkey_loop to act badly.
2001-09-27 16:12:55 +00:00
ddouthitt 6a0e23dc3e Massive changes (first commit), including but not limited to:
* Ability to specify port and address to bind to
* By default, binds only to 127.0.0.1 port 13666
* Client commands now return usage when no options given
* New driver command: getinfo
* Added comments all over the place
* Used #defines to further document code
* Used #defines to set up compile-time defaults, etc.
* Cleaned up client command argument analysis in client_functions.c
* Beginning support of syslog
* Some bug fixes
2001-09-21 21:08:10 +00:00
ppokorny 5d6406feb1 When changing from a widget-based storage (that was, in retrospect a
horrible hack) to a screen data item, I neglected to fix the code that
doles out key events to screens and clients.  This meant screens didn't
get keys.  It's now fixed.
2001-05-25 15:22:34 +00:00
ppokorny 00cc9fca23 + Changed protocol to 0.3 because we now accept both -foo and foo
as argument introducers.  in 0.4-pre10, these were changed
   from foo to -foo and this broke many clients.  This change
   should fix that and be backward/forward compatible.
 + Added a noop function to the protocol.  This is useful for writing
   shell script clients of LCDproc.
 + Changed the shared sock_send_string function to NOT send the
   ending NUL ('\0') byte with the string.  This was confusing
   in Perl clients which saw NUL's as the first character of
   each reply.  WARNING: The LCDPROC client depended on this
   behavior, your client may too.  Use the newline instead.
   See the code in clients/lcdproc/main.c (look for "switch(buf[i])")
   to see one way to handle this.  This should allow new clients
   to connect to old servers and vice-versa.
 + Messed with include structure in .c files.  It should no longer
   be necessary to specify ../.. to get to shared code headers.
   Also, since we are using automake, the global config.h can be
   found with just #include "config.h" as it's location is included
   in a -I to the compilers.  As a result "make distcheck" now works.
2001-05-25 03:14:27 +00:00
ppokorny 3e4ce08d43 Added support for "client_add_key" and "client_delete_key" functions.
Clients must now request keys using either client_add_key or screen_add_key
to receive key events.  If a screen is active (on the display) and it
has registered a key with "screen_add_key" it will be the only client
to get that key.  If the current screen doesn't want the key, it will
be sent to all clients that have registered that key using "client_add_key".

If you want to define a "hot button" for your client, you should probably
register that "hot key" with "client_add_key" and then list the keys that
control your client with "screen_add_key" on each screen.  If you don't
have a "hot key", then just register keys with "screen_add_key" and you'll
get keystrokes only when your screen is active.

Also fixed some formatting (spaces versus tabs) in a couple of places.
2001-05-11 17:55:36 +00:00
ppokorny 877d8ac8e8 Added GLK12232-25SM support with glk driver.
Fixed lots of small problems in various places.
Added new protocol commands screen_add/del_key so screens
   can request keystrokes when they are being displayed.
Lots of work on CPU GRAPH and BIG NUMBER CLOCK screens.
Fixed 'output' function in MtxOrb.c
2001-04-27 02:20:38 +00:00
William Ferrell 6dabd0b8f3 Applied patches supplied by Andre' Breiler:
- bugfixes for display != MatrixOrb LCD
	- changes the meaning of output_state
		+ it's now a bitfield where evry bit corresponds to
		  one output
	- protocol change
		output on|off|value
		where on    = all outputs on
		      off   = all outputs off
		      value = output on for all 1 bits
	- changes the behavior for key presses
	  Keypresses are now deliverd to _all_ clients (not only
	  the one with the active screen)
	reason: I have an client which is only active a few seconds after
                an keypress
	- changes the protocol so that a response is sent for every
	  command
	reason: the client needs to communicate with the server with a
                minimal latency
2001-03-22 22:51:49 +00:00
William Ferrell 6a115b4446 More formatting changes, new tags file. 2000-04-03 22:13:57 +00:00
William Ferrell ddfd41f53e More formatting updates. Reduced whitespace, looks even better. 2000-03-30 20:43:33 +00:00
William Ferrell f5a5e9653b Removed lcddriver.c (doesn't do anything, isn't in any makefiles, etc.).
Passed *every* piece of source in this project through indent. I'm setting
things up with ctags soon and am actually going to *gasp* use a nice
programming environment to continue development in. :)
2000-03-30 20:20:41 +00:00
William Ferrell 2635c3085d Initial revision 1999-12-09 23:15:14 +00:00