go-video.sh: go to video mode from VGA text mode

This commit is contained in:
K. Lange 2018-11-01 21:11:56 +09:00
parent 33e29e2d21
commit 689cbd9cba

16
apps/go-video.sh Normal file
View File

@ -0,0 +1,16 @@
#!/bin/sh
# Start font server if freetype is available
if stat -Lq /usr/lib/libfreetype.so then font-server
if empty? "$1" then export WIDTH=1024 else export WIDTH="$1"
if empty? "$2" then export HEIGHT=768 else export HEIGHT="$2"
# Switch to graphics mode
set-resolution --initialize auto $WIDTH $HEIGHT
# Tell the terminal to pause input
killall -s USR2 terminal-vga
# Start the compositor
compositor