~/talk

Terminal Emulator Basics in Golang

Talkat Conf42 Golang 2021 · on Thursday, 2021-06-24· [go]
linkedin:ishuah
slides:none on file

Covers the Unix TTY subsystem history and shows a working Go terminal emulator that attaches bash to a pseudo‑TTY using the pty package, writes keystrokes to the pty master, and reads output back into a rotating 10-line buffer. Implements two goroutines for input and UI refresh (about 100ms refresh), handles Enter and rune callbacks, and demonstrates running foreground programs. Works but feels glitchy and deliberately omits ANSI escape parsing, full special‑key handling and signal interrupts.

AI-written summary · about

  1. 0:00Terminal emulator basics
  2. 1:17Linux TTY history
  3. 8:25Basic terminal in Go
  4. 17:33Reading keyboard input
  5. 27:27Improving terminal output
  6. 40:59Limitations and next steps
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.