デフォルトでは UNIX 割り当ては利用できません。
次のように指定します。
デスクトップのテキスト・エディタ (dtpad) やメール・プログラム (dtmail) などの DtEditor ウィジェット・アプリケーションの EMACS スタイル変換
これらの変換と競合する DtEditor ウィジェット・アプリケーションのメニュー・アクセラレータに代わるもの
次の行を HomeDirectory/.Xdefaults ファイルに追加します。
#include "/usr/dt/app-defaults/language/UNIXbindings"
language は、LANG 環境変数の値です。
セッションを再起動します。
ファイル /usr/dt/app-defaults/language/UNIXbindings の内容を HomeDirectory/.Xdefaults に挿入します。
.Xdefaults ファイルの割り当てを編集します。
編集を終了してから、セッションを再起動します。
/usr/dt/app-defaults/language/UNIXbindings ファイルは、次の割り当てを行います。
UNIX 割り当てが可能な場合、[Delete] キーは直前の文字を削除し、[Shift] + [Delete] キーは次の文字を削除します。
表 17-1 は、dtpad が無効にする UNIX 割り当てと競合するメニュー・アクセラレータとアクセラレータ・テキストのリストです。
表 17-1 dtpad が無効にするキー| メニュー・アクセラレータとアクセラレータ・テキスト | 無効キー | 
|---|---|
| Dtpad*fileMenu.print.acceleratorText: | 
 | 
| Dtpad*fileMenu.print.accelerator: | 
 | 
