src: fix the false isatty() issue on IBMi
IBMi PASE always says it is a tty terminal. For ssh terminals it is true, but for terminals like TN5250 it is not. Need to identify whether it is actually in a TTY or not.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines