00:00:00 --- log: started forth/18.07.21 00:04:07 --- join: va (~va@quaking-professor.volia.net) joined #forth 00:04:30 --- quit: va (Client Quit) 00:21:00 --- quit: mtsd (Quit: Leaving) 00:49:45 --- quit: fiddlerwoaroof (Read error: Connection reset by peer) 00:57:01 --- join: fiddlerwoaroof (~fiddlerwo@unaffiliated/fiddlerwoaroof) joined #forth 01:43:23 --- quit: proteusguy (Ping timeout: 260 seconds) 02:47:40 --- quit: proteus-guy (Remote host closed the connection) 03:32:31 --- join: proteusguy (~proteus-g@14.207.1.113) joined #forth 03:32:32 --- mode: ChanServ set +v proteusguy 04:16:16 --- join: [1]MrMobius (~default@c-73-134-82-217.hsd1.va.comcast.net) joined #forth 04:19:19 --- quit: MrMobius (Ping timeout: 240 seconds) 04:19:19 --- nick: [1]MrMobius -> MrMobius 05:22:23 --- quit: proteusguy (Remote host closed the connection) 05:48:01 --- join: proteusguy (~proteus-g@cm-134-196-84-152.revip18.asianet.co.th) joined #forth 05:48:01 --- mode: ChanServ set +v proteusguy 05:48:55 --- quit: ncv (Ping timeout: 248 seconds) 05:51:46 --- quit: pierpal (Quit: Poof) 05:52:04 --- join: pierpal (~pierpal@host141-208-dynamic.11-87-r.retail.telecomitalia.it) joined #forth 06:01:37 --- join: ncv (~neceve@2a02:c7d:c5c9:a900:1ec6:932f:1b02:d27e) joined #forth 06:01:37 --- quit: ncv (Changing host) 06:01:37 --- join: ncv (~neceve@unaffiliated/neceve) joined #forth 06:04:15 --- quit: ncv (Remote host closed the connection) 06:04:36 --- join: ncv (~neceve@2a02:c7d:c5c9:a900:6eaf:6ef7:3b81:d5f6) joined #forth 06:04:36 --- quit: ncv (Changing host) 06:04:36 --- join: ncv (~neceve@unaffiliated/neceve) joined #forth 06:58:27 --- quit: nighty- (Quit: Disappears in a puff of smoke) 07:37:10 --- quit: zy]x[yz (Quit: leaving) 07:40:45 --- join: zy]x[yz (~corey@unaffiliated/cmtptr) joined #forth 08:06:45 --- quit: ncv (Remote host closed the connection) 08:07:06 --- join: ncv (~neceve@2a02:c7d:c5c9:a900:6eaf:6ef7:3b81:d5f6) joined #forth 08:07:06 --- quit: ncv (Changing host) 08:07:06 --- join: ncv (~neceve@unaffiliated/neceve) joined #forth 08:35:04 --- quit: groovy2shoes (Ping timeout: 265 seconds) 08:37:36 --- join: groovy2shoes (~groovy2sh@unaffiliated/groovebot) joined #forth 08:50:42 --- quit: dave9 (Quit: one love) 09:58:59 --- join: gravicappa (~gravicapp@h178-129-26-183.dyn.bashtel.ru) joined #forth 11:15:07 --- quit: dys (Ping timeout: 264 seconds) 11:34:51 --- join: dddddd (~dddddd@unaffiliated/dddddd) joined #forth 11:47:54 Hey, have any of you guys tinkered with ioctls / termios from assembly? 11:49:05 not me, I usually deal with MCUs and their memoryaddressspace mapped i/o. 11:49:39 My only experience is in C, using tcgetattr() and tcsetattr(). 11:49:49 I found an example online and it seemed sensible. 11:49:57 I can open, close, read, write. 11:50:22 But the ioctl call (when I try to getattr) invariably returns ENOTTY - descriptor is not a tty. 11:50:43 That's not very clear - the C stuff worked fine. 11:50:48 --- quit: pierpal (Quit: Poof) 11:50:55 It's the asm stuff where I'm directly making system calls that gives the ioctl error. 11:51:04 --- join: pierpal (~pierpal@host141-208-dynamic.11-87-r.retail.telecomitalia.it) joined #forth 11:51:48 It's kind of fun - From in my Forth I can open the /dev/ttys??? device of some other terminal window, and then I can write to it it and shows up over in that other window. 11:52:18 s/it and/and it/ 11:52:24 --- quit: ncv (Ping timeout: 256 seconds) 11:53:25 KipIngram: hmm.. one project could be implementing the minmal part of the VNC protocol (RFB or Remote Frame Buffer) and pipe that over stdin&stdout. 12:01:00 KipIngram, debug it with strace 12:01:28 my first suspicion would be that you're not passing it the fd you think you are 12:04:20 I don't seem to have an strace on my system - I was trying to use that last night. 12:04:40 well that's a shame 12:04:54 Yeah - it looked pretty powerful. 12:05:47 I did find this page, which is pretty helpful: 12:05:48 https://sigsegv.pl/osx-bsd-syscalls/ 12:05:57 At least it's a list specifically for MacOS. 12:07:57 #54 is ioctl. Its second parameter is a "u_long command." A value was given in my example, but the example was for Linux. I don't know if the commands are the same for MacOS, and I haven't found a *trace* of any good info about it online. 12:08:06 I guess very few people mess with this stuff, so there's just not much out there. 12:10:03 I would guess apple provides and expects for everyone to use their userspace libraries 12:11:19 but anyway, this seems pretty straightforward 12:11:48 you just need a scope to confirm that you're populating the parameters and reading the return value correctly (enter strace) 12:12:56 KipIngram, do you have dtruss? https://stackoverflow.com/a/31045613 13:16:49 --- quit: gravicappa (Ping timeout: 240 seconds) 13:27:02 --- join: MickyW (~MickyW@p4FE8DAC8.dip0.t-ipconnect.de) joined #forth 14:01:47 --- quit: pierpal (Quit: Poof) 14:02:06 --- join: pierpal (~pierpal@host141-208-dynamic.11-87-r.retail.telecomitalia.it) joined #forth 14:20:26 --- quit: pierpal (Quit: Poof) 14:20:45 --- join: pierpal (~pierpal@host141-208-dynamic.11-87-r.retail.telecomitalia.it) joined #forth 14:36:20 --- join: pierpa (570bd08d@gateway/web/freenode/ip.87.11.208.141) joined #forth 16:04:05 --- quit: Zarutian (Read error: Connection reset by peer) 16:04:55 --- join: Zarutian (~zarutian@173-133-17-89.fiber.hringdu.is) joined #forth 16:23:23 --- quit: reepca-laptop (Read error: Connection reset by peer) 17:45:55 --- join: wa5qjh (~quassel@175.158.225.207) joined #forth 17:45:55 --- quit: wa5qjh (Changing host) 17:45:55 --- join: wa5qjh (~quassel@freebsd/user/wa5qjh) joined #forth 17:47:54 --- quit: MickyW (Quit: Leaving. Have a nice time.) 18:22:20 --- quit: X-Scale (Ping timeout: 260 seconds) 18:22:50 --- join: [X-Scale] (~ARM@83.223.226.141) joined #forth 18:23:28 --- nick: [X-Scale] -> X-Scale 18:42:52 --- quit: epony (Quit: QUIT) 19:28:22 --- quit: pierpa (Quit: Page closed) 19:58:30 --- quit: pierpal (Quit: Poof) 19:58:48 --- join: pierpal (~pierpal@host141-208-dynamic.11-87-r.retail.telecomitalia.it) joined #forth 20:07:50 --- join: dave9 (~dave@90.20.215.218.dyn.iprimus.net.au) joined #forth 20:08:33 hi 20:13:43 Well, I got that keyboard stuff all worked out. 20:13:55 hi KipIngram 20:14:07 The problem arose from MacOS being BSD based, whereas almost all the information available online about this stuff is standard Linux based. 20:14:45 The key #define symbols are even different, as well as the numeric values. 20:14:49 Hi Dave. 20:15:02 Got my keyboard into non-blocking, non-echoing mode. 20:15:27 So now the system doesn't work - I have to re-write EXPECT to deal with the new behavior. 20:15:35 heh 20:15:59 gotta print out the characters as you read them? 20:16:12 like a manual echo 20:16:21 Right. 20:16:38 And adjust the cursor position myself too, in cases where it doesn't move one char to the right for each char printed. 20:16:50 Implement the erasure that backspace does, etc. 20:16:57 that sounds annoying :-| 20:16:57 I have to code up the whole "line discipline." 20:17:28 you can switch back and forth from raw to cooked 20:17:43 It's pleasant code to write, thoug, because you get to focus completely on tidiness, ease of maintenance, and so on. 20:17:54 Performance is just not an issue - my finger speed will be the gating factor. 20:37:12 --- quit: Lord_Nightmare (Quit: ZNC - http://znc.in) 20:40:42 --- join: Lord_Nightmare (Lord_Night@unaffiliated/lordnlptp) joined #forth 22:17:09 --- quit: dave9 (Quit: one love) 22:36:39 --- quit: phadthai (Remote host closed the connection) 23:22:46 --- quit: dddddd (Remote host closed the connection) 23:30:06 --- join: dave9 (~dave@90.20.215.218.dyn.iprimus.net.au) joined #forth 23:30:26 --- quit: proteusguy (Remote host closed the connection) 23:34:18 --- join: ncv (~neceve@2a02:c7d:c5c9:a900:6eaf:6ef7:3b81:d5f6) joined #forth 23:34:19 --- quit: ncv (Changing host) 23:34:19 --- join: ncv (~neceve@unaffiliated/neceve) joined #forth 23:38:59 --- quit: wa5qjh (Remote host closed the connection) 23:59:59 --- log: ended forth/18.07.21