SchOS/kernel/sys
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Nexoniarz 4a7165c951 X gets a VT: keyboard, terminal switching, and a way out
Xorg uses VTs only when stat("/dev/tty0") reports Linux's tty major 4.
SchOS's terminals sit under major 1, so X ran on no VT at all: the console
kept drawing over it, Ctrl+Alt+F-keys did nothing, and nothing ended the
session. stat now reports terminals under Linux's numbers.

startx picks the VT only when uname says Linux, so root's xserverrc passes
the current one itself. An xorg.conf.d file names X's input devices, since
Alpine's Xorg looks them up through udev and SchOS has none yet.

Alt+F1..F6 and Ctrl+Alt+F1..F6 now switch terminals as on Linux, alongside
the settable chord. USB keyboards gain arrows, Home/End/PgUp/PgDn/Ins/Del
and the switch keys, which the PS/2 path always had.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01S1giNvrHTrPMPw7V6x1kQ4
2026-10-24 21:45:50 +02:00
..
linux_abi.c include: one folder per subsystem, and includes that name it 2026-10-23 15:05:12 +02:00
sys_compat.c epoll, eventfd, timerfd, signalfd 2026-10-24 10:59:52 +02:00
sys_event.c kernel: HTTPS through wget, half-close, and /proc/<pid>/fd 2026-10-24 20:28:03 +02:00
sys_fs.c X gets a VT: keyboard, terminal switching, and a way out 2026-10-24 21:45:50 +02:00
sys_mem.c kernel: chroot, #! scripts, rename and mmap as apk needs them 2026-10-24 15:28:32 +02:00
sys_net.c kernel: HTTPS through wget, half-close, and /proc/<pid>/fd 2026-10-24 20:28:03 +02:00
sys_poll.c kernel: HTTPS through wget, half-close, and /proc/<pid>/fd 2026-10-24 20:28:03 +02:00
sys_proc.c include: one folder per subsystem, and includes that name it 2026-10-23 15:05:12 +02:00
sys_sig.c signals: a blocked signal stays pending instead of killing 2026-10-24 10:59:52 +02:00
sys_time.c kernel: timers that fire, raw ping, and the sockets X needs 2026-10-24 19:44:10 +02:00
syscall.c include: one folder per subsystem, and includes that name it 2026-10-23 15:05:12 +02:00
table.inc kernel: timers that fire, raw ping, and the sockets X needs 2026-10-24 19:44:10 +02:00