20:16:25 hmm.. is there any utility that'd take an input file with ^Hs and the like and just render the final output line? 20:16:36 not exactly stripping them as much as just saving the end result 20:16:55 e.g. a line 'foo^H^H^Hbar' would just result in 'bar' 20:17:00 in the output 20:18:03 ul(1), but perhaps that only processes it '^H_' 20:19:12 cat(1) 20:19:34 I just created a file /tmp/foo with "foo^H^H^Hbar" and cat /tmp/foo printed bar. 20:20:08 ah, never mind. Script shows the control chars still there. 20:20:19 just the result I saw on the terminal was the final. 20:23:20 col(1) 20:24:33 specifically, col -b 20:25:47 aha! 20:25:47 thanks 20:26:59 i'm trying to track down a panic in ahci... it's prior to any dump devices being available, so i'm trying to log the kmdb session to save the output 20:27:15 it may do some additional processing you don't want but if the only odd control chars are backspace you should be good. 20:28:09 jbk: I have, in the distant past, used ttyrec for that 20:28:15 usually used to record nethack games, but... 20:28:46 it's a VM, so I'm resorting to minicom to access the serial port exposed as a socket 20:30:56 yeah, ttyrec has its own pty, and records input/output, like a tty-oriented script(1) 20:31:13 so where mdb has paging, etc, etc, it can be your friend in a pinch 20:34:57 jbk: You might enjoy picocom 20:35:41 What I recall is that minicom was a visual mode thing, whereas picocom just attaches the serial port to your existing terminal without doing its own layout 20:39:47 oh yes, that's a better solution 22:00:15 Oh, also, if it's just a UNIX socket, sercons might help -- https://github.com/jclulow/vmware-sercons 22:00:51 It does even less than picocom haha 22:32:40 I endorse sercons for VMware tty sockets.