00:03:14 oh I see https://stackoverflow.com/a/33509850/322020 00:06:56 I've always assumed ttyrec is literally just all the output (including control characters) + timing metadata. 00:10:08 yep 00:11:05 but I don't want to get in the way of secure shell job 00:12:21 I'm thinking of just flooding the chrome with js commands to read the Screen and then convert these frames to a fake ttyrec session recording 00:13:35 -!- Lord_of_Life has quit (Ping timeout: 264 seconds). 00:13:41 -!- Lord_of_Life_ has joined. 00:14:07 I can also obtain the main thread current source code line number to then append at the bottom of the screen -- it will change quickly but should look fun 00:14:46 I wouldn't want to be in the business of figuring out the optimal sequence of codes to send to make one screen-grab look like another. 00:14:59 -!- Lord_of_Life_ has changed nick to Lord_of_Life. 00:15:26 it looks trivial though https://nethackwiki.com/wiki/Ttyrec 00:15:32 at least as I understood 00:15:54 The format is trivial, but those "frames" aren't frames of screen, they're just chunks of control codes. 00:15:57 I'll just position to (0,0) every time and print the whole screen with \n between lines 00:16:01 Ugh. 00:16:26 but I won't record the control codes -- I get the chars from DOM 00:16:40 and the only control code I'm going to use is to go back to (0,0) 00:16:55 at least I imagine it's the only one I need 00:16:59 Yes, that's what I mean, the process of converting two screen-grabs of characters to *sensible* control codes that change one to the other isn't trivial. 00:17:06 If you're not going to bother, then sure. 00:17:06 and then there are some converters from ttyrec to gif 00:18:29 it's gonna use much less resources than ffmpeg screengrab 00:19:08 I used to have a serial terminal as an under-the-table "computer" for web browsing and suchlike, and you could see that *something* in the stack (screen? lynx?) had actually thought about the problem, because when you paged down, if there was a big chunk repeated in a different position, it would actually scroll that into the right orientation using the sub-rectangle scroll things, and then 00:19:10 redraw the surroudings. 00:22:33 Isn't this all JS? Surely you can just monkey-patch in a hook somewhere in hterm to give you a copy of the input stream it's interpreting? Like, just a hterm.Terminal.IO wrapper that delegates all calls but also writes to a ttyrec. 00:24:04 Or replace the hterm.Terminal.interpret function of the live object. 00:24:11 -!- sprout has joined. 00:24:15 maybe 00:24:43 but I would also like to have recording in some text editor comprehensible format 00:24:55 so I could cut the things out 00:25:25 -!- oerjan has joined. 00:25:42 Well, okay, that's different, if you intend to do "video editing" on it. 00:28:49 -!- sprout has quit (Ping timeout: 252 seconds). 00:29:06 somehow the umoria game sometimes corrupts the save file when I drop the session; already implemented the handling of the file corruption dialog to :escape, rm game.sav\n, :up, :up, :enter, lol 00:29:58 it's a bit scary to issue the commands in the shell session; maybe I should create a separate user 00:38:24 [[Blood32]] https://esolangs.org/w/index.php?diff=88964&oldid=88922 * PixelatedStarfish * (+57) /* External resources */ 00:47:34 [[Suscript]] M https://esolangs.org/w/index.php?diff=88965&oldid=87980 * Not applicable * (-25) update github url 00:59:47 -!- sprock has joined. 01:15:09 hm, that wiki page does not explain what is len 01:15:22 is it byte size or 01:15:58 ok, I'll suppose it's a byte size just for file format purpose 01:19:00 The C example does pretty much deobfuscate it. 01:19:25 (`fread(data, 1, len, stdin)` → len is in bytes.) 01:28:01 funny how you try to google terminal recording in a straight forward way you find nothing except two or three python tools that don't work in the end 01:28:20 and totally miss the whole list of tools to try from this wiki page 01:57:15 hm, ipbt does not play my ttyrec properly; shows only the first 4 lines of screen are filled with some pieces of my framers 01:57:18 -!- dutch has quit (Quit: WeeChat 3.3). 01:57:29 *frames 02:02:31 oh, what is ^M? should I use it instead of \n? 02:04:23 ok it's 13 02:08:17 -!- dutch has joined. 02:09:37 looks like in someone's nethack session every line ends with \r even if the next line is positioned with control code 02:10:44 https://dpaste.org/6YkN/slim you can see it's 0d before the 1d control code, hm 02:11:01 (the 5th line of the second dump) 02:13:21 I'll suppose I have to position every line 02:38:00 -!- archenoth has joined. 02:40:54 -!- Oshawott has quit (Ping timeout: 268 seconds). 02:52:31 ok so: 1. ipbt can't utf-8 2. jettyplay does not run on modern java 3. ttyplay needs clean screen at start and does not clean after itself on ^C 02:52:59 ^ summary on ttyrec players 03:00:56 Which features do you need? (The other alternative might be writing your own one?) 03:02:10 4. termrec cleans after itself but not before, so "clear && termplay rec.ttyrec" seems to work! but I guess my ttyrec is still not fully valid, need to clean the lines from previous frame somehow -- I wonder if there is any command to clean the whole screen or should I rewrite with spaces explicitely 03:02:31 -!- sprout has joined. 03:03:10 zzo38 the goal is to have a handy ttyrec preview in terminal, then I'll convert it to gif with some other tools, didn't start yet, need to giure out to generate proper ttyrec files 03:07:24 -!- sprout has quit (Ping timeout: 258 seconds). 03:08:09 ipbt is handy in the way that I can move forward and backward with < >, but it can't utf-8; not that I need it much but the first frame of my recording includes it because my it's in my ssh motd 03:17:30 I now wonder how this works https://dpaste.org/E04v/slim between "--More--" and "------" there is stuff that should clean the whole screen, but I have no idea what is it starting with bf 18... 03:18:33 oh wait, it's just the next header 03:19:10 -!- sprout has joined. 03:23:43 -!- sprout has quit (Ping timeout: 252 seconds). 03:23:53 so 1b 5b 48 1b 5b 4b 1b 5b 48 1b 5b 32 4a 1b 5b 48 must clean the screen, I wonder where it's documented 03:24:36 terminal escape codes? 03:25:34 maybe this https://www.csie.ntu.edu.tw/~r92094/c++/VT100.html 03:26:13 yup. 03:26:15 https://en.wikipedia.org/wiki/ANSI_escape_code 03:26:20 here's the documentation for that. 03:26:47 but what's the purpose of [K before [2J 03:28:02 good question, I dunno. 03:35:21 -!- oerjan has quit (Quit: Nite). 03:36:36 wow, this recording thing running in separate thread appeared to be useful immediately to debug the errors; for example, if I press Esc and then immediately "rm game.sav\n", the "r" is lost because the game didn't yet exit -- it was too fast so I could not see it until I replay it with ipbt 04:03:22 -!- sprout has joined. 04:08:01 -!- sprout has quit (Ping timeout: 245 seconds). 04:38:54 -!- sprout has joined. 04:39:56 https://unsteadyhoneydewrelationalmodel.nakilon.repl.co/ 04:40:20 I want some easier to use html pastebin ( and with shorter urls 04:40:57 oh probably I could override that subdomain, still repl.it is kind of overkill 04:41:48 so you can see here it created a character and ran into someone, ending with 04:42:07 "The Mean-Looking Mercenary hits you." (RuntimeError) 04:44:01 -!- sprout has quit (Ping timeout: 252 seconds). 05:10:25 btw the termrec author has a font if anyone is interested http://angband.pl/font/tinyfont.html 05:11:34 -!- sprout has joined. 05:15:49 -!- sprout has quit (Ping timeout: 258 seconds). 06:22:40 -!- Sgeo has quit (Read error: Connection reset by peer). 06:30:06 -!- b_jonas has quit (Remote host closed the connection). 07:00:34 -!- ski_ has joined. 07:02:17 -!- olsner_ has joined. 07:09:50 -!- Franciman has quit (Ping timeout: 260 seconds). 07:09:50 -!- j-bot has quit (Ping timeout: 260 seconds). 07:09:50 -!- ski has quit (Ping timeout: 260 seconds). 07:09:50 -!- craigo[m] has quit (Ping timeout: 260 seconds). 07:09:50 -!- olsner has quit (Ping timeout: 260 seconds). 07:09:50 -!- fizzie has quit (Ping timeout: 260 seconds). 07:10:21 -!- Franciman has joined. 07:13:07 -!- fizzie has joined. 07:18:29 -!- craigo[m] has joined. 07:18:29 -!- imode has quit (Ping timeout: 258 seconds). 07:26:49 -!- sprout has joined. 08:09:17 -!- hendursa1 has joined. 08:12:45 -!- hendursaga has quit (Ping timeout: 276 seconds). 08:51:17 -!- archenoth has quit (Read error: Connection reset by peer). 08:55:10 -!- archenoth has joined. 09:19:01 -!- wib_jonas has joined. 09:22:03 nakilon: unix terminals have this feature where in the output they insert a \r before a \n by default, unless you opt out of that using tcsetattr. this happens even in virtual terminals, but only at the deepest erminal layer, eg. if you forward terminal output with ssh, then the translation is done in the virtual terminal on the server, and the ssh 09:22:03 client disables these transformations on the terminal on the client and no longer knows about most of the underlying terminal modes on the server. 09:22:40 nakilon: in the other direction, in terminal input (eg. from keyboard), \r is transformed to a \n by default, unless you disable that with tcsetattr. 09:24:05 if there is any command to clean the whole screen => on vt-102-like terminals, "\e[H\e[J", otherwise ask terminfo how to do it 09:27:30 if you want an overview of escape sequences on vt-102-like modern terminals, see the manuals urxvt(7) http://pod.tst.eu/http://cvs.schmorp.de/rxvt-unicode/doc/rxvt.7.pod#Escape_Sequences , console_codes(4) https://man7.org/linux/man-pages/man4/console_codes.4.html , screen(1) https://man7.org/linux/man-pages/man1/screen.1.html#THE_VIRTUAL_TERMINAL 09:27:31 ; 09:31:55 for historical reasons, programs generally don't hard-code these escape sequences, but abstract over them using the terminfo library and its terminfo description files. these and docs for them and the terminfo description source files for each terminals (compiled before loaded to programs) are installed from the ncurses package 09:31:55 https://invisible-island.net/ncurses/announce.html , manuals include terminfo(5) https://man7.org/linux/man-pages/man5/terminfo.5.html describing the format of the terminfo source descriptions, https://man7.org/linux/man-pages/man3/curs_terminfo.3x.html for the C API of the library that reads the compiled descriptions and emits the escapes, 09:32:50 https://man7.org/linux/man-pages/man1/tput.1.html for a command-line program doing that. 09:33:30 the ncurses library proper is a more optional heaviweight abstraction, you need not use it to use terminfo, even if they're installed together. 09:39:22 -!- Koen has joined. 10:17:40 -!- arseniiv has joined. 10:36:40 -!- slavfox has quit (Ping timeout: 258 seconds). 10:42:30 -!- slavfox has joined. 10:46:50 -!- slavfox has quit (Ping timeout: 260 seconds). 10:48:49 -!- slavfox has joined. 10:53:10 -!- slavfox has quit (Ping timeout: 260 seconds). 11:01:06 -!- slavfox has joined. 11:02:44 [[User:ArthroStar11]] https://esolangs.org/w/index.php?diff=88966&oldid=88818 * ArthroStar11 * (+206) 11:06:05 -!- slavfox has quit (Ping timeout: 260 seconds). 11:07:09 -!- slavfox has joined. 13:47:25 [[FROM HERE TO THERE]] M https://esolangs.org/w/index.php?diff=88967&oldid=87456 * Monochromeninja * (+1041) added python interpreter tio 13:48:29 [[Talk:FROM HERE TO THERE]] M https://esolangs.org/w/index.php?diff=88968&oldid=78834 * Monochromeninja * (+240) added my 2 cents 13:48:59 [[FROM HERE TO THERE]] M https://esolangs.org/w/index.php?diff=88969&oldid=88967 * Monochromeninja * (-2) implemented! 14:01:22 -!- sprock has quit (Ping timeout: 258 seconds). 14:12:10 -!- Sgeo has joined. 14:44:15 -!- arseniiv has quit (Ping timeout: 260 seconds). 14:49:33 -!- hendursa1 has quit (Quit: hendursa1). 14:50:45 -!- hendursaga has joined. 14:51:51 -!- arseniiv has joined. 15:31:19 -!- imode has joined. 15:55:09 -!- chiselfuse has quit (Remote host closed the connection). 15:55:22 -!- wib_jonas has quit (Quit: Client closed). 15:59:53 -!- sprock has joined. 16:15:42 -!- hendursaga has quit (Ping timeout: 276 seconds). 16:17:23 -!- hendursaga has joined. 16:22:42 [[Talk:FROM HERE TO THERE]] M https://esolangs.org/w/index.php?diff=88970&oldid=88968 * PythonshellDebugwindow * (+159) /* Implementation */ looks good 16:29:07 -!- ^[ has quit (Ping timeout: 252 seconds). 16:33:16 -!- ^[ has joined. 16:47:58 -!- olsner_ has changed nick to olsner. 17:35:26 -!- arseniiv has quit (Ping timeout: 260 seconds). 17:46:13 -!- b_jonas has joined. 17:56:03 -!- arseniiv has joined. 18:10:10 -!- sprock has quit (Ping timeout: 260 seconds). 18:49:47 [[Lenta]] M https://esolangs.org/w/index.php?diff=88971&oldid=34683 * Monochromeninja * (+1237) added python interpreter tio 18:50:33 [[Talk:Lenta]] https://esolangs.org/w/index.php?diff=88972&oldid=77446 * Monochromeninja * (+263) /* Interpreter */ new section 18:55:55 -!- Koen has quit (Remote host closed the connection). 19:19:57 -!- sprock has joined. 20:13:47 -!- ski_ has changed nick to ski. 20:55:10 -!- sprock has quit (Ping timeout: 260 seconds). 21:13:57 [[Heck]] https://esolangs.org/w/index.php?diff=88973&oldid=87858 * PixelatedStarfish * (+105) /* External Links */ 21:14:26 [[Heck]] https://esolangs.org/w/index.php?diff=88974&oldid=88973 * PixelatedStarfish * (-35) /* External Links */ 21:45:58 -!- NotApplicable has joined. 21:46:41 -!- NotApplicable has changed nick to Kit. 23:06:18 -!- Melvar has quit (Ping timeout: 260 seconds). 23:11:45 -!- arseniiv has quit (Ping timeout: 260 seconds). 23:12:30 -!- arseniiv has joined. 23:16:20 -!- msmith12[m] has joined. 23:17:23 holy shit daggy is here? hi daggy 23:19:55 -!- Melvar has joined. 23:30:26 -!- Koen has joined. 23:31:31 -!- earendel has joined. 23:50:19 hi 23:50:25 im developing a 2D esolang 23:50:30 based on "beams" of color 23:51:03 i wont go into too much detail bc i dont want anybody to steal my idea 23:51:04 but 23:51:24 i was curious what should happen on the event of two beams "merging" 23:51:46 should i get the sum of each of the RGB values? or the average? 23:51:57 should i just error? 23:52:07 like 23:52:24 if i do the sum, then chances are that itll just get capped at 255 23:52:34 for each RGB value 23:52:35 WAIT 23:52:36 idea 23:52:54 [[User:Challenger5]] https://esolangs.org/w/index.php?diff=88975&oldid=77025 * Challenger5 * (+23) add reference to 9f8 interpreter 23:57:40 should i include alpha in RGB values or is that too weird