SchOS/kernel/dev
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
..
audio.c include: one folder per subsystem, and includes that name it 2026-10-23 15:05:12 +02:00
bio.c include: one folder per subsystem, and includes that name it 2026-10-23 15:05:12 +02:00
blkdev.c include: one folder per subsystem, and includes that name it 2026-10-23 15:05:12 +02:00
cdev.c include: one folder per subsystem, and includes that name it 2026-10-23 15:05:12 +02:00
dbg.c include: one folder per subsystem, and includes that name it 2026-10-23 15:05:12 +02:00
device.c include: one folder per subsystem, and includes that name it 2026-10-23 15:05:12 +02:00
disk.c include: one folder per subsystem, and includes that name it 2026-10-23 15:05:12 +02:00
dmi.c include: one folder per subsystem, and includes that name it 2026-10-23 15:05:12 +02:00
fb.c X on the console: /dev/tty0, a palette, and startx that works 2026-10-24 19:44:10 +02:00
gfx.c include: one folder per subsystem, and includes that name it 2026-10-23 15:05:12 +02:00
ide.c include: one folder per subsystem, and includes that name it 2026-10-23 15:05:12 +02:00
input.c kernel: HTTPS through wget, half-close, and /proc/<pid>/fd 2026-10-24 20:28:03 +02:00
irq.c irq: turn a PS/2 line over when its device waits and nothing comes 2026-10-24 11:10:29 +02:00
kbd.c X gets a VT: keyboard, terminal switching, and a way out 2026-10-24 21:45:50 +02:00
keymap.c include: one folder per subsystem, and includes that name it 2026-10-23 15:05:12 +02:00
mouse.c irq: turn a PS/2 line over when its device waits and nothing comes 2026-10-24 11:10:29 +02:00
netuser.c include: one folder per subsystem, and includes that name it 2026-10-23 15:05:12 +02:00
pci.c include: one folder per subsystem, and includes that name it 2026-10-23 15:05:12 +02:00
pciuser.c include: one folder per subsystem, and includes that name it 2026-10-23 15:05:12 +02:00
procfs.c include: one folder per subsystem, and includes that name it 2026-10-23 15:05:12 +02:00
ramdisk.c SCFF: the live root ships compressed, with Xorg and Window Maker 2026-10-24 21:17:31 +02:00
text.c include: one folder per subsystem, and includes that name it 2026-10-23 15:05:12 +02:00
ttf.c include: one folder per subsystem, and includes that name it 2026-10-23 15:05:12 +02:00
uart.c include: one folder per subsystem, and includes that name it 2026-10-23 15:05:12 +02:00
vt.c input, fb, vt, sysfs: the kernel calls Xorg makes 2026-10-24 12:06:04 +02:00