summaryrefslogtreecommitdiff
path: root/Kernel/run
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-05-15 21:40:41 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-05-15 21:40:41 +0200
commit3cba2a8a7872794516488ac5dfe240e946b1288d (patch)
treeabf359c90dbee15228f34669c7d5613d111e77f0 /Kernel/run
parentdcf490ecab4fea2eb2cb80508ae68d77c328739d (diff)
downloadserenity-3cba2a8a7872794516488ac5dfe240e946b1288d.zip
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.
Diffstat (limited to 'Kernel/run')
-rwxr-xr-xKernel/run9
1 files changed, 6 insertions, 3 deletions
diff --git a/Kernel/run b/Kernel/run
index 93a9cd7554..ee0532bd7c 100755
--- a/Kernel/run
+++ b/Kernel/run
@@ -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