Artificial intelligent assistant

Disable screen outputting "[screen is terminating]" How do I disable the output when you are done with a screen from the `screen` command? Example: function foo() { echo "Testing..." sleep 2 echo "Done!" } export -f foo screen -q bash -c "foo" &> /dev/null It all works as expected, however I cannot find out how to disable the "[screen is terminating]".

There are only two solutions that I can think of. The first is to modify the screen code itself and recompile. The second is to have something like an `expect` wrapper around the program (untested):


#!/usr/bin/expect -f
spawn screen -q bash -c foo
interact {
"\[screen is terminating]" exit
}

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 7bcc14a12936c1421f5772c1a66be2c6