method

beep

Importance_0
v2_4_6 - Show latest stable - 0 notes - Class: IO
beep() public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
static VALUE
console_beep(VALUE io)
{
    rb_io_t *fptr;
    int fd;

    GetOpenFile(io, fptr);
    fd = GetWriteFD(fptr);
#ifdef _WIN32
    (void)fd;
    MessageBeep(0);
#else
    if (write(fd, "\a", 1) < 0)
        rb_sys_fail(0);
#endif
    return io;
}
Register or log in to add new notes.