Hi, I found the issue based on this post:
https://stackoverflow.com/questions/10274730/how-to-get-around-no-backspace-when-icanon-in-non-canonical
This was missing:
raw.c_cc[VTIME] = 0;
raw.c_cc[VMIN] = 1;
Thank all
-Original Message-
From: screen-users-bounces+mpresseau=rheinme
Hi Jeffrey,
Thank for your answer but there is no change in behavior when TCSANOW is add.
-Original Message-
From: Jeffrey Walton
Sent: April 25, 2025 5:29 PM
To: Presseau, Michael
Cc: screen-users@gnu.org
Subject: Re: scanf failling with ICANON mode when in daemon mode (screen -dmS)