Properly execute menu-driven scripts (uses ncurses) within a bash script
by budrz89 from LinuxQuestions.org on (#52DV5)
Hi,
I'm having difficulty trying to properly display a bash script that uses ncurses within another bash script. Every time I run it, it does display the menu but when I try to scroll down it prints "^[OB" on the screen instead of actually scrolling down. For example, when I'm compiling a kernel
Code:make mrproper
make menuconfigthe menu gets displayed but it doesn't function as I would expect it to. The only solution that I can think of is to manually run make menuconfig command and then run a separate script for installing after, but I'd like to try to put it all in a script if I can.


I'm having difficulty trying to properly display a bash script that uses ncurses within another bash script. Every time I run it, it does display the menu but when I try to scroll down it prints "^[OB" on the screen instead of actually scrolling down. For example, when I'm compiling a kernel
Code:make mrproper
make menuconfigthe menu gets displayed but it doesn't function as I would expect it to. The only solution that I can think of is to manually run make menuconfig command and then run a separate script for installing after, but I'd like to try to put it all in a script if I can.