Xref: utzoo comp.os.vms:16699 comp.windows.x:12349
Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!network!sdcsvax!ucsdhub!calmasd!mlm
From: mlm@calmasd.Prime.COM (Monte Meals)
Newsgroups: comp.os.vms,comp.windows.x
Subject: DECWINDOWS resource manager values.
Keywords: DECWINDOWS VMS Resource Manager
Message-ID: <509@calmasd.Prime.COM>
Date: 11 Aug 89 18:54:27 GMT
Organization: Calma - A Division of Prime Computer, San Diego, CA
Lines: 1101
The following is a list of DECWindows resource specification
I generated from ULTRIX man pages. These should (with the possible
exception of dxmail) also be available under VMS.
Note, the VMS file names are slightly different than ULTRIX:
VMS ULTRIX
DECW$XDEFAULTS.DAT .Xdefaults
(I have not been able to find this info in the VMS manuals. Does
anyone know where it is located?)
Enjoy!
Monte
X DEFAULTS
Most X-based applications read the .Xdefaults file during
startup and use the appropriate resource specifications to
customize the appearance or characteristics of their win-
dows. The format for a resource specification in the .Xde-
faults file is:
[name*]resource: value
name Specifies the application name or the name string
that restricts the resource assignment to that
application or to a component of an application.
If this argument is not specified, the resource
assignment is globally available to all X applica-
tions.
resource Specifies the X resource.
value Specifies the value that is to be assigned to the
resource.
Because each toolkit-based application can consist of a com-
bination of widgets (for example, push buttons and a scroll
bar), you can form the name string, in addition to the
application name, by adding widget class and name identif-
iers to the string.
In most cases, an asterisk (*) should be used as a delim-
iter. An asterisk is similar to a wildcard character
because it specifies that the definition applies even if any
additional names and classes are omitted. A period delim-
iter (.) indicates an absolute widget pathname. When using
a period, if you do not specify all widgets in the path, the
specification will not work.
When you add a widget class identifier to the name string,
you make the resource available to every occurrence of that
widget in the application. For example, the following
assigns the background color of every push button in the
dxmail window to green:
dxmail*PushButton*background: green
When you add a widget name identifier to the name string,
you make the resource available to the specific widget (com-
ponent) with that name in the application. For example, the
following assigns the background color of the Exit push but-
ton in the dxmail window to green:
dxmail*Exit*background: green
This example adds a name identifier (Exit) to the string.
The application name does not have to be part of the string.
For example, the next two specifications assign the back-
ground color of button boxes. The first assigns all button
boxes with the same class identifier in all toolkit-based
applications to blue. The second assigns all button boxes
with the name tocButtons in all toolkit-based applications
to red:
*ButtonBox*background: blue
*ButtonBox*tocButtons*background: red
For a complete description of the general widget classes,
the core attributes for each widget, and the widget-specific
attributes see the Intro to the UWS Environment.
NOTE
Default values may be modified by specific appli-
cations.
For information about the resources that can be specified
for each X client application, see the reference page for
that application.
The following is a sample .Xdefaults file that can be used
as a template.
################################################################
#
# general defaults
#
################################################################
*Font: helvetica_bold12
*Text*Font: helvetica12
*Pushbutton.Font: helvetica_bold12
*titlebar.Font: helvetica_bold12
*ButtonBox.borderWidth: 1
*ButtonBox.hSpace: 8
*ButtonBox.Command.borderWidth: 0
*ButtonBox.Command.internalWidth: 1
*ButtonBox.Command.internalHeight: 1
#
# dxmail
#
dxmail*debug: on
dxmail*tocGeometry: 510x284+0+19
dxmail*viewGeometry: 510x460+0+323
dxmail*folders.Pushbutton.MarginWidth: 2
dxmail*folders.Pushbutton.MarginHeight: 2
dxmail*PrintCommand: enscript >2 /dev/null > /dev/null
dxmail*ButtonBox*Font: helvetica_bold12
Dxterm*fontSetName: 6x13
Dxterm*saveLinesOffTop: on
Dxterm*screenMode: true
Dxterm*autoWrapEnable: on
Dxterm*autoRepeatEnable: on
Dxterm*autoResize: on
Dxterm*scrollVertical: on
#
# Session Manager
#
sm.create_terminal: 1
sm.startup_state: iconified
#
# wm
#
wm*sticky: true
wm*border: #00ffff
KEY BINDINGS
The DECwindows user interface provides basic text editing
operations. In these text editing operations, a word is
considered to be any contiguous string of characters that
does not contain a word break character. Word break charac-
ters are as follows: space, tab, and line terminators. In
addition, any contiguous string of identical word break
characters (such as three spaces) is considered to be a
word. The built-in text editing operations for all text
windows are as follows:
Right arrow Moves the cursor one character to
the right. In a single-line field,
the cursor does not move when posi-
tioned at the end of the line. In
a multi-line field, the cursor
moves to the first position of the
next line.
Left arrow Moves the cursor one character to
the left. In a single-line field,
the cursor does not move when posi-
tioned at the beginning of the
line. In a multi-line field, the
cursor moves to the last position
of the previous line.
Up arrow In a multi-line field, moves the
cursor up one line.
Down arrow In a multi-line field, moves the
cursor down one line.
F11, F14 Reserved.
F12 Positions the cursor at the begin-
ning of the line.
SHIFT/F12 Positions the cursor at the end of
the line.
F13 Deletes the characters to the left
of the cursor up to and including
the beginning of the word, and
shifts to the left all text to the
right of the deleted character.
SHIFT/F13 Deletes the characters to the right
of the cursor up to and including
the beginning of the word, and
shifts to the right all text to the
right of the deleted character.
DELETE Deletes the character before the
cursor, and moves all text to the
right of the deleted character one
space to the left. DELETE works the
same way in both insert and over-
strike mode. When there is a
selection, DELETE removes the
selection but does not place it in
the clipboard.
SHIFT/DELETE Deletes the character after the
cursor, and moves all text to the
right of the deleted character one
space to the left. In overstrike
mode, SHIFT/DELETE deletes the
character under the block cursor.
A dialog box has one text insertion cursor, even if it has
multiple text windows. Keys in a dialog box with multiple
text windows take on the following additional actions:
TAB Moves the cursor from the current
field to the next field. If any
text exists in the new field, it is
automatically selected for pending
delete.
SHIFT/TAB Moves the cursor from the current
field to the previous field. If
any text exists in the new field,
it is automatically selected for
pending delete.
RETURN Activates the default push button
(if there is one) in the dialog
box.
ENTER Activates the default push button
(if there is one) in the dialog
box.
SHIFT/RETURN Activates the Cancel push button
(if there is one) in the dialog
box.
You can customize the basic text editing functions for text
windows with the translations resource specified in the
.Xdefaults file. This resource should be specified as:
*Text.translations: key specification
Each key specification listed with the translations resource
assigns an editor command to a named key or mouse combina-
tion and has the format:
key: function
key Specifies the key or mouse button that
is used to invoke the named function.
function Specifies the function to be invoked
when the named key is pressed.
You can specify any of the following control keys (their
abbreviations are in parentheses):
Ctrl (c)
Lock (l)
Meta (Compose Character) (m)
Shift (s)
You can specify the following mouse buttons:
Btn1 (by default, the left mouse button)
Btn2 (by default, the middle mouse button)
Btn3 (by default, the right mouse button)
You can assign the following actions to mouse buttons:
Down Action is invoked when the button is
pressed.
Up Action is invoked when the button is
released.
PtrMoved Action is invoked when the mouse button
is down and the pointer is moved.
You can specify the following functions:
backward-character Moves backward one character.
backward-kill-word Kills the word before the insertion
point. This text can be recovered with
the unkill function.
backward-paragraph Moves backward one paragraph.
backward-word Moves backward one word.
beginning-of-file Moves to the beginning of the text.
beginning-of-line Moves to the beginning of the current
line.
delete-next-character
Deletes the character after the inser-
tion point.
delete-next-word Deletes the word after the insertion
point.
delete-previous-character
Deletes the character before the inser-
tion point.
delete-previous-word
Deletes the word before the insertion
point.
delete-selection Deletes the selection.
end-of-file Moves to the end of the text.
end-of-line Moves to the end of the current line.
extend-adjust Adjusts the extension of the selected
text.
extend-end Ends the extension of the selected text.
extend-start Begins the extension of the selected
text.
forward-character Moves forward one character.
forward-paragraph Moves forward one paragraph.
forward-word Moves forward one word.
insert-file Inserts a file into the text.
kill-selection Kills the selection. This text can be
recovered with the unkill function.
kill-to-end-of-line Kills from the insertion point to the
end of the line. This text can be
recovered with the unkill function.
kill-to-end-of-paragraph
Kills from the insertion point to the
end of the paragraph. This text can be
recovered with the unkill function.
kill-word Kills the word after the insertion
point. This text can be recovered with
the unkill function.
newline-and-backup Creates a new paragraph, leaving the
insertion point on the previous one.
newline-and-indent Creates a new paragraph with the same
indentation as the current one.
newline Creates a new paragraph.
next-line Moves down one line.
next-page Moves to the next screen of text.
previous-line Moves up one line.
previous-page Moves to the previous screen of text.
redraw-display Repaints the window.
scroll-one-line-down
Scrolls the text down one line.
scroll-one-line-up Scrolls the text up one line.
select-adjust Adjusts the selection.
select-all Selects all the text.
select-end Ends the selection.
select-start Begins the selection.
select-word Selects the word the insertion point is
in.
stuff Inserts the text that was last selected
from any window.
unkill Inserts the text that was last killed.
(There is no way to get back text that
was deleted.)
A function specification can also include a character in
single quotation marks or a string in double quotation
marks. A string in quotation marks instructs the applica-
tion to insert the specified string into the file. For exam-
ple, the following function instructs the application to
insert the string "abcdef" into the text, insert the current
selection into the text, and then insert the letter q when
CTRL/Q is pressed.
cq: "abcdef" stuff 'q'
A sample set of key bindings in the .Xdefaults file is as
follows:
#
# toolkit text bindings
#
*Text.translations:Ctrlf:forward-character()
Ctrlb: backward-character()
Metaf: forward-word()
Metab: backward-word()
Meta]: forward-paragraph()
Ctrl[: backward-paragraph()
Ctrla: beginning-of-line()
Ctrle: end-of-line()
Ctrln: next-line()
Ctrlp: previous-line()
Ctrlv: next-page()
Metav: previous-page()
Meta\<: beginning-of-file()
Meta\>: end-of-file()
Ctrlz: scroll-one-line-up()
Metaz: scroll-one-line-down()
Ctrld: delete-next-character()
Ctrlh: delete-previous-character()
~Shift Metad:delete-next-word()
~Shift Metah:delete-previous-word()
Ctrlw: kill-selection()
Metay: stuff()
Ctrlm: newline()
Ctrll: redraw-display()
Any: self-insert()
dxwm(1X)
NAME
dxwm - DECwindows window manager
Some resources you can specify for dxwm are:
Wm*default.sticky Specifies whether windows should be
sticky at startup. If set to true,
application windows are sticky at
startup. If set to false, application
windows are not sticky at startup. The
default is false.
Wm*default.initialState
Specifies whether application windows
should start up open or iconic. The
value 1 specifies that windows should
start up open; the value 3 specifies
that windows should start up iconic.
The default is 1.
Wm*default.deiconifyFocus
Specifies whether windows that accept
keyboard input should automatically get
input focus when deiconified. The value
true means that windows will get focus
when deiconified; false means they will
not. The default is true.
Wm*default.startupFocus
Specifies whether new windows should be
given focus when they first appear on
the screen. The value true means new
windows will be given focus; false means
they will not. The default is false.
Wm*default.autoFocus
Specifies whether the window manager
will try to assign focus to some window
when the window that previously had
focus goes away (because, for example,
it was iconified by the user). The
value true means that the window manager
will try to assign focus to another win-
dow; false means that no window will
automatically get focus after a window
with focus goes away. The default is
true.
Wm*default.spaceout Specifies the number of pixels the mouse
can move when clicking to distinguish a
click from a drag. This eliminates dxwm
from considering unintentional hand
movements to be true mouse actions. For
example, with certain clicks and drags
on the icons, clicks translate to icon-
ification while drags mean icon move-
ment. The default is 3 pixels.
Wm*default.doubleClickTimeout
Specifies the maximum amount of time, in
milliseconds, that is allowed to elapse
between two mouse clicks for the two
clicks to be considered a single double
click. The default is 500.
Wm*default.titleTimeout
Specifies the maximum amout of time, in
milliseconds, that MB1 can be held down
(with the mouse pointer positioned in
the title bar, and with no mouse motion)
before the button press is considered
the start of a drag. The default is
500.
Wm*default.flash Specifies whether window outlines should
flash between an icon and its
corresponding window during iconify and
deiconify operations. The value true
means that the outlines should show up;
false means they should not. The
default is false.
Wm*default.titleFont
Specifies what font should be used for
the title bar text. The DECwindows
default font is used unless otherwise
specified.
Wm*default.iconFont Specifies what font should be used for
the icon text. The DECwindows default
font is used unless otherwise specified.
Wm*default.geometry Specifies the size and location of the
icon box. The format of the geometry
string is described in X(1X). By
default, the icon box is placed at
screen coordinates 0,0; its height is
46, and its width is the width of the
screen.
Wm*ScrollW.forceBars
The value true specifies that scroll
bars are always to be displayed in the
icon box. The default is false, with
scroll bars displayed only when needed.
Wm*ScrollW.scrollTopSide
The value true specifies that the hor-
izontal scroll bar should appear at the
top of the icon box; false means the
horizontal scroll bar should appear at
the bottom. The default is false.
Wm*ScrollW.scrollLeftSide
The value true specifies that the verti-
cal scroll bar should appear on the left
side of the icon box; false means the
vertical scroll bar should appear on the
right side. The default is false.
Wm*WmForm.borderColor
This border color is used as the thin
outer border of each managed window.
The default is white.
Wm*WmForm.foreground
This color is used as for the thick
inner border of each managed window, and
for the borders between buttons. The
default is black.
Wm*WmIconForm.iconStyle
The value 0 specifies that icons should
be small by default. 1 specifies large
icons. The default is 0.
You can specify that the defaults for WmForm and WmIconForm
should apply only to windows of a specific class, rather
than to all application windows. To do this, substitute the
class of the application for WmForm or WmIconForm when
specifying the resource. For example, the lines
Wm*WmForm.iconStyle: 0
Wm*Notepad.iconStyle: 1
specify that the icon for the Notepad application should be
large, while icons for all other applications should be
small.
dxterm
NAME
dxterm - DECwindows terminal emulator
For dxterm, the available name identifier is terminal. This
name identifier specifies the work area of the dxterm win-
dow.
For dxterm, the application class is DXterm and the applica-
tion name is the name that was specified on the command line
(usually dxterm).
For dxterm, the available class identifiers are:
DECterm
In addition to the general resources listed in X(1X), the
resources available for the dxterm work area are:
columns Specifies the width of the
logical display in columns.
The default is 80.
rows Specifies the height of the
logical display in rows. The
default is 24.
scrollHorizontal Specifies that a horizonal
scroll bar be displayed in the
dxterm window
scrollVertical Specifies that a vertical
scroll bar be displayed in the
dxterm window
littleFontSetName Specifies the font used for
the "little" font set. The
default is
"DEC-*-Terminal-*-*-*-*-*-140-*-*-*-*-*-*".
bigFontSetName Specifies the font used for
the "big" font set. The
default is
"DEC-*-*Terminal-*-*-*-*-*-180-*-*-*-*-*-*".
fontSetSelection Specifies which font is set to
use. Specify zero for little
and 1 for big. The default is
1.
condensedFont Specifies that the condensed
font should be used. The
default is to display the nor-
mal font (off).
adjustFontSizes Specifies that dxterm selects
the normal or condensed font
based on the number of columns
selected. The default is on.
displayControls Specifies that control charac-
ters be displayed. The
default is off.
cursorStyle Specifies the cursor style.
The style can be Blinking-
Block, SteadyBlock, or Under-
line. The default is Blink-
ingBlock.
textCursorEnable Specifies that the text cursor
be enabled.
horizontalCursorCoupling Specifies whether the window
moves horizontally to follow
the text cursor when the cur-
sor moves outside the window.
In this way, the cursor is
always contained in the win-
dow. The default is off.
verticalCursorCoupling Specifies whether the window
moves vertically to follow the
text cursor when the cursor
moves outside the window. In
this way, the cursor is always
contained in the window.
autoResizeWindow Specifies that the dxterm win-
dow automatically resize
itself to match the logical
display size whenever the log-
ical display size changes.
Note that this may interfere
with other windows on the
display.
autoResizeTerminal Specifies that dxterm will
change the logical display
size to match the window size
when the window size is
changed by the user. The
default is off.
statusDisplayEnable Specifies that the status line
be displayed. The default is
false.
lockUDK Specifies that changes to UDK
definitions are to be
prevented. The default is
off.
lockUserFeatures Specifies that changes to user
features are to be prevented.
The default is off.
userPreferenceSet Specifies the user preference
set to DEC (0) or ISO (1).
The default is 0.
terminalMode Specifies the terminal operat-
ing mode. The terminal operat-
ing mode can be VT52 (0),
VT100 (1), VT300_7bit (2),
VT300_8bit (3).
responseDA Specifies the response to a
Device Attributes (terminal
ID) request. The terminal ID
can be VT100 (0), VT101 (1),
VT102 (2), VT125 (3), VT220
(4), VT240 (5), VT320 (6),
VT340 (7), or DECterm (8).
The default is 8.
marginBellEnable Specifies that the margin bell
be turned on. The default is
off.
warningBellEnable Specifies that the warning
bell be turned on. The
default is off.
ctrlQSHold Specifies that the Ctrl-S and
the Ctrl-Q keys hold and un-
hold the display. The default
is on.
batchScrollCount Specifies how many lines may
be scrolled at once. The
dxterm application will never
scroll more than the total
number of lines on the screen
at once. The default is 1000.
composeKeyEnable Specifies that the Compose key
start the compose sequence.
The default is on.
saveLinesOffTop Specifies that a transcript of
lines be saved off the top of
a scrolled display. The
default is on.
tabStops Specifies the tab stop
columns. The default is every
8 columns.
newLineMode Specifies whether line-feed or
newline mode is turned on.
The default is line-feed mode.
screenMode Specifies the screen mode.
The screen mode can be dark on
light or light on dark. The
default is light on dark.
reverseVideo Specifies that dxterm reverse
the color values for fore-
ground and background. The
default is off.
autoWrapEnable Specifies that autowrap mode
be enabled. The default is
off.
autoRepeatEnable Specifies that autorepeat be
enabled. The default is on.
applicationKeypadMode Specifies that the application
running in the window take
control of the keypad. The
default is false.
backArrowKey Specifies the back arrow key
code. This code can be delete
(0) or backspace (1). The
default is 0.
periodCommaKeys Specifies the mapping of the
period and comma keys. This
mapping can be either Period-
Comma (0) or GreaterLessThan
(1). The default is 0.
apostropheTildeKey Specifies the mapping of the
apostrophe tilde key. This
mapping can be either Apostro-
pheTilde (0) or Escape (1).
The default is 0.
graphicsCursorEnable Specifies that the graphics
cursor is visible. The
default is on.
macrographReportEnable Specifies that the ReGIS mac-
rograph report command be
enabled. The default is on.
eightBitCharacters Specifies that 8-bit charac-
ters will be used in the VT300
terminal modes. If not
selected, 7-bit NRCS charac-
ters will be used. The
default is on.
Any application shell resources may also be used with
dxterm; the following may be useful:
allowShellResize If on, the program can change the size
of the dxterm window. If off, you can
specify a fixed size with the geometry
specification.
geometry This is the same as the -geometry com-
mand line option.
iconName Specifies the name in the icon box.
iconNameWidth Specifies the width of the name in the
icon box.
iconic Specifies the initial state of the
dxterm window.
title Specifies the name in the title bar.
dxcalc(1X)
NAME
dxcalc - DECwindows interface to the calculator
For dxcalc, the available class identifiers are:
Calc
MenuBar
For dxcalc, the available name identifiers are:
sqrtFontFamily
KeyFontFamily
The fonts used by dxcalc are specified by an asterisk (*).
This is done so that a font family is choosen instead of a
particular font. The asterisk (*) is a wildcard character
that matches all font sizes.
dxcardfiler(1X)
NAME
dxcardfiler - DECwindows interface to the cardfiler
For dxcardfiler, the available class identifiers are:
CardFiler
cardmainwindow
MenuBar
indexmainwindow
VList
The resources available for dxcardfiler are listed in X(1X).
dxclock(1X)
NAME
dxclock - DECwindows interface to the clock
For dxclock, the available class identifiers are:
Clock
For dxclock, the available name identifiers are:
Digital
FontFamily
In addition to the general resources listed in X(1X), the
resources available for dxclock are:
AnalogOn Specifies whether the analog portion of
the dxclock window is displayed. If set
to zero, the analog portion is not
displayed. If set to 1, the analog por-
tion is displayed. The default is 1.
DigitalOn Specifies whether the digital portion of
the dxclock window is displayed. If set
to zero, the digital portion is not
displayed. If set to 1, the digital
portion is displayed. The default is 1.
DateOn Specifies whether the date portion of
the dxclock window is displayed. If set
to zero, the date portion is not
displayed. If set to 1, the date por-
tion is displayed. The default is 1.
AlarmOn Specifies that the alarm be turned on.
If set to zero, the alarm is not turned
on. If set to 1, the alarm is turned
on. The default is zero.
AlarmPM Specifies that the alarm is set for PM.
If set to zero, the alarm is set for AM.
If set to one, the alarm is set for PM.
The default is zero.
AlarmHour Specifies the hour the alarm is to go
off (0 to 23). The default is 12.
AlarmMinute Specifies the minute the alarm is to go
off (00 to 59). The default is 00.
AlarmMessage Specifies the message to be displayed
when the alarm goes off. The default is
the string Alarm Message.
dxmail(1X)
NAME
dxmail - DECwindows interface to the mh Mail Handler
For dxmail, the available class identifiers are:
AttachedDialogBox
CautionBox
Command
Dialog
Form
Label
MainWindow
Menu
Menubar
Message
Pane
Pulldown
Pushbutton
Scroll
ScrollWindow
Text
Toggle
For dxmail, the available name identifiers are:
compButtons
confirm
createSend
customize
ddifHeaders
dxmail
folderArea
folderCommandBar
folders
innerFolderArea
innerMsgArea
messageArea
messageButtonsArea
messageCommandBar
messagePaneLabel
messageText
pick
prompt
read
titlebar
toc
tocButtons
tocform
viewButtons
workArea
In addition to the general resources listed in X(1X), the
resources available for dxmail are:
send.geometry Specifies the initial geometry (window
size and screen location) for the
Create-Send window. For more informa-
tion about the geometry specification
and screen coordinate system, see X(1X).
main.geometry Specifies the initial geometry (window
size and screen location) for the main
dxmail window.
read.geometry Specifies the initial geometry (window
size and screen location) for the Read
window.
pick.geometry Specifies the initial geometry (window
size and screen location) for the Pick
window.
PrintCommand Specifies the command to be executed to
print a message. (Standard out and
standard error must be redirected expli-
citly.) The default is
lpr > /dev/null 2 > /dev/null.
dxnotepad(1X)
NAME
dxnotepad - DECWindows text editor
For dxnotepad, the available class identifiers are:
Label
MainWindow
Menu
MenuBar
Notepad
PushButton
Scrollbar
Text
For dxnotepad, the available name identifiers are:
dxnotepad The name of the application.
workArea Pane in which a file is created or
edited.
In addition to the general resources listed in X(1X), the
resources available for dxnotepad are:
EnableBackups Specifies that the original file is
saved as the backup file. The name of
the backup file is constructed by
prepending the orignal file name with
the string contained within the backup-
NamePrefix, and appended with the
backupNameSuffix. The default is on.
BackupNamePrefix Specifies the prefix of the backup file
name.
BackupNameSuffix Specifies the suffix of the backup file
name.
Geometry Specifies the geometry (window size and
screen location) to be used as the
default for the dxnotepad window. For
more information about the geometry
specification and screen coordinate sys-
tem, see X(1X). If Geometry is not
specified, a default built-in geometry
is used.
journalNamePrefix Specifies the prefix of the journal file
name.
journalNameSuffix Specifies the suffix of the journal file
name.