Nell'impostazione predefinita, le associazioni UNIX non sono abilitate.
La procedura descritta qui di seguito permette di specificare:
Traduzioni in stile EMACS per le applicazioni del widget DtEditor, come l'Editor di testo (dtpad) e la Gestione posta (dtmail)
Alternative per gli acceleratori delle applicazioni del widget DtEditor che entrano in conflitto con queste traduzioni.
Aggiungere la riga seguente al file DirectoryIniziale/.Xdefaults:
#include "/usr/dt/app-defaults/lingua/UNIXbindings"
dove lingua è il valore della variabile d'ambiente LANG
.
Riavviare la sessione.
Inserire il contenuto del file /usr/dt/app-defaults/lingua/UNIXbindings in DirectoryIniziale/.Xdefaults.
Modificare le associazioni nel file .Xdefaults.
Al termine, riavviare la sessione.
Il file /usr/dt/app-defaults/lingua/UNIXbindings contiene le associazioni descritte nella tabella qui sotto.
Quando sono abilitate le associazioni UNIX, il tasto Delete cancella il carattere precedente, mentre Shift-Delete cancella il carattere successivo.
La Tabella 17-1 elenca le impostazioni sostitutive di dtpad per gli acceleratori che entrano in conflitto con le associazioni UNIX.
Tabella 17-1 Impostazioni sostitutive di dtpad
Acceleratore e relativo testo |
Impostazione sostitutiva |
---|---|
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 |
La Tabella 17-2 elenca le impostazioni sostitutive della finestra di composizione di dtmail per gli acceleratori che entrano in conflitto con le associazioni UNIX.
Tabella 17-2 Impostazioni sostitutive della finestra di composizione di dtmail
Acceleratore e relativo testo |
Impostazione sostitutiva |
---|---|
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 |
Le traduzioni sotto elencate forniscono associazioni per il tasto Meta e i controlli EMACS (stile GNU) ed alcune altre associazioni. Ove appropriato, è possibile usare il tasto Shift insieme alla normale combinazione per invertire la direzione dell'operazione. Ad esempio, Ctrl+F sposta il cursore di un carattere in avanti, mentre Ctrl+Shift+F lo sposta di un carattere all'indietro.
Le associazioni aggiuntive sono:
Ctrl+virgola: backward-word
Ctrl+Shift+virgola: forward-word
Ctrl+punto: forward-word
Ctrl+Shift+punto: backward-word
Ctrl+Return: end-of-file
Ctrl+Shift+Return: beginning-of-file
GNU EMACS associa al tasto Delete la funzione delete-previous-character() anziché delete-next-character(). Meta+F è normalmente la combinazione di accesso al menu File, perciò l'associazione con forward-word() verrà ignorata. Per forward-word, usare una delle altre combinazioni associate (ad esempio, Ctrl+punto).
La tabella seguente elenca le traduzioni per DtEditor.text.
Tabella 17-3 Traduzioni per DtEditor.text
Modificatore Tasto Azione |
||
---|---|---|
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() |