🦋 Welcome to the MAIN() IRC channel of the Raku Programming Language (raku.org). Log available at irclogs.raku.org/raku/live.html . If you're a beginner, you can also check out the #raku-beginner channel!
Set by lizmat on 6 September 2022.
00:11 jpn joined 00:16 jpn left
japhb [Coke]: You invoked? What can I help with? 00:21
00:44 jpn joined 00:49 jpn left
[Coke] .tell thundergnat Terminal::ReadKey does not work here, no 00:50
tellable6 [Coke], I'll pass your message to thundergnat
[Coke] same as the other one, i have to hit enter 00:51
01:20 MasterDuke joined 01:40 jpn joined 01:45 jpn left
japhb Dangit, looks like I keep missing you [Coke] 01:54
So just from scrollback: Yeah, there are several ways to get raw terminal input, though at this point it's likely that I have produced a rocket-powered warhammer of ridiculousness when you just need something to put in a finishing nail. 02:00
The simplest version I have around is github.com/ab5tract/Terminal-Print...wInput.pm6 02:03
02:04 chemitz left
japhb It doesn't parse the keys that are sent as escape codes; for that you'd need github.com/ab5tract/Terminal-Print...dInput.pm6 or better yet to use the more advanced, ANSI-correct stuff I do for Terminal-LineEditor 02:04
02:23 jgaz left 02:30 nine joined 02:34 jpn joined 02:39 jpn left 02:43 hulk joined 02:44 kylese left 03:14 jpn joined 03:15 hulk left, kylese joined 03:19 jpn left 04:14 jpn joined 04:20 jpn left 05:13 jpn joined 05:20 jpn left 05:28 dead1 left
Voldenet lizmat: Nice api, and I think multiple dispatch is pointless with most libs using C-style 05:48
I'm guessing it would work with cpp libs, but it's probably not worth the effort 05:51
especially considering that most useful libs also have C apis 05:54
05:55 MasterDuke left 06:16 jpn joined 06:22 jpn left 06:23 sjn left 06:55 GreaseMonkey left, greaser|q joined 07:02 jpn joined 07:04 sjn joined 07:07 jpn left 07:48 jpn joined 07:54 oodani left 07:55 oodani joined 07:58 jpn left 08:04 jpn joined 08:14 jpn left 08:18 jpn joined 08:26 jpn left 08:44 jpn joined 08:50 jpn left 08:59 sena_kun joined 09:27 Sgeo left 09:31 jpn joined 09:45 maylay joined 10:01 sena_kun left 10:51 jpn left 10:58 jpn joined 11:22 TieUpYourCamel left
lizmat weekly: final Comma Complete release available for download by all commaide.com/download 11:26
notable6 lizmat, Noted! (weekly)
lizmat weekly: news.ycombinator.com/item?id=39395897 12:14
notable6 lizmat, Noted! (weekly)
12:47 TieUpYourCamel joined 13:26 kaskal joined 13:28 hvxgr left, hvxgr joined 13:36 leedo left 13:54 leedo joined
cokebot9000 Looking at things from the discord side, is #raku the only bridged channel at this point? 14:36
lizmat #raku-beginner as well
[Coke] oh, maybe beginner also? (confusingly not listed under the "irc bridges" folder" 14:37
tbrowder__ hi, i'm trying to break down a JSON::Fast hash of stuff and the key -> hash parts work fine. but two chunks are weird and i can't decode it. i'll gist the dd output i got in just a moment... 14:40
www.irccloud.com/pastebin/qMw3qTby/ 14:45
i can see 'lat' but can't get its value
lizmat %data<lat> should do it ? 14:46
also, you might want to add :immutable to the from-json call
that is, if you're not going to change %data 14:47
tbrowder__ ok, i'll do that... 14:59
before i get to it, shouldn't File::Temp be a community module? I'll be happy to help, i pushed PR to 2colour's fork, but... 15:01
lizmat probably 15:04
tbrowder__ lizmat: that worked fine, thank you! (i coulf 15:05
*not seeing forest for the trees!
15:25 Sgeo joined
[Coke] japhb: raw.githubusercontent.com/ab5tract...d-input.p6 was very helpful, thank you 15:37
japhb: however, now all my prints are online moving to the next line, not doing a carriage return. Any thoughts? 15:44
*only 15:45
major change was that I added use Terminal::Print::DecodedInput in a module and added an our $in-supply = decoded-input-supply;
if I manually add \rs it works again. :| 15:46
15:47 vlad joined 15:52 derpydoo joined
[Coke] .tell japhb github.com/ab5tract/Terminal-Print/issues/83 16:01
tellable6 [Coke], I'll pass your message to japhb
japhb [Coke]: Answer in the issue. Let me know if you need more detail. :-) 16:10
16:16 dakkar joined
[Coke] japhb: is there a way to use Terminal::Print to switch between raw and not? 16:16
16:23 vlad left
[Coke] eh. I only have a few says, easy enough to wrap. Thanks. 16:24
japhb: the input supply seems to take over input for the entire program. 16:31
I have some prompt() calls after that, and they are fubar now
I assume I just need to go all in if I'm using Terminal::Print. :( 16:32
16:33 vlad joined
[Coke] (which is fine, was heading there anyway) 16:33
japhb [Coke]: Yes, can close the raw supply and just open a new one when you want it again. 16:37
If you want to be prompting, perhaps you want Terminal::LineEditor? It uses the newer version of the algorithms in Terminal::Print. (The newer versions handle a lot more of the full ANSI escape sequence space.) 16:38
[Coke] Supply doesn't have a close. 16:40
Ugh.
ok. Setting this aside for now so I don't have to rip out the code I just wrote. :) 16:41
japhb Fair. Feels like there's (yet another' 16:43
) Terminal module I need to write.
*sigh*
[Coke] eh. not your fault. I started out with something simple that was just printing to the screen and using prompt(), and am slowing making it into something that really wants more features, and I'm just at the steep point right now. no worries. 16:53
I probably do want Terminal::Print if I understand it, because this will basically be redrawing the terminal each time to render a game.
and yes I know you have a whole thing for games but that is waaaay too much at this stage. :)
17:42 vlad left 17:54 vlad joined, Asroty joined 17:55 vlad left, vlad joined 17:56 vlad left 17:57 vlad joined 17:58 vlad left 18:00 vlad joined 18:01 vlad left 18:02 vlad joined 18:03 vlad left 18:05 vlad joined 18:06 vlad left 18:07 vlad joined 18:08 vlad left 18:09 vlad joined 18:27 melezhik joined
melezhik o/ 18:27
18:28 Asroty left 18:32 melezhik left 18:58 jpn left 19:27 dakkar left 19:40 vlad left 19:46 jpn joined 19:50 jpn left 19:59 greaser|q left, greaser|q joined, greaser|q is now known as GreaseMonkey 21:04 librasteve_ joined 21:55 jpn joined 22:03 sena_kun joined 23:06 derpydoo left 23:12 jpn left, sena_kun left, jpn joined 23:51 librasteve_ left