b4b1c5169d
Some time ago I started working on a library called libteken, which is terminal emulator. It does not buffer any screen contents, but only keeps terminal state, such as cursor position, attributes, etc. It should implement all escape sequences that are implemented by the cons25 terminal emulator, but also a fair amount of sequences that are present in VT100 and xterm. A lot of random notes, which could be of interest to users/developers: - Even though I'm leaving the terminal type set to `cons25', users can do experiments with placing `xterm-color' in /etc/ttys. Because we only implement a subset of features of xterm, this may cause artifacts. We should consider extending libteken, because in my opinion xterm is the way to go. Some missing features: - Keypad application mode (DECKPAM) - Character sets (SCS) - libteken is filled with a fair amount of assertions, but unfortunately we cannot go into the debugger anymore if we fail them. I've done development of this library almost entirely in userspace. In sys/dev/syscons/teken there are two applications that can be helpful when debugging the code: - teken_demo: a terminal emulator that can be started from a regular xterm that emulates a terminal using libteken. This application can be very useful to debug any rendering issues. - teken_stress: a stress testing application that emulates random terminal output. libteken has literally survived multiple terabytes of random input. - libteken also includes support for UTF-8, but unfortunately our input layer and font renderer don't support this. If users want to experiment with UTF-8 support, they can enable `TEKEN_UTF8' in teken.h. If you recompile your kernel or the teken_demo application, you can hold some nice experiments. - I've left PC98 the way it is right now. The PC98 platform has a custom syscons renderer, which supports some form of localised input. Maybe we should port PC98 to libteken by the time syscons supports UTF-8? - I've removed the `dumb' terminal emulator. It has been broken for years. It hasn't survived the `struct proc' -> `struct thread' conversion. - To prevent confusion among people that want to hack on libteken: unlike syscons, the state machines that parse the escape sequences are machine generated. This means that if you want to add new escape sequences, you have to add an entry to the `sequences' file. This will cause new entries to be added to `teken_state.h'. - Any rendering artifacts that didn't occur prior to this commit are by accident. They should be reported to me, so I can fix them. Discussed on: current@, hackers@ Discussed with: philip (at 25C3)
157 lines
6.2 KiB
Plaintext
157 lines
6.2 KiB
Plaintext
# This file tells config what files go into building a kernel,
|
|
# files marked standard are always included.
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
# The long compile-with and dependency lines are required because of
|
|
# limitations in config: backslash-newline doesn't work in strings, and
|
|
# dependency lines other than the first are silently ignored.
|
|
#
|
|
#
|
|
|
|
font.h optional sc \
|
|
compile-with "uudecode < /usr/share/syscons/fonts/${SC_DFLT_FONT}-8x16.fnt && file2c 'u_char dflt_font_16[16*256] = {' '};' < ${SC_DFLT_FONT}-8x16 > font.h && uudecode < /usr/share/syscons/fonts/${SC_DFLT_FONT}-8x14.fnt && file2c 'u_char dflt_font_14[14*256] = {' '};' < ${SC_DFLT_FONT}-8x14 >> font.h && uudecode < /usr/share/syscons/fonts/${SC_DFLT_FONT}-8x8.fnt && file2c 'u_char dflt_font_8[8*256] = {' '};' < ${SC_DFLT_FONT}-8x8 >> font.h" \
|
|
no-obj no-implicit-rule before-depend \
|
|
clean "font.h ${SC_DFLT_FONT}-8x14 ${SC_DFLT_FONT}-8x16 ${SC_DFLT_FONT}-8x8"
|
|
#
|
|
|
|
crypto/blowfish/bf_enc.c optional crypto | ipsec
|
|
crypto/des/des_enc.c optional crypto | ipsec | netsmb
|
|
dev/bm/if_bm.c optional bm powermac
|
|
dev/adb/adb_bus.c optional adb
|
|
dev/adb/adb_kbd.c optional adb
|
|
dev/adb/adb_mouse.c optional adb
|
|
dev/adb/adb_hb_if.m optional adb
|
|
dev/adb/adb_if.m optional adb
|
|
dev/cfi/cfi_bus_lbc.c optional cfi
|
|
dev/fb/fb.c optional sc
|
|
dev/hwpmc/hwpmc_powerpc.c optional hwpmc
|
|
dev/kbd/kbd.c optional sc
|
|
dev/ofw/openfirm.c optional aim
|
|
dev/ofw/openfirmio.c optional aim
|
|
dev/ofw/ofw_bus_if.m optional aim
|
|
dev/ofw/ofw_if.m optional aim
|
|
dev/ofw/ofw_bus_subr.c optional aim
|
|
dev/ofw/ofw_console.c optional aim
|
|
dev/ofw/ofw_disk.c optional ofwd aim
|
|
dev/ofw/ofw_standard.c optional aim
|
|
dev/powermac_nvram/powermac_nvram.c optional powermac_nvram powermac
|
|
dev/quicc/quicc_bfe_ocp.c optional quicc mpc85xx
|
|
dev/scc/scc_bfe_macio.c optional scc powermac
|
|
dev/syscons/scgfbrndr.c optional sc
|
|
dev/syscons/scterm-teken.c optional sc
|
|
dev/syscons/scvtb.c optional sc
|
|
dev/syscons/teken/teken.c optional sc
|
|
dev/tsec/if_tsec.c optional tsec
|
|
dev/tsec/if_tsec_ocp.c optional tsec mpc85xx
|
|
dev/uart/uart_bus_ocp.c optional uart mpc85xx
|
|
dev/uart/uart_cpu_powerpc.c optional uart
|
|
kern/syscalls.c optional ktr
|
|
libkern/ashldi3.c standard
|
|
libkern/ashrdi3.c standard
|
|
libkern/bcmp.c standard
|
|
libkern/cmpdi2.c standard
|
|
libkern/divdi3.c standard
|
|
libkern/ffs.c standard
|
|
libkern/ffsl.c standard
|
|
libkern/fls.c standard
|
|
libkern/flsl.c standard
|
|
libkern/lshrdi3.c standard
|
|
libkern/memset.c standard
|
|
libkern/moddi3.c standard
|
|
libkern/qdivrem.c standard
|
|
libkern/ucmpdi2.c standard
|
|
libkern/udivdi3.c standard
|
|
libkern/umoddi3.c standard
|
|
powerpc/aim/clock.c optional aim
|
|
powerpc/aim/copyinout.c optional aim
|
|
powerpc/aim/interrupt.c optional aim
|
|
powerpc/aim/locore.S optional aim no-obj
|
|
powerpc/aim/machdep.c optional aim
|
|
powerpc/aim/mmu_oea.c optional aim
|
|
powerpc/aim/mp_cpudep.c optional aim smp
|
|
powerpc/aim/nexus.c optional aim
|
|
powerpc/aim/ofw_machdep.c optional aim
|
|
powerpc/aim/ofwmagic.S optional aim
|
|
powerpc/aim/swtch.S optional aim
|
|
powerpc/aim/trap.c optional aim
|
|
powerpc/aim/uio_machdep.c optional aim
|
|
powerpc/aim/uma_machdep.c optional aim
|
|
powerpc/aim/vm_machdep.c optional aim
|
|
powerpc/booke/clock.c optional e500
|
|
powerpc/booke/copyinout.c optional e500
|
|
powerpc/booke/interrupt.c optional e500
|
|
powerpc/booke/locore.S optional e500 no-obj
|
|
powerpc/booke/machdep.c optional e500
|
|
powerpc/booke/pmap.c optional e500
|
|
powerpc/booke/support.S optional e500
|
|
powerpc/booke/swtch.S optional e500
|
|
powerpc/booke/trap.c optional e500
|
|
powerpc/booke/uio_machdep.c optional e500
|
|
powerpc/booke/vm_machdep.c optional e500
|
|
powerpc/fpu/fpu_add.c optional fpu_emu
|
|
powerpc/fpu/fpu_compare.c optional fpu_emu
|
|
powerpc/fpu/fpu_div.c optional fpu_emu
|
|
powerpc/fpu/fpu_emu.c optional fpu_emu
|
|
powerpc/fpu/fpu_explode.c optional fpu_emu
|
|
powerpc/fpu/fpu_implode.c optional fpu_emu
|
|
powerpc/fpu/fpu_mul.c optional fpu_emu
|
|
powerpc/fpu/fpu_sqrt.c optional fpu_emu
|
|
powerpc/fpu/fpu_subr.c optional fpu_emu
|
|
powerpc/mpc85xx/lbc.c optional mpc85xx
|
|
powerpc/mpc85xx/mpc85xx.c optional mpc85xx
|
|
powerpc/mpc85xx/nexus.c optional mpc85xx
|
|
powerpc/mpc85xx/ocpbus.c optional mpc85xx
|
|
powerpc/mpc85xx/opic.c optional mpc85xx
|
|
powerpc/mpc85xx/pci_ocp.c optional pci mpc85xx
|
|
powerpc/ofw/ofw_pcibus.c optional pci aim
|
|
powerpc/ofw/ofw_pcib_pci.c optional pci aim
|
|
powerpc/ofw/ofw_syscons.c optional sc aim
|
|
powerpc/powermac/ata_kauai.c optional powermac ata
|
|
powerpc/powermac/ata_macio.c optional powermac ata
|
|
powerpc/powermac/ata_dbdma.c optional powermac ata
|
|
powerpc/powermac/dbdma.c optional powermac pci
|
|
powerpc/powermac/grackle.c optional powermac pci
|
|
powerpc/powermac/hrowpic.c optional powermac pci
|
|
powerpc/powermac/macio.c optional powermac pci
|
|
powerpc/powermac/openpic_macio.c optional powermac pci
|
|
powerpc/powermac/pswitch.c optional powermac pswitch
|
|
powerpc/powermac/uninorth.c optional powermac pci
|
|
powerpc/powermac/cuda.c optional powermac cuda
|
|
powerpc/powermac/pmu.c optional powermac pmu
|
|
powerpc/powermac/macgpio.c optional powermac pci
|
|
powerpc/powerpc/atomic.S standard
|
|
powerpc/powerpc/autoconf.c standard
|
|
powerpc/powerpc/bcopy.c standard
|
|
powerpc/powerpc/bus_machdep.c standard
|
|
powerpc/powerpc/busdma_machdep.c standard
|
|
powerpc/powerpc/copystr.c standard
|
|
powerpc/powerpc/cpu.c standard
|
|
powerpc/powerpc/db_disasm.c optional ddb
|
|
powerpc/powerpc/db_hwwatch.c optional ddb
|
|
powerpc/powerpc/db_interface.c optional ddb
|
|
powerpc/powerpc/db_trace.c optional ddb
|
|
powerpc/powerpc/elf_machdep.c standard
|
|
powerpc/powerpc/fpu.c optional aim
|
|
powerpc/powerpc/fuswintr.c standard
|
|
powerpc/powerpc/gdb_machdep.c optional gdb
|
|
powerpc/powerpc/in_cksum.c optional inet
|
|
powerpc/powerpc/intr_machdep.c standard
|
|
powerpc/powerpc/mem.c optional mem
|
|
powerpc/powerpc/mmu_if.m standard
|
|
powerpc/powerpc/mp_machdep.c optional smp
|
|
powerpc/powerpc/openpic.c standard
|
|
powerpc/powerpc/pic_if.m standard
|
|
powerpc/powerpc/pmap_dispatch.c standard
|
|
powerpc/powerpc/sc_machdep.c optional sc
|
|
powerpc/powerpc/setjmp.S standard
|
|
powerpc/powerpc/sigcode.S standard
|
|
powerpc/powerpc/stack_machdep.c optional ddb | stack
|
|
powerpc/powerpc/suswintr.c standard
|
|
powerpc/powerpc/syncicache.c standard
|
|
powerpc/powerpc/sys_machdep.c standard
|
|
powerpc/psim/iobus.c optional psim
|
|
powerpc/psim/ata_iobus.c optional ata psim
|
|
powerpc/psim/openpic_iobus.c optional psim
|
|
powerpc/psim/uart_iobus.c optional uart psim
|