Commit Graph
61 Commits
Author SHA1 Message Date
ddouthitt 31d9cc98c0 Added support for the new svga driver into lcd.c;
however, the Makefiles will need to be modified to support
linking against libvga and libvgagl, and support for the SVGALIB_DRV
define will have to be added to autoconf or whatever.
2001-09-25 15:36:42 +00:00
ddouthitt 44e7f83dfd Removed all traces of sprintf() from all server code and
from all drivers.  All drivers compile without warnings.
2001-09-25 15:02:33 +00:00
ddouthitt 0307a9112e Updated CFontz driver:
* Uses syslog instead of printf or fprintf (except during init)
* Replaced sprintf with snprintf throughout
* Removed all references to lcd.* and replaced with CFontz->*

Note: this compiles, that's all I can say - but the changes are not
major structural or logical changes.
2001-09-25 14:34:40 +00:00
ddouthitt a7bf3b00ad Minor changes (almost entirely in main.c):
* Heavily commented options
* Fixed bug introduced into default_duration and -w (my fault)
* Defined configuration file string defaults (no processing yet)
* Added simple optimization to option processing
* Reformed some comments for easier readability
* Fixed bug that caused program not to drop root privs when
  running on port under 1024
* Converted further to use syslog instead of printf
2001-09-25 14:03:13 +00:00
ddouthitt 4a75325042 Updated text driver:
+ Uses syslog instead of printf's
+ No dependency on global lcd struct
+ Fixed bug which would've occured when no framebuffer found on init
2001-09-25 07:29:38 +00:00
ddouthitt ba630ec1d2 Updated debug driver:
+ Convert to use syslog instead of printf
+ Fixed some memory allocation bugs: in particular, driver
  is only a local variable!  Use static variable debug_drv instead....
2001-09-25 07:19:08 +00:00
ddouthitt 1d59e67b69 lcd.c: Making preparations to enable multiple input sources... 2001-09-25 06:21:07 +00:00
ddouthitt 174cf351c5 Joystick driver:
+ Cleaned up slightly
+ Converted to use syslog instead of printf
+ Re-enabled free() in joy_close()
2001-09-25 06:20:27 +00:00
ddouthitt 607b4154b0 Updated curses driver (again):
* Now clears entire screen in appropriate color setting
* Now leaves goodbye screen on screen
2001-09-25 05:24:00 +00:00
ddouthitt 41a5973e29 Updated curses driver:
* Added preliminary color support
* Changed to using "window" instead of full screen
* Added window border
* Window is positionable
* Fixed possible bug in curses_drv_string
2001-09-25 05:10:19 +00:00
ddouthitt 12deda27a4 + Remove dependency on lcd.* (use internal structure instead)
+ Remove dependency on drv_base_* (mostly drv_base_close)
2001-09-25 01:01:55 +00:00
ddouthitt cf6ce9f1a4 + Improve data validity checking. 2001-09-25 00:54:24 +00:00
ddouthitt 4b24b2e6f1 Patched lcd.c to work with older drivers that use 0 or (void *) -1
as valid function pointer values (now logs to syslog); fixed text
driver, curses driver, and CFontz driver to work correctly in new
environment.
2001-09-25 00:13:57 +00:00
ddouthitt 1be66aa0b9 Modified curses driver to work with new driver structure. 2001-09-24 23:28:05 +00:00
ddouthitt 875ee72589 Major change was to convert from multiple drivers to a single driver.
Other minor things: comments, more robust MtxOrb driver, and more use
of syslog.
2001-09-24 22:33:59 +00:00
ddouthitt f23292a554 Minor miscellaneous comment updates: mostly identifying drivers at
the top of their source code....
2001-09-24 16:30:31 +00:00
afrob 2e654fd333 Added driver for SED1520 graphic LCDs, STV5730 TV Output plus a small fix for render.c for bigger display sizes 2001-09-22 11:45:12 +00:00
ddouthitt 40f04f85a7 Added README to drivers directory, to document how drivers are called
and other things.
2001-09-21 21:10:09 +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
haemi b70199c651 Updated map for ISO 8859-1 to HD44780 charset translation. 2001-09-11 18:27:13 +00:00
haemi 5636de1c5c Added character map for remapping some German "umlauts". 2001-09-09 21:37:49 +00:00
haemi 38f5701821 Added character mapping for HD44780 displays. Mostly German "umlauts". 2001-09-09 21:21:30 +00:00
ppokorny e7316389e8 Fixed compile errors on FreeBSD related to cfmakeraw and friends on the
serial port side.  Also fixed problems with ioperm on the parallel port
side.

