## @(#) created by arne
#######################
#
# the segfault prompt.. 
# came up with this idea when rxvt core-dumped in the themes-directory
#
needmod number-hex
needmod themecompat
XFONT="-schumacher-clean-medium-r-normal--11-*-*-75-c-*-iso646.1991-irv"
if [ -z "`echo $HEXNUMBER|cut -c2`" ];then
	SEGFAULTNUMBER=0$HEXNUMBER
fi

TITLE="0f00:`echo $SEGFAULTNUMBER`8f"

if [ "$SHLVL" = 1 ];then
echo "Kernel panic: user logged in"
else
WELCOMEMESSAGE="Unable to handle kernel paging request at virtual address f15e97cc
current->tss.cr3 = 0062d000, %cr3 = 0062d000
*pde = 00000000
Oops: 0002
CPU:    0
EIP:    0010:[oops:_oops+16/3868]
EFLAGS: 00010212
eax: 315e97cc   ebx: 003a6f80   ecx: 001be77b   edx: 00237c0c
esi: 00000000   edi: bffffdb3   ebp: 00589f90   esp: 00589f8c
ds: 0018   es: 0018   fs: 002b   gs: 002b   ss: 0018
Process oops_test (pid: 3374, process nr: 21, stackpage=00589000)
Stack: 315e97cc 00589f98 0100b0b4 bffffed4 0012e38e 00240c64 003a6f80 00000001
       00000000 00237810 bfffff00 0010a7fa 00000003 00000001 00000000 bfffff00
       bffffdb3 bffffed4 ffffffda 0000002b 0007002b 0000002b 0000002b 00000036
Call Trace: [oops:_oops_ioctl+48/80] [_sys_ioctl+254/272] [_system_call+82/128]
Code: c7 00 05 00 00 00 eb 08 90 90 90 90 90 90 90 90 89 ec 5d c3
"
fi

PS1="Segmentation fault
$b"

unset SEGFAULTNUMBER
