Difference between revisions of "Config.db"

From Recital Documentation Wiki
Jump to: navigation, search
Line 30: Line 30:
 
<br>
 
<br>
 
if isserver()<br>
 
if isserver()<br>
&#160;&#032;&#032;&#032;set transaction isolation level read uncommitted && current transaction state<br>
+
&#160;&#160;&#160;&#160;set transaction isolation level read uncommitted && current transaction state<br>
else<br>
+
&#160;&#160;&#160;&#160;set dohistory off && disable program command history<br>
set dohistory off && disable program command history<br>
+
&#160;&#160;&#160;&#160;set history on && maintain interactive command history<br>
set history on && maintain interactive command history<br>
+
&#160;&#160;&#160;&#160;set color on && always enable color monitors<br>
set color on && always enable color monitors<br>
+
&#160;&#160;&#160;&#160;set blink on && blink active field when popup activated<br>
set blink on && blink active field when popup activated<br>
+
&#160;&#160;&#160;&#160;set escape on && enable Ctrl/Break<br>
set escape on && enable Ctrl/Break<br>
+
&#160;&#160;&#160;&#160;set help on && always provide help in message line<br>
set help on && always provide help in message line<br>
+
&#160;&#160;&#160;&#160;set message on && enable messages in help line<br>
set message on && enable messages in help line<br>
+
&#160;&#160;&#160;&#160;set screenmap on && always enable screen mapping (windowing)<br>
set screenmap on && always enable screen mapping (windowing)<br>
+
&#160;&#160;&#160;&#160;set kbedit on && allow editing of interacive command lines<br>
set kbedit on && allow editing of interacive command lines<br>
+
&#160;&#160;&#160;&#160;set verify on && always verify ABANDON in forms<br>
set verify on && always verify ABANDON in forms<br>
+
&#160;&#160;&#160;&#160;set retainmenu on && remain in menu after selection processing<br>
set retainmenu on && remain in menu after selection processing<br>
+
&#160;&#160;&#160;&#160;set heading to single && list heading to single lines<br>
  set heading to single && list heading to single lines<br>
+
&#160;&#160;&#160;&#160;set talk off && quiet operation<br>
  set talk off && quiet operation<br>
+
&#160;&#160;&#160;&#160;set tbufsize 512 && terminal output buffer size<br>
  set tbufsize 512 && terminal output buffer size<br>
+
&#160;&#160;&#160;&#160;set memowindow on && enable popup notepad on memo files<br>
  set memowindow on && enable popup notepad on memo files<br>
+
&#160;&#160;&#160;&#160;set memowindow at 4,17 to 19,62 && default memo window size<br>
  set memowindow at 4,17 to 19,62 && default memo window size<br>
+
&#160;&#160;&#160;&#160;set memowidth to 44 && Memo window width in characters<br>
  set memowidth to 44 && Memo window width in characters<br>
+
&#160;&#160;&#160;&#160;set memoformat off && disable automatic formatting of memo text<br>
  set memoformat off && disable automatic formatting of memo text<br>
+
&#160;&#160;&#160;&#160;set highlight on && focus on popup menus<br>
  set highlight on && focus on popup menus<br>
+
&#160;&#160;&#160;&#160;set inkeydelay off && faster response time for Clipper apps<br>
  set inkeydelay off && faster response time for Clipper apps<br>
+
&#160;&#160;&#160;&#160;set perfmeter on && display performance meter<br>
  set perfmeter on && display performance meter<br>
+
&#160;&#160;&#160;&#160;set shadow (iscolor())        && Enable shadows on color terminals<br>
  set shadow (iscolor())        && Enable shadows on color terminals<br>
+
&#160;&#160;&#160;&#160;set screenio on && Handle processing of character 255<br>
  set screenio on && Handle processing of character 255<br>
+
&#160;&#160;&#160;&#160;set mackey on && enable keyboard macros<br>
  set mackey on && enable keyboard macros<br>
+
&#160;&#160;&#160;&#160;set sysmenu on && enable system window menu bar<br>
  set sysmenu on && enable system window menu bar<br>
