Thanks a lot about many people reply and answer my question.
Most of them suggest me using getsr() instead of using gets. I
follow that and change my code as follow:
mvprintw (Y,X, "Barcode: ")
The program getting my input but move the curser back to the
beginning of line Y and do nothing, I can't use back space neither nor ctrl-
c but I need them with my interface design!
Can anyone help me please!