running a terminal from current directory

0 views
Skip to first unread message

Fab

unread,
Jan 5, 2010, 7:48:02 AM1/5/10
to xyzcmd
Hi,

to start a terminal (e.g. xterm) in the current directory with a short
cut. I tried to call
os.system("xterm") from the console, but this does not seem to be the
right approach.
Do you have a hint how to do this?

Fab

Max E. Kuznecov

unread,
Jan 5, 2010, 2:06:11 PM1/5/10
to xyz...@googlegroups.com
In order to to execute external program you can use plugin:
":core:shell:execute" or shortcut shell() method in all your xyz
configs and runtime console as well.

For example, to bind shortcut to running xterm you can put in your
~/.xyzcmd/conf/keys.xyz:

bind(lambda: shell("xterm"), kbd("Ctrl-m"))

Take a look at default keys.xyz, which resides in
/usr/share/xyzcmd/conf/, there are all default keybindings performed.

2010/1/5 Fab <f.braen...@gmx.de>:


--
~syhpoon

Reply all
Reply to author
Forward
0 new messages