Added --waittime option to the server to specify how long the server
should leave a screen up before changing to the next screen.
2001-07-18 22:30:12 +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
cjdebenh 211a3a4b04 update for Solaris - use ifdef around cfmakeraw, include config.h 2001-05-15 03:59:01 +00:00
cjdebenh a65dd59c94 Added ifdef SOLARIS to allow errno.h and strings.h to be included (needed for errno and bzero 2001-05-15 03:54:10 +00:00
ppokorny 3fff6381b0 Fixed problems on systems using newer GLIB and GCC (2.96) which no
longer allow the -Wp,-lang-c-c++-comments directive.  Also cleaned
up getloadavg support that had problems on Solaris and RedHat 7.1.
Removed unused variables in a number of functions as a result of
warnings when compiled with --enable-debug config option.
2001-05-15 01:55:59 +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 8d894779e0 This is the header file that describes the GLK12232-25SM driver
in glk.c
2001-04-27 15:56:11 +00:00
ppokorny e216ed7d5c This is the header file for glkproto.c which documents the types and
functions available from that support "library"
2001-04-27 15:24:38 +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
ppokorny 95fa296a94 This is the support library for glk.c (the GLK driver). It manages the
connection to the GLK and sets up the serial port correctly.
2001-04-27 01:37:17 +00:00
ppokorny f1cef3eafc This is the driver for the GLK12232-25SM. It should work on the other
GLx family members from Matrix Orbital.  Several fonts need to be
downloaded correctly for the driver to work.
2001-04-27 01:35:49 +00:00
William Ferrell 6c8a77ccc5 Applied Nathan Yawn's (natey@hcis.net) patch to add a driver for the BayRAD
display. The patch applied cleanly, and compiled properly. At least,
"it worked for me." :) I don't have such a display, thus I cannot test that
the driver actually works, but it at least doesn't do nasty things or break
the compile. Thanks, Nathan!
2001-03-29 19:24:18 +00:00
William Ferrell ba6f72ccba Applied Andre' Breiler's patch to improve curses/ncurses portability on
Solaris.
2001-03-22 23:15:53 +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
cjdebenh 44ad386d74 Quick patch to add sanity checking incase w->x is not set to a valid value.
I encountered this problem being caused by a variety of client.
Line added is #180
2000-12-28 05:30:53 +00:00
cjdebenh 3f65d9d371 Update to allow it to handle the 4x20 version of the lcd 2000-12-20 00:45:29 +00:00
William Ferrell 82764f08e3 Thanks to Chris Debenham <chris.debenham@aus.sun.com>, the LCDproc server
process LCDd now compiles and runs properly on Solaris! Additionally, he
has provided a new driver for a 16x2 LCD made by an Australian company.

I've compiled and executed this new code on a Solaris 2.6 box, and while I
don't have the display the new driver uses, LCDd tries to use it anyway,
fails (since the device isn't installed), and continues running, so this
looks solid!
2000-11-29 18:48:53 +00:00
blt f150f213bf Fixed missing union semun definition 2000-11-09 11:12:54 +00:00
cstein af99913d34 Support for nanosleep and gettimeofday delay methods added 2000-07-25 22:12:21 +00:00
toykeeper 0c07dacfea Another attempt to fix the MtxOrb weirdness. Changed the general-purpose
output so it doesn't send anything unless something actually happened.
2000-05-25 18:21:22 +00:00
toykeeper e5d1a9d431 Modified draw_frame(), to see if it fixes the flashing problems people are
having...
2000-05-24 21:34:13 +00:00
toykeeper 8b5b842c89 - Fixed acconfig comment-splitting problem.. (?)
- "-i off" option now works when placed after a driver
- CFontz driver no longer attempts to use 19200 baud if asked.
2000-05-13 20:21:16 +00:00
William Ferrell 6a115b4446 More formatting changes, new tags file. 2000-04-03 22:13:57 +00:00
William Ferrell 0d703c5864 Formatting changes. Again. CVS *will* get this right if it kills both of
us. :)
2000-03-30 21:58:02 +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
blt e481f1311e Portable and maintable HD44780 driver files. 2000-02-21 11:24:09 +00:00