comparison src/msdos.c @ 7667:bae9c0fa1c2f

(do_visible_bell): Renamed from visible_bell to avoid potential conflict with variable of the same name. Caller changed. (internal_flush): Code for audio bell inserted.
author Richard M. Stallman <rms@gnu.org>
date Tue, 24 May 1994 19:50:04 +0000
parents 13a977e6777a
children da18793f532d
comparison
equal deleted inserted replaced
7666:13a977e6777a 7667:bae9c0fa1c2f
762 /* Flash the screen as a substitute for BEEPs. */ 762 /* Flash the screen as a substitute for BEEPs. */
763 763
764 static unsigned char _xorattr; 764 static unsigned char _xorattr;
765 765
766 static void 766 static void
767 visible_bell (xorattr) 767 do_visible_bell (xorattr)
768 unsigned char xorattr; 768 unsigned char xorattr;
769 { 769 {
770 _xorattr = xorattr; 770 _xorattr = xorattr;
771 asm volatile 771 asm volatile
772 (" pushl %eax 772 (" pushl %eax
841 case 'A': 841 case 'A':
842 ScreenAttrib = *cp++; 842 ScreenAttrib = *cp++;
843 count -= 3; 843 count -= 3;
844 break; 844 break;
845 case 'B': 845 case 'B':
846 visible_bell (*cp++); 846 do_visible_bell (*cp++);
847 count -= 3; 847 count -= 3;
848 break; 848 break;
849 case 'C': 849 case 'C':
850 ScreenClear (); 850 ScreenClear ();
851 x = y = 0; 851 x = y = 0;
870 break; 870 break;
871 default: 871 default:
872 count -= 2; 872 count -= 2;
873 } 873 }
874 break; 874 break;
875 case 7:
876 write (1, "\007", 1);
877 count--;
878 break;
875 case 8: 879 case 8:
876 x--; 880 x--;
877 count--; 881 count--;
878 break; 882 break;
879 case 13: 883 case 13: