ddouthitt
6f686358d9
Minor bug fixes to main.c
2001-11-14 21:44:42 +00:00
ddouthitt
0619f03774
Updated documentation in the Curses driver relating to the use
...
of the nonstandard ACS_S7 and ACS_S3 macros...
2001-10-31 22:51:56 +00:00
ddouthitt
540f3fbcad
Fixed bug to parse_all_client_messages (thanks to Jarda Benkovsky).
...
Added #define, too.
2001-10-19 17:44:09 +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
c13f75bcaa
Minor fix.
2001-10-12 04:34:55 +00:00
ddouthitt
00ef5a1ac8
Fixes submitted for the fortune client to LCDd
2001-10-12 04:34:21 +00:00
ddouthitt
f8b89f2666
This is a "cleaner" fix (hack) to get around s getting clobbered
...
in main.c. It also documents extensively WHERE it is getting clobbered;
now if one only knew why.....
2001-10-06 01:27:09 +00:00
ddouthitt
10a79e3859
Re-enable a hack in main.c to fix a "clobbered" pointer; this is
...
NOT a fix. Work continues...
2001-10-06 00:32:02 +00:00
ddouthitt
a070f75d4b
Remove -Wno-unused from compile-time options; this prevents catching
...
of MANY possible problems. LCDproc should compile cleanly without
warnings WITHOUT this set.
2001-10-06 00:31:08 +00:00
ddouthitt
df90652a8b
This updates these drivers with minor bug fixes.
2001-10-05 23:50:37 +00:00
ddouthitt
ae18a158fc
Numerous (TINY) fixes: mostly unused variables...
2001-10-05 22:04:35 +00:00
ddouthitt
709e53495e
Minor fix for heartbeat function...
2001-10-05 17:17:11 +00:00
ddouthitt
d8daf2bf6f
Added output_heartbeat(driver, heart_type) to the library functions.
...
Thus, for many drivers, creating the appropriate driver function
for heartbeats should be simple.
2001-10-04 21:10:07 +00:00
ddouthitt
39b84431a0
Added a heartbeat function to the driver code. Both the
...
MatrixOrbital driver and the curses driver now have their own
heartbeat functions.
2001-10-04 21:05:15 +00:00
ddouthitt
a1a557a767
Changed clear function in Matrix Orbital driver: now only changes
...
within buffer (no clear function code sent to the LCD display).
2001-10-03 05:52:42 +00:00
ddouthitt
7bc81c1a3c
Fixed a bug where driverargs (pointers to arguments to drivers) was
...
not initialized to nulls.
2001-10-03 02:36:23 +00:00
ddouthitt
9169630fe9
Fixes to the lcdm001 driver: heartbeat problems fixed
2001-10-02 20:53:39 +00:00
ddouthitt
6708335770
Fixing silly mistake: forgot to add lcd_lib.h ...
2001-10-02 14:32:01 +00:00
ddouthitt
9d8b1f45a3
Fixed miscellaneous bugs relating to optimization of MatrixOrbital driver.
...
Now only displays that which has changed...
2001-10-01 21:54:02 +00:00
ddouthitt
487242f925
Fixed bug that caused anything beyond the heartbeat not to get updated
...
properly. Only affected optimized MtxOrb driver.
2001-10-01 21:53:27 +00:00
ddouthitt
fdba826ddc
New driver: lcdm001
2001-10-01 21:52:41 +00:00
ddouthitt
49dd9207d7
Added new driver:
...
* lcdm001 (with updates to autoconfig and Makefiles)
2001-10-01 21:51:27 +00:00
ddouthitt
3c2765891d
Added optimizations to MtxOrb driver:
...
* Don't send any data if there is no change.
* High optimization of MtxOrb_draw_frame - only write changed
data to screen.
2001-10-01 03:06:25 +00:00
ddouthitt
82825e0c73
Minor bug fix....
2001-10-01 03:00:39 +00:00
ddouthitt
bd431cfc36
Fixed up support for screen refresh using ^L - in case something
...
sends gunk to the screen.
2001-09-30 04:46:10 +00:00
ddouthitt
cc56196ef0
Added support for ^L (redraw screen). Operation is invisible to
...
callers of getkey().
2001-09-30 04:18:39 +00:00
ddouthitt
4558e344e8
Fixed silly bug in new_framebuf().
2001-09-30 04:17:40 +00:00
ddouthitt
dcea08d3fa
Bug caught by Robin Adams <robin@adams-online.de> where
...
getkey was not being checked for spurious nulls after driver
initialization. Turns out getinfo was in the same category.
Both: fixed.
2001-09-28 21:29:23 +00:00
ddouthitt
07608e742e
Tried to reduce amount of work necessary to flip the backlight - since
...
under VNC, this occurs rather slowly. Less work is done, but the
result has not changed.
2001-09-28 21:23:16 +00:00
ddouthitt
5c136ae24e
Fixed bug relating to configuration file not being read.
2001-09-28 21:21:32 +00:00
ddouthitt
f7ff05870f
Updated MatrixOrbital driver:
...
* Doesn't update the display unnecessarily - now has "memory" and won't
update if the display hasn't changed
* Debugging code: logs to syslog for everything if debug_level is set
high enough.
2001-09-28 21:20:50 +00:00
ddouthitt
4f60edc230
This file contains the beginnings of a "library" (not in the true
...
sense) of functions to be used by drivers. Things like freeing a
framebuffer, creating a frame buffer, andding characters or strings
to a framebuffer, et al, are here...
2001-09-28 21:16:31 +00:00
ddouthitt
e37ae29f66
Added lcd_lib.c to the makefile.
2001-09-28 21:15:13 +00:00
ddouthitt
2ae4511295
Made default (example) configuration more reasonable. Changed
...
sense of -t option for the MtxOrb driver: now gets WxH (20x4) instead
of type of display (LKD, VFD, etc..)
2001-09-28 21:13:26 +00:00
ddouthitt
6208cdba06
Added User command to LCDd.conf and documented it.
2001-09-28 17:04:22 +00:00
ddouthitt
0656695583
Updates to main.c:
...
* Fixed up help screen to reflect added options
* Added -u option and User directive to configuration file
* Massaged help output to keep it under 24 lines
(one typical screenful).
* Removed some unused code.
2001-09-28 17:00:01 +00:00
ddouthitt
e753b0564a
Updated configuration file processing:
...
* Options override all configuration file settings
* In absence of configuration file settings or option settings,
defaults are used
* Added new global settings: Port, Bind, Wait, WaitTime, Debug
* Added more documentation to LCDd.conf
2001-09-28 14:23:41 +00:00
ddouthitt
7c160d5f57
Updated lcdproc:
...
* Fixed visual bug that appeared in systems without swap: percentage
was reported as "nan" (Not-A-Number): now reports "n/a"...
2001-09-28 13:38:21 +00:00
ddouthitt
afd1f03c0b
Updated LCDd server:
...
* Fixed bug that caused -c <config> option to fail
* Added -a <addr> option: address to bind to
* Added -p <port> option: port to listen on
2001-09-28 13:03:12 +00:00
ddouthitt
bf5daf36ad
Now the curses driver supports a -B option: backlight color (on) color.
...
This goes with the "standard" background color option -b to give the
appearance of a backlight.
2001-09-28 00:41:05 +00:00
ddouthitt
cb76443a51
Curses driver is now sizeable: use the -t option in the configuration
...
file (in the Arguments command line)
2001-09-28 00:08:23 +00:00
ddouthitt
ad5de5bb17
Drivers specified on the command line (-d) override any specified in
...
the configuration file.
2001-09-28 00:06:27 +00:00
ddouthitt
214c957726
Fix help screen in MatrixOrbital driver to reflect correct options.
2001-09-28 00:05:32 +00:00
ddouthitt
74153173c1
Fixed major bug: drivers that accepted size arguments could wind
...
up with more than 80 characters (20x4) in their display, and thus
overwrite memory outside of the allocated 80 characterwframebuffer.
For example, using a 20x6 screen would do this.
All drivers now either ignore a missing framebuffer, or allocate it
themselves - the latter is prefered.
2001-09-27 23:46:55 +00:00
ddouthitt
71c3035611
* Changed MatrixOrbital driver to support the traditional -t option
...
(for type: 20x2, 20x4, 20x6) etc.
* Fixed bug that appeared when using a size larger than 80 characters
(20x4): framebuffer was allocated before size was known!
Drivers should NOT look for framebuffer to be allocated before they
start - but 80 characters are there anyway (for now).
2001-09-27 23:23:42 +00:00
ddouthitt
b8bf32b27f
Updated LCDd.conf to reflect changes in configuration processing:
...
* Support for a "Driver" global command
2001-09-27 20:52:12 +00:00
ddouthitt
2ed349c691
Cleaned up option processing. Added code to use getopt(3) but never
...
got it working (it's #ifdef'd out). Expanded flexibility of
-t option (now accepts any case, and looks at only first three
characters); so "-t lkd202-25" works as expected...
2001-09-27 20:51:16 +00:00
ddouthitt
8cef4f9af6
Added support for the "Driver" keyword in a global section of
...
the configuration file.
2001-09-27 20:49:29 +00:00
ddouthitt
105bc0b95e
Removed use of global static lcd structure from stv5730.c; now
...
uses the dynamically allocated stv5730 structure.
2001-09-27 18:29:04 +00:00
ddouthitt
92d11581b8
Added new driver for the Toshiba T6963, donated by
...
Manuel Stahl <mythos@xmythos.de >
2001-09-27 18:27:39 +00:00
ddouthitt
403754f1e6
Fixed bug that caused drv_base.c to be compiled.
2001-09-27 16:45:06 +00:00
ddouthitt
dbaee0b30a
Added documentation about the LB216 gotten from the mailing list.
...
Removed dependence on base driver functions.
2001-09-27 16:15:05 +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
ae2f2d5638
Documented in configuration file the ability to use different names for
...
the drivers (ie, "MatrixOrbital" instead of "MtxOrb"). Added more
detailed documentation elsewhere, also.
2001-09-27 16:10:56 +00:00
ddouthitt
897133efdd
Fixing some compile time problems that showed up using gcc 2.95 under
...
Solaris 8 (first time on SF Compile Farm!)
2001-09-27 13:49:04 +00:00
ddouthitt
d67120f519
Updated configure scripts, et al, to use and recognize the
...
SVGAlib driver and an upcoming Toshiba T6963 driver...
2001-09-26 22:29:00 +00:00
ddouthitt
46003178df
Updated lcd.c:
...
* Now preliminary support for SVGAlib driver and T6963 driver
won't interfere with proper compilation.
2001-09-26 20:36:24 +00:00
ddouthitt
97e340635a
Somehow, running the debug driver in the background just didn't
...
make sense. Changed debug driver to reflect this - will yank
syslog() out later...
2001-09-26 20:35:32 +00:00
ddouthitt
cf0990c28a
Updated lcd.c:
...
* Added preliminary support for a Toshiba T6963 driver.
* Fixed a bug in the driver_list function which caused some
unpretty output...
2001-09-26 20:27:41 +00:00
ddouthitt
c3214b482a
This is an example configuration file for LCDd.conf.
2001-09-26 20:19:46 +00:00
ddouthitt
9e3b973905
Updated lcd.c:
...
* Now supports multiple input sources
* Further compartmentalized
* Added function to list drivers in nice format (for help screen)
* More bulletproofing
2001-09-26 20:09:32 +00:00
ddouthitt
f4df93d8e7
Updated curses and svgalib drivers:
...
* Now supports the use of the new "daemonize" variable in the
lcd_logical_driver structure: permits output drivers to specify whether
becoming a daemon is logical or not... if not, run in foreground...
2001-09-26 20:06:42 +00:00
ddouthitt
5ec2511d52
Updated server main():
...
* Uses getopt(3) -- getopt_long(3) appears to be a GNU extension
(not used)
* Supports the use of a configuration file! Defaults to /etc/LCDd.conf
2001-09-26 20:05:07 +00:00
ddouthitt
fda1f15520
Updated lcd.c to support multiple input drivers. Drivers themselves
...
do not change. Output only goes to the first driver specified.
2001-09-26 14:57:13 +00:00
ddouthitt
f5e08408fb
Fixed bug that caused curses driver not to change colors in
...
response to option settings.
2001-09-25 22:59:52 +00:00
ddouthitt
16d57ba2ec
Fixed bug in curses driver that caused it not to compile.
2001-09-25 22:55:56 +00:00
ddouthitt
110b53a90e
Completed adding color support to curses driver (with the exception of
...
backlight, which I don't understand anyway...)
2001-09-25 22:10:30 +00:00
ddouthitt
0ab3148268
Updated svgalib driver, lb216 driver, and bayrad driver:
...
* Remove all references to lcd.*
* Remove all references to base driver functions
2001-09-25 21:18:40 +00:00
ddouthitt
7bae66ab97
Updated SLI driver:
...
* Removed all references to lcd.* (now uses sli->*)
* Removed all function pointers of NULL or (void *) -1
* Added base functions as necessary
Compiles cleanly; requires field testing.
2001-09-25 17:26:25 +00:00
ddouthitt
02233ef172
Updated sed1520.c driver:
...
* Lots of control-Ms in the file! Removed.
* Removed all reference to lcd.* in favor of sed1520->*
Compiles cleanly; field testing required.
2001-09-25 16:58:18 +00:00
ddouthitt
226ec0c7b2
Updated glk driver:
...
* Removed all reference to lcd.* ; replaced with glk->*
Field testing is required.
2001-09-25 16:53:07 +00:00
ddouthitt
949a45dd0f
Updated debug driver:
...
* Remove all usage of global lcd structure
2001-09-25 16:47:02 +00:00
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
a69505658a
Forgot to update the ChangeLog as I went...
2001-09-25 15:17:22 +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
8edc1a9aff
Update instructions to remove reference to autogen
...
(used by developers only)
2001-09-24 22:59:10 +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
ddouthitt
968a733d88
Fixed docs/Makefile.am to recognize new LCDd.8 file
2001-09-21 22:14:50 +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
ddouthitt
909f9791cf
Updated LCDd man page: added description of entire LCDd protocol (v0.3)
...
and moved the man page from section 1 to section 8 (where daemons live)...
2001-09-21 20:15:37 +00:00