FolkComputer / folk

🎁 Physical computing system.
https://folk.computer
Apache License 2.0
77 stars 4 forks source link

Proper escaping of keyboard keys; change esc-restart modifiers #77

Closed zspotter closed 1 year ago

zspotter commented 1 year ago
  1. Escape words in subst by wrapping them in a list! I took this tip from the "Generating Scripts and Lists" section of https://wiki.tcl-lang.org/page/subst

  2. Change the esc-restart key from plain ESC to alt-ESC, so you can use the escape key in vim terminals.

osnr commented 1 year ago

I can't test this here -- will do soon -- but Alt-Esc seems reasonable to me, and the list escaping seems OK (although I think that in general apply is more elegant than subst, even though it involves some repetition)

(anyway, the cleanest thing would be to migrate keyboard to a virtual program/subprocess and just use statement sharing like we did with display/camera/apriltag, so this may all be moot in the long run. that might also be our excuse to finally introduce event statements)