Documentation

pref

Syntax: %pref(id, value)

Sets or retrieves a specific preference setting. Preferences are normally set via the user interface, but using the %pref function you can retrieve or change a particular option within a script. This is an advanced function. Use it at your own risk.

Examples:

#CALL %pref(clock,0)
turns off the clock in the command line

There are many different preferences that can be retrieved and set with this command. There are too many to document here and most of them correspond with obvious options in the Preferences user interface. Note that some of these preferences are left over from TeSSH and no longer have any function in TeSSH.

Here are the valid ID values:

NumLock
AutoSave
PromptSave
Backup
Toolbar
HelpTips
Clock
TwentyFourhr
Translate
AutoExpand
DoTheme
RefreshNum
AutoClear
WrapCommand
MultiPaste
ColumnNum
ForceLower
WindowKeys
MacroOverride
CtrlAlt
CharMacros
AnyMacro
HistoryNum
BellColumn
SpellCheck
AutoCorrect
SpellCommands
SpellFunctions
SpellVars
SpellAliases
IgnoreFirst
DoANSI
DoVT100
DoMrTerm
DoMCP
DoPueblo
DoATCP
CharMode
LocalEcho
ControlCodes
DisplayControl
TelnetOptions
DoMXP
DoMCCP
DoNAWS
DoEOR
StrictTelnet
TermType
LogCommands
LogAfterTrig
LogANSI
SaveScrollback
LogSaveTime
ShowTime
DeltaTime
DBSaveTime
SpamLimit
SpamLen
SpamCommand
WordWrap
AutoWrap
WrapCol
WrapIndent
ShowTrig
EchoCom
EchoMessage
EchoScripts
CaptureCom
GagPassword
TriggerCom
Wildcards
AllowEval
AllowExpand
VarAssign
StripQuotes
ExpandVars
NullVar
SemiComments
InlineComments
VBScript
JScript
SendDelay
stxBackground
stxText
stxComment
stxCommand
stxVariable
stxFunction
stxAlias
stxOperator
stxLogical
stxDelim
stxTrigWildcard
stxTrigSaved
stxTrigRange
stxTrigSelection
stxTrigAnchor
stxWindow
ppSpaceBefore
ppCapCom
ppExpandCom
ppLowerFunc
ppAlignBlock
ppSingleBlock
ppMouseEval
ppMouseVar
ppClickVar
ppIndent
ANSIBold
ANSIUnderline
ANSIBlink
ANSIReverse
ANSIStrike
ForeCol0
ForeCol1
ForeCol2
ForeCol3
ForeCol4
ForeCol5
ForeCol6
ForeCol7
ForeCol8
ForeCol9
ForeCol10
ForeCol11
ForeCol12
ForeCol13
ForeCol14
ForeCol15
BackCol0
BackCol1
BackCol2
BackCol3
BackCol4
BackCol5
BackCol6
BackCol7
LockBack
colstxFore0
colstxFore1
colstxFore2
colstxFore3
colstxFore4
colstxFore5
colstxFore6
colstxFore7
colstxFore8
colstxFore9
colstxFore10
colstxFore11
colstxFore12
colstxFore13
colstxFore14
colstxFore15
colstxBack0
colstxBack1
colstxBack2
colstxBack3
colstxBack4
colstxBack5
colstxBack6
colstxBack7
colsyxFore
colsyxBack
colsyxBoth
colsyxReset
ColorSyntax
CheckVers
AutoConnect
ConnTimer
ConnTime
ConnTime2
ConnTimeout
NewLineCRLF
MinLookup
MaxLookup
LookupInc
ProxyType
ProxyHost
ProxyPort
ProxyUser
ProxyPassword
TelnetHost
TelnetPort
TelnetUser
TelnetPassword
ProxyCommand
WWWHost
WWWPort
SoundDir
OutputFontName
OutputFontSize
InputFontName
InputFontSize
EditorFontName
EditorFontSize
StatusFontName
StatusFontSize
VerticalAdjust
MemMain
MemChild
MemEdit
AbortWalk
WalkTimeout
MUDPrompt
PromptVars
Sound
OldSound
BeepSound
StartupSound
ConnectSound
DisconnectSound
DoMSP
EchoMSP
InlineMSP
DownloadSound
DownloadProgress
DownloadPlay
SoundURL
MXPUnderline
ExpandMXP
ReportRelocate
MXPCommandMenu
MXPStatus
DownloadImage
MXPGauges
MXPStatbar
MXPDebug
PuebloDetect
PuebloImagemap
PuebloPopup
DoGSL
GSLPrompt
GSLClient
iComChar
iSepChar
iVarChar
iParamChar
iFocusChar
iClassChar
iMoveChar
iHistChar
iQuoteChar
iMapDirChar
iDBChar
ComCharEn
SepCharEn
VarCharEn
ParamCharEn
FocusCharEn
ClassCharEn
MoveCharEn
HistCharEn
QuoteCharEn
MapDirCharEn
DBCharEn
TickMess
TickTime
TickMargin
TickCommand
taskMUD
taskChild
taskMapper
taskSettings
taskEditor
taskDB
AutoFront
MenuFront
DefWindowSize
WindowTab
CommandTab
ALTDock
Activity
AutoTile
DefColor
MessageColor
CommandColor
HighlightColor
WindowTop
WindowLeft
WindowWidth
WindowHeight
DoParse
TickOn
MapFile
MapOn
DBFile
DBOn
SplitPos
HorzPos
FullScreen
Alpha
GSLHp
GSLMaxHp
GSLLife
GSLMaxLife
GSLMana
GSLMaxMana
GSLHighCol
GSLNameCol
GSLDescCol
DefButtonWidth
DefButtonHeight
StatusColor
SyntaxCheck
SpellCheckEditor
CharDays
zMUDCompat
SmartCom
Author
Version
Modified
PkgName
Scheme
ThemeIndex
ThemeHue
ThemeBright
ThemeName
Toolbar1
Toolbar2
Toolbar3
Toolbar4
Statbar
CommandLine
DefPackages

Add comment

Login or register to post comments