modify a mysql "show" command?
I think you cannot use the result of SHOW commands as if they were tables. You can, however use the Performance Schema Replication Tables.

To get the Slave_IO_State, you have to take into account the following remarK.


  The Slave_IO_State and Slave_SQL_Running_State fields are not preserved. If needed, these values can be obtained from the process list by using the THREAD_ID column of the appropriate replication table and joining it with the ID column in the INFORMATION_SCHEMA PROCESSLIST table to select the STATE column of the latter table.