Merged from sys/dev/syscons/scterm-sc.c revison 1.15.
This commit is contained in:
parent
5346e77648
commit
7dbc5c43d4
@ -628,7 +628,8 @@ scterm_scan_esc(scr_stat *scp, term_stat *tcp, u_char c)
|
||||
case 'B': /* set bell pitch and duration */
|
||||
if (tcp->num_param == 2) {
|
||||
scp->bell_pitch = tcp->param[0];
|
||||
scp->bell_duration = tcp->param[1];
|
||||
scp->bell_duration =
|
||||
(tcp->param[1] * hz + 99) / 100;
|
||||
}
|
||||
break;
|
||||
|
||||
|
@ -628,7 +628,8 @@ scterm_scan_esc(scr_stat *scp, term_stat *tcp, u_char c)
|
||||
case 'B': /* set bell pitch and duration */
|
||||
if (tcp->num_param == 2) {
|
||||
scp->bell_pitch = tcp->param[0];
|
||||
scp->bell_duration = tcp->param[1];
|
||||
scp->bell_duration =
|
||||
(tcp->param[1] * hz + 99) / 100;
|
||||
}
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user