<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Feb 7, 2020 at 12:47 PM David Carlisle <<a href="mailto:d.p.carlisle@gmail.com">d.p.carlisle@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 7 Feb 2020 at 11:45, luigi scarso <<a href="mailto:luigi.scarso@gmail.com" target="_blank">luigi.scarso@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Feb 7, 2020 at 12:36 PM David Carlisle <<a href="mailto:d.p.carlisle@gmail.com" target="_blank">d.p.carlisle@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br></div><div>Marcel points out that you can use the integer as used for TeX's \write, as the first argument of texio.write (which is a nice feature) Could the manual be updated to mention this, currently it only documents the first argument being a string such as "log"</div><div><br></div><div>David</div><div><br></div></div></blockquote><div><br></div><div>ok, I will check ( it should be   something inside do_texio_print )</div></div>Do you have a mwe (for the records)  ?<br clear="all"></div></blockquote><div><br></div><div>yes this works, producing</div><div><br></div><div>aaa<br>Lua<br>bbb</div><div><br></div><div>but the manual says the argument 4 should be the strings "log" or "term"</div><div><br></div><div><br></div><div>\immediate\openout4=\jobname.txt<br><br>\immediate\write4{aaa}<br><br>\directlua{<br>texio.write(4,"Lua\string\n")<br>}<br><br>\immediate\write4{bbb}<br><br>\immediate\closeout4<br><br>\bye</div><div><br></div><div><br></div></div></div></blockquote><div><br></div><div>ok. </div><div>The code says</div><div> if (selector != term_and_log && selector != log_only && selector != term_only) {<br>        if (! valid_write_file(selector)) {<br>            normalize_selector();   /* sets selector */<br>        }<br>    }<br></div><div><br></div><div>so yes, it seems that integer as said are ok.</div><div><br></div><div> --</div></div><div dir="ltr" class="gmail_signature">luigi<br></div></div>