ratpoison-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[RP] Error return codes


From: Ben Leslie
Subject: [RP] Error return codes
Date: Tue Nov 20 19:58:01 2001
User-agent: Mutt/1.3.23i

Hi All,

Another question. Would is be possible for ratpoison to pass
back error commands when using the -c option.

I would like to do:

ratpoison -c "select mutt"
echo $?

and if there is not "mutt" window it would
return some non zero value. That way in a script
I would be able to then recover from this problem.
(ie: start mutt and change focus to it).

This seems to need hacking send_command/
recieve_command_result in communications.c and ensuring
that all commands in actions.c return error codes
when they should.

What do other people think?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]