Fix terminal binding for M-x.