Use \007 to make the system beep. Note "\007" works, but not '\007'.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
return REG_AH(outreg);
}
-void beep()
-{
- REG_AH(inreg) = 0x0E;
- REG_AL(inreg) = 0x07;
- REG_BH(inreg) = 0;
- __intcall(0x10, &inreg, &outreg);
-}
-
void scrollupwindow(char top, char left, char bot, char right, char attr,
char numlines)
{
#define CSI "\e["
+/* Beep: "" are required, not '' */
+static inline beep()
+{
+ return fputs("\007", stdout);
+}
+
/* BIOS Assisted output routines */
void cswprint(const char *str, char attr, char left);
unsigned char sleep(unsigned int msec); // Sleep for specified time
-void beep(); // A Bell
-
unsigned char checkkbdbuf(); // Check to see if there is kbd buffer is non-empty?
static inline void clearkbdbuf() // Clear the kbd buffer (how many chars removed?)