First step towards the v0.5 API. New configfile routines in use.

Configfile adapted. For drivers: configfile routines are available.
This commit is contained in:
robijn
2001-10-24 14:26:15 +00:00
parent 15325e8e3b
commit dc0f01850b
9 changed files with 1288 additions and 500 deletions
+85 -65
View File
@@ -1,114 +1,134 @@
# LCDd.conf
#
# Each driver has a section which defines how it acts.
# Drivers which are supported but unused are ignored.
# Each driver section is begun by a "[drivername]" line
# with no white space in the line at all.
# This file contains the configuration for the LCDd server.
#
# The format is ini-file-like. It is divided into sections that start at
# markers that look like [section]. Comments are all line-based comments,
# and are lines that start with '#' or ';'.
#
# There is currently only one keyword for the driver sections:
# The server has a 'central' section named [server]. Further each driver
# has a section which defines how the driver acts.
#
# Arguments <str>
# The drivers are activated by specifiying them in a driver= line in the
# server section, like:
#
# These are the arguments to be passed to the
# driver, without quotes. These are the same
# arguments that the driver would have been passed
# under the old command line format of
# Driver=curses
#
# -d <driver> "<driverargs>"
# This tells LCDd to use the curses driver. The first driver that is
# loaded and is capable of output becomes 'the' output driver.
# All extra drivers can only serve as input.
# The default driver to use is curses.
#
# Before the driver sections, global settings can be set.
# In the driver sections currently only one keyword is recognized:
#
# Global settings are:
# Arguments="place arguments here"
#
# Driver <str>
# These are the arguments to be passed to the driver, without quotes.
# These are the same arguments that the driver would have been passed
# under the old command line format of
#
# Use the specified driver. Second and further instances
# of this command add input drivers to the server;
# output is only to the first driver. The default driver
# to use is curses.
# -d <driver> "<driverargs>"
#
# Bind <addr>
#
# Bind to this address; defaults to 127.0.0.1
#
# Port <port>
#
# Listen on this specified port; defaults to 13666.
#
# Debug <level>
#
# Debugging level; defaults to 0 (no debugging output).
#
# Wait <time>
# WaitTime <time>
#
# Set the default amount of time (in 1/8 seconds) to
# display a screen on the LCD.
#
# User <user>
#
# User to run as. LCDd will drop its root priviledges,
# if any, and run as this user instead.
#
# Comments are all line-based comments,
# and are lines that start with one of '#', ';'
# or '//' in the first columns.
# Note that the -d option still works, but not allows arguments anymore.
# If -d is specified on the command line, the Driver= options in the
# config file are ignored.
Driver curses
; Bind 172.16.3.69
; Port 3777
; Debug 5
WaitTime 80
User dgd
# Joystick driver
[server]
# Server section with all kinds of settings for the LCDd server
Driver=HD44780
#Driver=curses
#Driver=MtxOrb
#
# Tells the server to load the given drivers. Multiple lines can be given.
Bind=127.0.0.1
# Tells the driver to bind to the given interface
Port=3777
# Listen on this specified port; defaults to 13666.
#Debug=5
# Sets the debugging level; defaults to 0 (no debugging output).
WaitTime=5
# Sets the default time in seconds to displays a screen.
User=nobody
# User to run as. LCDd will drop its root priviledges,
# if any, and run as this user instead.
EnableServerScreen=yes
# Enables the server screen also when other screens are active.
Foreground=no
# The server will stay in the foreground if set to true.
[joy]
# Joystick driver
# LCDM001 driver
[lcdm001]
Arguments -d /dev/lcd
# LCDM driver
Arguments="-d /dev/lcd"
# MatrixOrbital driver
[MtxOrb]
Arguments -d /dev/ttyS0 -t 20x2 -c 120
# Matrix Orbital driver
Arguments="-d /dev/ttyS0 -t 20x2 -c 120"
# MatrixOrbital GLK driver
[GLK]
# Matrix Orbital GLK driver
# CrystalFontz driver
[CFontz]
# CrystalFontz driver
# Hitachi HD44780 driver
[HD44780]
# Hitachi HD44780 driver
# See docs/hd44780_howto.txt
Arguments="-p 0x378 -c 4bit -k -b"
# Meaning:
# -p <port> Use the given port
# -c <ct> Use the given connectiontype
# -k Keypad support
# -b Backlight support
# LB216
[LB216]
# LB216 driver
# Text driver
[text]
# Text driver
# BayRAD driver
[bayrad]
# BayRAD driver
# Toshiba T6963 driver
[T6963]
# Toshiba T6963 driver
# SVGAlib driver
[svgalib]
# SVGAlib driver
# Curses driver
[curses]
Arguments -f blue -b cyan -B red -t 20x4
# Curses driver
Arguments="-f blue -b cyan -B red -t 20x4"
# Meaning:
# -f <color> Foreground color
# -b <color> Background color
# -B Big numbers size?
# -t Display size