/* Poll the device for input. 
When connected to its own pseudo terminal, it may also auto attach a terminal emulator to it, if set so from command line. */
static int np_uart_stdin_poll_in(const struct device *dev, unsigned char *p_char)
/* Poll the device for input. 
When connected to its own pseudo terminal, it may also auto attach a terminal emulator to it, if set so from command line. */
static int np_uart_stdin_poll_in(const struct device *dev, unsigned char *p_char)
{
	int in_f = ((struct native_uart_status *)dev->data)->in_fd;
	static bool disconnected;
	int rc;
	if (disconnected == true) {
		return -1;
	}
	rc = np_uart_stdin_poll_in_bottom(in_f, p_char);
	if (rc == -2) {
		disconnected = true;
		return -1;
	}
	return rc;
}