1748202 Members
3141 Online
108759 Solutions
New Discussion юеВ

remap dtterm

 
SOLVED
Go to solution
Alberto_2
New Member

remap dtterm

Hi,

I am using dtterm as terminal. I would
like to map function keys. For
instance, if I select F1 function key I
would like to write "ls -l" on the
terminal.

Is it possible? How can I do it?

Thanks for all,

alberto
4 REPLIES 4
Helen French
Honored Contributor

Re: remap dtterm

Wodisch
Honored Contributor

Re: remap dtterm

Hello Alberto,

put into your "$HOME/.Xdefaults" something like:

!start here
dtterm*translations: #override \nNoneF1: string("ls -l\n") \nNoneF2: string("ls -abCF\n") \n
!end here

Attention: doing it that way NEEDS an empty line after the definitions!

If you then logoff and login again it should work (and do not worry about any Warning that "string" would be not "found")

HTH,
Wodisch
Wodisch
Honored Contributor
Solution

Re: remap dtterm

Hello again,

I really hate it, when the "postprocessing" of the replies destroys important stuff :-(

I will enumerate the lines this time - delete the digit and the space after the the digit on the start of each line and the spaces and the hash (#) at each line's end!

1 !start here #
2 dtterm*translations: #override \n\ #
3 NoneF1: string("ls -l\n") \n\ #
4 NoneF2: string("ls -abCF\n") \n\ #
5 #
6 !end here #

Hopefully this time it will make its way...

Good luck,
Wodisch
Alberto_2
New Member

Re: remap dtterm

Hello Wodisch

I follow your explanations and it works!!

Thanks a lot

alberto