On Thu, Jul 9, 2015 at 7:32 PM, <[email protected]> wrote: > A troublesome behavior I've noted is that if I use the exec button filter, > for example to run ls, the correct output is displayed in the terminal, but > the command prompt does not reappear, until I interact and press return.
That doesn't sound like a problem with xboxdrv, but just like normal Unix terminal weirdness. Programs that get launched into the background and have access to the terminal will just write directly to the Terminal. The shell doesn't know that and thus takes no action to refresh the prompt. You can reproduce that with something like this: echo -e "foo\nbar\nbaz" & However the prompt isn't gone, the shell is still there and waiting for your input. It's just the output that looks confusing as the text from the prompt is mixed up with all the text you get from the background process. The way to clean that situation up is to redirect all the program output into a logfile or /dev/null, so it doesn't clutter up the Terminal, i.e. via a simple shell script: #!/bin/sh your_program > /dev/null 2>&1 > For example, I'd like to start running ES with the controller. That I can > do by using a wrapper script, launched by xboxdrv/exec. When ES exits, it > returns to the terminal, and obviously no command prompt appears because of > this issue. The problem is that when ES is running, it cannot start an > emulator (its entire purpose!) because one of its scrips 'runcommand.sh' > returns an error that /dev/tty does not exist. This only happens if ES is > started by xboxdrv. The problem here is that the emulator wants tty access, which xboxdrv doesn't provide. However you should be able to work around that by explicitly giving the command a Terminal of it's own via something like this: #!/bin/sh DISPLAY=:0 gnome-terminal -e "./runcommand.sh" The utilities tmux and screen might also be able to do this on the shell itself, but I haven't really looked into that. -- Blog: http://grumbel.blogspot.com/ JabberID: xmpp:[email protected] ICQ: 59461927 -- You received this message because you are subscribed to the Google Groups "xboxdrv" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/xboxdrv. For more options, visit https://groups.google.com/d/optout.
