Assuming that the terminal running mosh in Termux supports 256 colors should be safe, and avoids a popen() call which uses /system/bin/sh and may not always work.
Assuming that the terminal running mosh in Termux supports 256 colors should be safe, and avoids a popen() call which uses /system/bin/sh and may not always work.