+
&#160;&#160;&#160;&#160;set descriptions on && enable field descriptions <br>
  set descriptions on && enable field descriptions <br>
+
&#160;&#160;&#160;&#160;set formstate on && save status of Upd/Qry after menus in forms<br>
  set formstate on && save status of Upd/Qry after menus in forms<br>
+
&#160;&#160;&#160;&#160;set border to single && single line window borders<br>
  set border to single && single line window borders<br>
+
&#160;&#160;&#160;&#160;set mouse off && disable mouse support<br>
  set mouse off && disable mouse support<br>
+
&#160;&#160;&#160;&#160;set navigate off && disable cursor navigation in forms<br>
  set navigate off && disable cursor navigation in forms<br>
+
&#160;&#160;&#160;&#160;set design on && enable info center DESIGN mode<br>
  set design on && enable info center DESIGN mode<br>
+
&#160;&#160;&#160;&#160;set title on && catalog file descriptions<br>
  set title on && catalog file descriptions<br>
+
 
endif<br>
 
endif<br>
 
<br>
 
<br>
 
if sys(9001) && enable windows<br>
 
if sys(9001) && enable windows<br>
  define window append from 2,1 to 11,78 ;<br>
+
&#160;&#160;&#160;&#160;define window append from 2,1 to 11,78 ;<br>
        title "Recital - Append Window" color gr+/n float grow shadow<br>
+
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;title "Recital - Append Window" color gr+/n float grow shadow<br>
  define window edit from 2,42 to 11,78 ;<br>
+
&#160;&#160;&#160;&#160;define window edit from 2,42 to 11,78 ;<br>
        title "Recital - Edit Window" panel color w+/bg,,gr+/rb float grow shadow<br>
+
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;title "Recital - Edit Window" panel color w+/bg,,gr+/rb float grow shadow<br>
  define window browse from 2,1 to 20,39 ;<br>
+
&#160;&#160;&#160;&#160;define window browse from 2,1 to 20,39 ;<br>
        title "Recital - Browse Window" panel color w+/bg float grow shadow<br>
+
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;title "Recital - Browse Window" panel color w+/bg float grow shadow<br>
  define window memo from 14,42 to 20,78 ;<br>
+
&#160;&#160;&#160;&#160;define window memo from 14,42 to 20,78 ;<br>
        title "Recital - Memo Window" panel color g/w,,gr+/rb float grow shadow<br>
+
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;title "Recital - Memo Window" panel color g/w,,gr+/rb float grow shadow<br>
  define window command from 14,42 to 20,77 ;<br>
+
&#160;&#160;&#160;&#160;define window command from 14,42 to 20,77 ;<br>
title "Recital - Command Window" color n/bg panel float shadow grow<br>
+
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;title "Recital - Command Window" color n/bg panel float shadow grow<br>
  define window error from 7,9 to 18,69 ;<br>
+
&#160;&#160;&#160;&#160;define window error from 7,9 to 18,69 ;<br>
        title 'Recital - Error Window' color gr+/r float grow<br>
+
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;title 'Recital - Error Window' color gr+/r float grow<br>
  set window of append to append<br>
+
&#160;&#160;&#160;&#160;set window of append to append<br>
  set window of edit to edit<br>
+
&#160;&#160;&#160;&#160;set window of edit to edit<br>
  set window of browse to browse<br>
+
&#160;&#160;&#160;&#160;set window of browse to browse<br>
  set window of memo to memo<br>
+
&#160;&#160;&#160;&#160;set window of memo to memo<br>
  set window of command to command<br>
+
&#160;&#160;&#160;&#160;set window of command to command<br>
  set window of error to error<br>
+
&#160;&#160;&#160;&#160;set window of error to error<br>
  set errorwindow on<br>
+
&#160;&#160;&#160;&#160;set errorwindow on<br>
  set commandwindow on<br>
+
&#160;&#160;&#160;&#160;set commandwindow on<br>
  activate screen<br>
+
&#160;&#160;&#160;&#160;activate screen<br>
  set screenmap off<br>
+
&#160;&#160;&#160;&#160;set screenmap off<br>
  clear<br>
+
&#160;&#160;&#160;&#160;clear<br>
  set screenmap on<br>
+
&#160;&#160;&#160;&#160;set screenmap on<br>
 
endif<br>
 
endif<br>
 
<br>
 
<br>

Revision as of 10:56, 3 March 2010

Sample config.db system-wide configuration file.

********************************************************************************
*
* File  : config.db
*
* Purpose : System wide startup file for Recital
*
********************************************************************************
set network on && enable network file systems
set network to 1024*2 && network page size
set autolock on && enable automatic locking
set keycache on && enable index key cache
set null off && disable null support in columns
set errorversion off && enable version names for error.mem files
set syslogging on && enable system logging
set fastindex off && fast indexing balance by pages during build
set pcache on && program caching (ignored by turbo)
set pshare on && shared memory '.dbo' execution
set icache to optimum && index cache size (disk blocks)
set safety off && allow overwriting of exiting files
set compile on && enable auto-compile mode
set development on && check for source changes and recompile
set date american && default date format
set optimize on && enable query optimization
set clockrate to 1 && clock ticks
set clock on && turn clock on
set epoch to 1988 && define epoch
set debug off && disable debug() logging

if isserver()
    set transaction isolation level read uncommitted && current transaction state
    set dohistory off && disable program command history
    set history on && maintain interactive command history
    set color on && always enable color monitors
    set blink on && blink active field when popup activated
    set escape on && enable Ctrl/Break
    set help on && always provide help in message line
    set message on && enable messages in help line
    set screenmap on && always enable screen mapping (windowing)
    set kbedit on && allow editing of interacive command lines
    set verify on && always verify ABANDON in forms
    set retainmenu on && remain in menu after selection processing
    set heading to single && list heading to single lines
    set talk off && quiet operation
    set tbufsize 512 && terminal output buffer size
    set memowindow on && enable popup notepad on memo files
    set memowindow at 4,17 to 19,62 && default memo window size
    set memowidth to 44 && Memo window width in characters
    set memoformat off && disable automatic formatting of memo text
    set highlight on && focus on popup menus
    set inkeydelay off && faster response time for Clipper apps
    set perfmeter on && display performance meter
    set shadow (iscolor()) && Enable shadows on color terminals
    set screenio on && Handle processing of character 255
    set mackey on && enable keyboard macros
    set sysmenu on && enable system window menu bar
    set descriptions on && enable field descriptions
    set formstate on && save status of Upd/Qry after menus in forms
    set border to single && single line window borders
    set mouse off && disable mouse support
    set navigate off && disable cursor navigation in forms
    set design on && enable info center DESIGN mode
    set title on && catalog file descriptions
endif

if sys(9001) && enable windows
    define window append from 2,1 to 11,78 ;
        title "Recital - Append Window" color gr+/n float grow shadow
    define window edit from 2,42 to 11,78 ;
        title "Recital - Edit Window" panel color w+/bg,,gr+/rb float grow shadow
    define window browse from 2,1 to 20,39 ;
        title "Recital - Browse Window" panel color w+/bg float grow shadow
    define window memo from 14,42 to 20,78 ;
        title "Recital - Memo Window" panel color g/w,,gr+/rb float grow shadow
    define window command from 14,42 to 20,77 ;
        title "Recital - Command Window" color n/bg panel float shadow grow
    define window error from 7,9 to 18,69 ;
        title 'Recital - Error Window' color gr+/r float grow
    set window of append to append
    set window of edit to edit
    set window of browse to browse
    set window of memo to memo
    set window of command to command
    set window of error to error
    set errorwindow on
    set commandwindow on
    activate screen
    set screenmap off
    clear
    set screenmap on
endif

alias pwd "? default()"
alias cp "copy file "
alias mv "rename "
alias rm "erase "
alias ls "run('ls -l %1', .t.)"
alias ps "run('ps -ef ', .t.)"
alias cd "set default to %1"
alias cls "clear screen"