On Thu, 3 Aug 2000, ionel wrote:
> Hi my dos emulator works just fine. DOS programs are running very well.
> My question is if some of you know how to make a shortcut from Xwindow
> in linux to programs in dos emulator. I don't know how to do it. So I
> want to have shortcuts to some programs from DOS
The easiest is to feed keystrokes to DOS: e.g. type as the program to
execute for your shortcut (or whatever it is called in
Gnome/KDE/whatever):
xdos -I 'keystroke "dir\r"'
The "\r" stands for the Enter key. So to make it quit afterwards you do
xdos -I 'keystroke "dir\rexitemu\r"'
But this is only useful for non-interactive applications, since otherwise
"exitemu\r" would be typed inside the application.
If you see "ir" instead of "dir" you have to give it an extra keystroke,
e.g.
xdos -I 'keystroke "ddir\r"'
If this does not work (you don't see xdos showing up) e.g. in KDE 1.2 you
need to substitute ' by \':
xdos -I \'keystroke "dir\r"\'
Another example:
xdos -I \'keystroke "cd games\rpacman\r"\'
For more info see the HOWTO and README.txt (Running a DOS-application
directly from Unix shell)
Bart