News for hackers. Stuff that matters.
Re:Why I'm Tcl-Ish by sigjuice on Monday October 26, 2020 @09:21PM (#24903592)
Unfortunately, pexpect does not do everything. I use this scheme to have keyboard shortcuts for devices on the other of serial ports.

  spawn -open [open /dev/ttyUSB0 w+]
  interact {
      `u {send "uname\n"}
      `v {send "show-version\n"}
      `` exit
      # lots more
  }

I have looked into it a couple of times, but I haven't been able to figure out the pexpect equivalent.

There are no comments on this comment yet.