- cli_putstr_P(PSTR("\r\nthe following algorithms are available:\r\n"));
- while(option<='z' && (t=(hfdesc_t*)pgm_read_word(&(shavs_algolist[i])))){
- cli_putc('\t');
- cli_putc((t==shavs_algo)?'*':' ');
- cli_putc(option++);
- cli_putstr_P(PSTR(":\t"));
- cli_putstr_P((void*)(pgm_read_word(&(t->name))));
- cli_putstr_P(PSTR("\r\n"));
+ fputs_P(PSTR("\nthe following algorithms are available:\n"), shavs_out_file);
+ while(option <= 'z' && (t = (hfdesc_t*)pgm_read_word(&(shavs_algolist[i])))){
+ fprintf_P(shavs_out_file, PSTR("\t%c%c:\t%S\n"),
+ (t == shavs_algo) ? '*' : ' ', option++, pgm_read_word(&(t->name)));