| Dtpad*editMenu.undo.acceleratorText: | Ctrl+_ | 
| Dtpad*editMenu.undo.accelerator: | Ctrl<Key>_ | 
| Dtpad*editMenu.paste.acceleratorText: | Shift+Insert | 
| Dtpad*editMenu.paste.accelerator: | Shift<Key>osfInsert | 
| Dtpad*editMenu.findChange.acceleratorText: | Ctrl+S | 
| Dtpad*editMenu.findChange.accelerator: | Ctrl<Key>s | 
表 17-2 は、UNIX 割り当てと競合するメニュー・アクセラレータとアクセラレータ・テキストの dtmail メール作成ウィンドウの無効キーのリストです。
表 17-2 dtmail メール作成ウィンドウの無効キー| メニュー・アクセラレータとアクセラレータ・テキスト | 無効キー | 
|---|---|
| Dtmail*ComposeDialog*menubar*Edit.Undo.acceleratorText: | Ctrl+_ | 
| Dtmail*ComposeDialog*menubar*Edit.Undo.accelerator: | Ctrl<Key>_ | 
| Dtmail*ComposeDialog*menubar*Edit.Paste.acceleratorText: | Shift+Insert | 
| Dtmail*ComposeDialog*menubar*Edit.Paste.accelerator: | Shift<Key>osfInsert | 
| Dtmail*ComposeDialog*menubar*Edit.Find/Change.acceleratorText: | Ctrl+S | 
| Dtmail*ComposeDialog*menubar*Edit.Find/Change.accelerator: | Ctrl<Key>s | 
次の変換は、(GNU スタイル) EMACS コントロールと [Meta] キー割り当て、および追加の割り当てを提供します。適切な場合は、[Shift] キーを通常の割り当てと組み合わせて使用して、オペレーションの方向を反対にすることもできます。たとえば、[Ctrl] + [F] キーは通常 1 文字前に移動するので、[Ctrl] + [Shift] + [F] キーは 1 文字後ろにカーソルを移動します。
追加の割り当ては次のとおりです。
Ctrl+comma - 1 語後ろへ (backward-word)
Ctrl+Shift+comma - 1 語前へ (forward-word)
Ctrl+period - 1 語前へ (forward-word)
Ctrl+Shift+period - 1 語後ろへ (backward-word)
Ctrl+Return - ファイルの最後へ (end-of-file)
Ctrl+Shift+Return - ファイルの最初へ (beginning-of-file)
GNU EMACS は、[Delete] キーに対して delete-next-character() ではなく delete-previous-character() を割り当てます。[Meta] + [F] キーは通常は [ファイル] メニューのニーモニックのため、forward-word() への割り当ては無視されます。1 語前 (forward-word) の割り当てのうち 1 つを使用します (たとえば、[Ctrl] + [period])。
表 17-3 は、DtEditor.text 変換のリストです。
表 17-3 DtEditor.text 変換| 修飾キー | キー | アクション・ルーチン | 
|---|---|---|
| c ‾s | <Key>a: | beginning-of-line()¥n¥ | 
| c s | <Key>a: | end-of-line()¥n¥ | 
| c ‾s | <Key>b: | backward-character()¥n¥ | 
| c s | <Key>b: | forward-character()¥n¥ | 
| c ‾s | <Key>b: | backward-character()¥n¥ | 
| c s | <Key>b: | backward-word()¥n¥ | 
| m ‾s | <Key>b: | backward-word()¥n¥ | 
| m s | <Key>b: | forward-word()¥n¥ | 
| c ‾s | <Key>d: | delete-next-character()¥n¥ | 
| c s | <Key>d: | delete-previous-character()¥n¥ | 
| m ‾s | <Key>d: | kill-next-word()¥n¥ | 
| m s | <Key>d: | kill-previous-word()¥n¥ | 
| c ‾s | <Key>e: | end-of-line()¥n¥ | 
| c s | <Key>e: | beginning-of-line()¥n¥ | 
| c ‾s | <Key>f: | forward-character()¥n¥ | 
| c s | <Key>f: | backward-character()¥n¥ | 
| m ‾s | <Key>f: | forward-word()¥n¥ | 
| m s | <Key>f: | backward-word()¥n¥ | 
| c | <Key>j: | newline-and-indent()¥n¥ | 
| c ‾s | <Key>k: | kill-to-end-of-line()¥n¥ | 
| c s | <Key>k: | kill-to-start-of-line()¥n¥ | 
| c | <Key>l: | redraw-display()¥n¥ | 
| c | <Key>m: | newline()¥n¥ | 
| c s | <Key>n: | process-up()¥n¥ | 
| c ‾s | <Key>n: | process-down()¥n¥ | 
| c | <Key>o: | newline-and-backup()¥n¥ | 
| c ‾s | <Key>p: | process-up()¥n¥ | 
| c s | <Key>p: | process-down()¥n¥ | 
| c ‾s | <Key>u: | kill-to-start-of-line()¥n¥ | 
| c s | <Key>u: | kill-to-end-of-line()¥n¥ | 
| c ‾s | <Key>v: | next-page()¥n¥ | 
| c s | <Key>v: | previous-page()¥n¥ | 
| m ‾s | <Key>v: | previous-page()¥n¥ | 
| m s | <Key>v: | next-page()¥n¥ | 
| c | <Key>w: | kill-selection()¥n¥ | 
| c ‾s | <Key>y: | unkill()¥n¥ | 
| m | <Key>]: | forward-paragraph()¥n¥ | 
| m | <Key>[: | backward-paragraph()¥n¥ | 
| c ‾s | <Key>comma: | backward-word()¥n¥ | 
| c s | <Key>comma: | forward-word()¥n¥ | 
| m | <Key>¥¥<: | beginning-of-file()¥n¥ | 
| c ‾s | <Key>period: | forward-word()¥n¥ | 
| c s | <Key>period: | backward-word()¥n¥ | 
| m | <Key>¥¥>: | end-of-file()¥n¥ | 
| c ‾s | <Key>Return: | end-of-file()¥n¥ | 
| c s | <Key>Return: | beginning-of-file()¥n¥ | 
| ‾c ‾s ‾m ‾a | <Key>osfDelete: | delete-previous-character()¥n¥ | 
| ‾c s ‾m ‾a | <Key>osfDelete: | delete-next-character() |