[M1 Mac, Big Sur 11.6.5, FLTK 1.3.8]
大文字小文字の区別なくgrep検索できるようにしました。オプション –ignore-caseをつけるだけです。なぜか -iではうまくできませんでした。

<該当箇所のみ>
if (onoff_grep == 1){
const char* grep_char = grep_input->value();
if (onoff_Aa == 0){
cmd << "grep --ignore-case -r " << string(grep_char) << " " << string(dir_char);
std::cout << cmd.str() << endl;
system((cmd.str()).c_str());
}else{
cmd << "grep -r " << string(grep_char) << " " << string(dir_char);
std::cout << cmd.str() << endl;
system((cmd.str()).c_str());
}
// 件数表示
cmd << " | wc -l";
std::cout << cmd.str() << endl;
system((cmd.str()).c_str());
}