I\'m trying to debug my ncurses application, using gdb. I use tty command to redirect program\'s I/O to another terminal. Output works like a charm, but I\'m having
You can attach to your process to debug from a different terminal instead of trying to run the application from within gdb.
Run your process as normal. When it is blocked for user input, find its process ID, and then attach to it with gdb from a different window:
gdb -p
Your problem is due to the program still expecting its interactive input to be coming from your gdb session.