1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 00:07:35 +00:00

Kernel: Add a beep() syscall that beeps the PC speaker.

Hook this up in Terminal so that the '\a' character generates a beep.
Finally emit an '\a' character in the shell line editing code when
backspacing at the start of the line.
This commit is contained in:
Andreas Kling 2019-05-15 21:40:41 +02:00
parent dcf490ecab
commit 3cba2a8a78
14 changed files with 82 additions and 25 deletions

View file

@ -14,7 +14,8 @@ elif [ "$1" = "qn" ]; then
$SERENITY_EXTRA_QEMU_ARGS \
-device e1000 \
-kernel kernel \
-hda _fs_contents
-hda _fs_contents \
-soundhw pcspk
elif [ "$1" = "qtap" ]; then
# ./run qtap: qemu with tap
sudo $SERENITY_QEMU_BIN -s -m $ram_size \
@ -23,7 +24,8 @@ elif [ "$1" = "qtap" ]; then
-netdev tap,ifname=tap0,id=br0 \
-device e1000,netdev=br0 \
-kernel kernel \
-hda _fs_contents
-hda _fs_contents \
-soundhw pcspk
else
# ./run: qemu with user networking
$SERENITY_QEMU_BIN -s -m $ram_size \
@ -32,6 +34,7 @@ else
-netdev user,id=breh,hostfwd=tcp:127.0.0.1:8888-192.168.5.2:8888 \
-device e1000,netdev=breh \
-kernel kernel \
-hda _fs_contents
-hda _fs_contents \
-soundhw pcspk
fi