@@ -559,22 +559,22 @@ static void parse_option(struct setterm_control *ctl, int ac, char **av)
559
559
break ;
560
560
case OPT_CURSOR :
561
561
ctl -> opt_cursor = set_opt_flag (ctl -> opt_cursor );
562
- ctl -> opt_cu_on = parse_switch (optarg , _ ("argument error" ),
562
+ ctl -> opt_cu_on = ul_parse_switch (optarg , _ ("argument error" ),
563
563
"on" , "off" , NULL );
564
564
break ;
565
565
case OPT_REPEAT :
566
566
ctl -> opt_repeat = set_opt_flag (ctl -> opt_repeat );
567
- ctl -> opt_rep_on = parse_switch (optarg , _ ("argument error" ),
567
+ ctl -> opt_rep_on = ul_parse_switch (optarg , _ ("argument error" ),
568
568
"on" , "off" , NULL );
569
569
break ;
570
570
case OPT_APPCURSORKEYS :
571
571
ctl -> opt_appcursorkeys = set_opt_flag (ctl -> opt_appcursorkeys );
572
- ctl -> opt_appck_on = parse_switch (optarg , _ ("argument error" ),
572
+ ctl -> opt_appck_on = ul_parse_switch (optarg , _ ("argument error" ),
573
573
"on" , "off" , NULL );
574
574
break ;
575
575
case OPT_LINEWRAP :
576
576
ctl -> opt_linewrap = set_opt_flag (ctl -> opt_linewrap );
577
- ctl -> opt_li_on = parse_switch (optarg , _ ("argument error" ),
577
+ ctl -> opt_li_on = ul_parse_switch (optarg , _ ("argument error" ),
578
578
"on" , "off" , NULL );
579
579
break ;
580
580
case OPT_DEFAULT :
@@ -598,32 +598,32 @@ static void parse_option(struct setterm_control *ctl, int ac, char **av)
598
598
break ;
599
599
case OPT_INVERSESCREEN :
600
600
ctl -> opt_inversescreen = set_opt_flag (ctl -> opt_inversescreen );
601
- ctl -> opt_invsc_on = parse_switch (optarg , _ ("argument error" ),
601
+ ctl -> opt_invsc_on = ul_parse_switch (optarg , _ ("argument error" ),
602
602
"on" , "off" , NULL );
603
603
break ;
604
604
case OPT_BOLD :
605
605
ctl -> opt_bold = set_opt_flag (ctl -> opt_bold );
606
- ctl -> opt_bo_on = parse_switch (optarg , _ ("argument error" ),
606
+ ctl -> opt_bo_on = ul_parse_switch (optarg , _ ("argument error" ),
607
607
"on" , "off" , NULL );
608
608
break ;
609
609
case OPT_HALF_BRIGHT :
610
610
ctl -> opt_halfbright = set_opt_flag (ctl -> opt_halfbright );
611
- ctl -> opt_hb_on = parse_switch (optarg , _ ("argument error" ),
611
+ ctl -> opt_hb_on = ul_parse_switch (optarg , _ ("argument error" ),
612
612
"on" , "off" , NULL );
613
613
break ;
614
614
case OPT_BLINK :
615
615
ctl -> opt_blink = set_opt_flag (ctl -> opt_blink );
616
- ctl -> opt_bl_on = parse_switch (optarg , _ ("argument error" ),
616
+ ctl -> opt_bl_on = ul_parse_switch (optarg , _ ("argument error" ),
617
617
"on" , "off" , NULL );
618
618
break ;
619
619
case OPT_REVERSE :
620
620
ctl -> opt_reverse = set_opt_flag (ctl -> opt_reverse );
621
- ctl -> opt_re_on = parse_switch (optarg , _ ("argument error" ),
621
+ ctl -> opt_re_on = ul_parse_switch (optarg , _ ("argument error" ),
622
622
"on" , "off" , NULL );
623
623
break ;
624
624
case OPT_UNDERLINE :
625
625
ctl -> opt_underline = set_opt_flag (ctl -> opt_underline );
626
- ctl -> opt_un_on = parse_switch (optarg , _ ("argument error" ),
626
+ ctl -> opt_un_on = ul_parse_switch (optarg , _ ("argument error" ),
627
627
"on" , "off" , NULL );
628
628
break ;
629
629
case OPT_STORE :
@@ -632,7 +632,7 @@ static void parse_option(struct setterm_control *ctl, int ac, char **av)
632
632
case OPT_CLEAR :
633
633
ctl -> opt_clear = set_opt_flag (ctl -> opt_clear );
634
634
if (optarg )
635
- ctl -> opt_cl_all = parse_switch (optarg , _ ("argument error" ),
635
+ ctl -> opt_cl_all = ul_parse_switch (optarg , _ ("argument error" ),
636
636
"all" , "rest" , NULL );
637
637
else
638
638
ctl -> opt_cl_all = 1 ;
@@ -667,7 +667,7 @@ static void parse_option(struct setterm_control *ctl, int ac, char **av)
667
667
break ;
668
668
case OPT_MSG :
669
669
ctl -> opt_msg = set_opt_flag (ctl -> opt_msg );
670
- ctl -> opt_msg_on = parse_switch (optarg , _ ("argument error" ),
670
+ ctl -> opt_msg_on = ul_parse_switch (optarg , _ ("argument error" ),
671
671
"on" , "off" , NULL );
672
672
break ;
673
673
case OPT_MSGLEVEL :
0 commit comments