06:09
rob_w has joined #picolisp
09:53
razzy has quit [Ping timeout: 252 seconds]
09:55
razzy has joined #picolisp
09:59
razzy has quit [Ping timeout: 268 seconds]
10:11
razzy has joined #picolisp
10:17
razzy has quit [Ping timeout: 252 seconds]
10:23
razzy has joined #picolisp
10:57
<
razzy >
hm, i wanted to compile pil21 with disto pil and then compile it again with pil21 again. than i wanted to compare both binaries and check if they are the same. they sould be right? Regenaxer?
10:57
<
Regenaxer >
Yes, but not sure if pil64 can still compile it
10:58
<
Regenaxer >
Is the distro version also pil21?
10:58
<
Regenaxer >
In any case, you can 'diff' the src/*.ll files
10:58
<
Regenaxer >
Should be exactly the same
11:01
<
razzy >
Regenaxer: hmm, i remember that some time ago you needed distro pil to compile pil21. than you change Makefile to recompile next pil21 with old pil21. how does it work now?
11:02
<
Regenaxer >
Now you don't need any running pil to build from the TGZ file, because the *.ll files are already there
11:02
<
razzy >
(I do not uderstand linux make and makefiles.)
11:02
<
Regenaxer >
Only to build new *.ll files you need pil
11:03
<
Regenaxer >
Make compares file modification times
11:03
<
Regenaxer >
if src/*.l files are newer than the src/*.ll files it needs to rebuild them
11:07
<
razzy >
ok, so comparation of files would test nothing. issue solved. Thank you Regenaxer :]
11:38
razzy has quit [Ping timeout: 252 seconds]
11:57
peterhil has quit [Ping timeout: 272 seconds]
12:04
peterhil has joined #picolisp
14:11
razzy has joined #picolisp
14:13
rob_w has quit [Quit: Leaving]
14:54
_whitelogger has joined #picolisp
15:08
aw- has joined #picolisp
15:20
<
Regenaxer >
Hi aw-! Do you know if there is a way to set a file descriptor to "tty", so that isatty() returns true?
15:20
<
Regenaxer >
I looked at fcntl() and ioctl() but ni success
15:22
<
Regenaxer >
Or anyone else with an idea?
15:34
<
beneroth >
I only know that tty is arcane magic
15:35
<
beneroth >
(from my link/tab collection, not from research now)
15:44
<
Regenaxer >
Checking ... :)
15:45
<
Regenaxer >
hmm, I think this does not help
15:48
<
beneroth >
sorry :(
15:48
<
beneroth >
so the title (TTY demystified) is a lie? :D
15:58
<
Regenaxer >
I have no problem with TTYs in general
15:58
peterhil has joined #picolisp
15:58
<
Regenaxer >
I need a special Unix system call
15:59
<
Regenaxer >
But probably that does noy exist
15:59
<
Regenaxer >
Perhaps I't trying the wrong thing
16:00
<
Regenaxer >
I made a socket interface to the REPL in PilBox
16:00
<
Regenaxer >
I can connect from Termux
16:00
<
Regenaxer >
But the socket is not a TTY (of course)
16:01
<
Regenaxer >
So readline() does not work well
16:01
<
beneroth >
yeah your use case is obvious to me
16:02
<
beneroth >
basically "how to create a tty"
16:02
<
Regenaxer >
True that the socket is not a tty
16:02
<
Regenaxer >
but the other end of the connection is
16:02
<
Regenaxer >
So I want to tell readline() that it should go ahead
16:03
<
beneroth >
you already tried to solve it by flush() ?
16:04
<
Regenaxer >
Flushing is not the problem
16:04
<
Regenaxer >
Mom, Telephone
16:06
<
beneroth >
SSH appears to have a concept of "allocating pseudo TTY"
16:07
<
Regenaxer >
yeah, this is the right direction
16:08
<
Regenaxer >
good point!
16:08
<
beneroth >
piping through tee might be an option..unsure
16:09
<
aw- >
hi Regenaxer beneroth
16:09
<
Regenaxer >
I have no shell or so
16:09
<
Regenaxer >
just PilBox
16:09
<
Regenaxer >
Sorry, still on phon
16:09
<
Regenaxer >
a little later
16:11
<
aw- >
hmmm tty, i always thought tty was a special file you can create with 'mknod'
16:11
<
Regenaxer >
right aw-
16:11
<
beneroth >
"A process may read or modify the configuration of an open TTY device using ioctl(2). The API is described in tty_ioctl(4). "
16:11
<
beneroth >
from the first link I sent ;-)
16:11
<
Regenaxer >
But not in an Android app
16:11
<
Regenaxer >
I did look at ioctl() and related
16:12
<
beneroth >
oh wow you just increased the difficulty :D
16:12
<
beneroth >
you sure Google didn't mess around with tty in Android?
16:12
<
Regenaxer >
The "pseudo" tty is the way
16:12
<
Regenaxer >
I have no tty
16:12
<
Regenaxer >
I have a Java ServerSocket
16:12
<
beneroth >
termios(3) interface
16:12
<
Regenaxer >
which connects to stdio of PicoLisp
16:13
<
DKordic >
Regenaxer: Would it be more clear to integrate <<# VIP>> as <<#! vip-client>>, inspired by <<emacsclient>>?
16:13
<
Regenaxer >
on the
*other* end of the connection is a tty in Termux
16:13
<
Regenaxer >
Hi DKordic
16:13
<
Regenaxer >
vip-client looks ugly
16:14
<
beneroth >
Regenaxer, yeah you want to do the same thing that SSH does
16:14
<
Regenaxer >
Let me finish phune!!
16:14
<
beneroth >
sorry :D
16:14
<
beneroth >
just ignore us
16:14
peterhil has quit [Ping timeout: 240 seconds]
16:14
<
aw- >
sorry i can't be more helpful
16:17
<
DKordic >
Call it <<VIP>> then.
16:22
<
Regenaxer >
phone done
16:23
<
Regenaxer >
No, DKordic, I
*really* like just VIP
16:23
<
Regenaxer >
why make it verbose
16:23
<
Regenaxer >
like the Unix #!
16:23
<
Regenaxer >
I do
*not* intend to be like emacs in any way
16:24
<
Regenaxer >
So the thing to search for is pseudo-tty
16:25
<
Regenaxer >
beneroth: Thanks for the idea!
16:27
<
beneroth >
welcome. seems to be a hard-to-google term. mostly just ssh results
16:28
<
Regenaxer >
I look the man page for pty
16:45
<
Regenaxer >
man 3 openpty
16:45
<
Regenaxer >
looks right
16:46
<
Regenaxer >
forkpty()
17:23
<
Regenaxer >
(%@ "forkpty" 'I '(Master (4 . I)) 0 0 0)
17:23
<
Regenaxer >
Something along that way :)
17:23
<
Regenaxer >
I continue tomorrow
17:23
<
Regenaxer >
Thanks beneroth!
17:26
<
beneroth >
I didn't do much :)
17:26
<
beneroth >
please write an email or wiki article when you solved it :D
17:26
<
Regenaxer >
No, a big step! :)
17:27
<
Regenaxer >
plus a PilCon demo once it works
17:27
<
beneroth >
you want to keep your working style, but go remote? because of the Google Daumenschrauben?
17:28
<
Regenaxer >
No, because in PilBox there is only a rudimentary REPL
17:28
<
Regenaxer >
in a browser TextField
17:28
<
Regenaxer >
I want a full terminal, where Vip runs
17:31
<
beneroth >
that is interesting for me.. and Olaf.. concerning pil IDE going further than VIP...
18:23
beneroth has quit [Quit: Leaving]
18:39
emacsoma1 is now known as emacsomancer
20:56
razzy has quit [Ping timeout: 240 seconds]
20:57
razzy has joined #picolisp
21:12
razzy has quit [Ping timeout: 272 seconds]
21:19
razzy has joined #picolisp
21:26
razzy has quit [Ping timeout: 252 seconds]
22:55
razzy has joined #picolisp
23:41
aw- has quit [Quit: Leaving.]
23:47
aw- has joined #picolisp