Welcome to the main channel on the development of MoarVM, a virtual machine for NQP and Rakudo (moarvm.org). This channel is being logged for historical purposes. Set by lizmat on 24 May 2021. |
|||
00:07
reportable6 left
00:11
reportable6 joined
01:30
reportable6 left,
japhb left,
japhb joined
01:54
Kaiepi left
02:23
reportable6 joined
02:24
frost91 joined
02:57
frost91 left
04:40
[Coke]_ joined
04:42
[Coke]__ left
06:07
reportable6 left
06:08
reportable6 joined
06:27
frost53 joined
06:42
kjp left
06:43
kjp joined
08:00
squashable6 left
08:02
squashable6 joined,
Kaiepi joined
08:19
sena_kun joined
08:43
psydroid left,
AlexDaniel left,
crystalfrost[m] left
08:48
AlexDaniel joined,
sena_kun left
08:49
sena_kun joined
09:12
psydroid joined,
crystalfrost[m] joined
09:31
sena_kun left
10:46
sena_kun joined
12:06
reportable6 left
12:07
epony left
12:09
reportable6 joined
12:32
frost53 left
12:45
Kaiepi left
12:50
archenoth joined
12:53
Kaiepi joined
|
|||
lizmat | jnthn nine what am I doing wrong getting STDIN reconnected? | 13:14 | |
gist.github.com/lizmat/05fbd921cab...ad14d08928 | |||
and yes, I intend to put a functional result into a module :-) | 13:15 | ||
13:56
epony joined
|
|||
nine | lizmat: so you're closing STDIN, but then immediately opening it again and connecting it again to the tty. The result is the same as if you had just done nothing | 14:00 | |
s/again to the tty/again to the input file/ | 14:02 | ||
You want to dup $*IN, then close it, connect $*IN to the tty device, run vim, close $*IN and dup2 $*IN from where you saved the original descriptor | 14:04 | ||
Also there's no need for EVAL. github.com/niner/Inline-Perl5/blob...er.pm6#L15 | 14:06 | ||
lizmat | thanks for the non-EVAL tip | 16:51 | |
nine: fwiw, I'm not interested in the part when returning from vim | 16:52 | ||
16:54
epony left
|
|||
lizmat | so essentially, you're saying: $*IN.close; $*IN = open '/dev/tty'; | 16:59 | |
actually: $*IN.close; $*IN = open '/dev/tty'; run 'vim' | 17:00 | ||
17:08
sena_kun left
17:44
sena_kun joined
18:06
reportable6 left
18:09
reportable6 joined
18:39
nebuchadnezzar left
20:22
nebuchadnezzar joined
21:46
sena_kun left
21:53
epony joined
|