Reading line from terminal in expl3Peek ahead for next token not in token-listList Version of str_if_eqPDF keywords from Expl3 clistInline Mapping Bug?How do the xx_case: functions work?Confusion about Data Retrieval from a LaTeX3 Stackexpl3: lowercase a token list inside a tikz nodeBetter latex output, instead of being wrapped on Terminal?expl3-strategy to automatically update the title of a document, depending on its contentexpl3 function for fixed number of expansion steps
What happens when a flying sword is killed?
How do I use JSON.generator to generate an unnamed array?
Irreducible factors of primitive permutation group representation
Examples of simultaneous independent breakthroughs
How long until two planets become one?
Name These Animals
Is this photo showing a woman standing in the nude before teenagers real?
Are the named pipe created by `mknod` and the FIFO created by `mkfifo` equivalent?
Can I change the license of a forked project to the MIT if the license of the parent project has changed from the GPL to the MIT?
Assuring luggage isn't lost with short layover
Why is the number of local variables used in a Java bytecode method not the most economical?
Why does the Eurostar not show youth pricing?
Incrementing add under condition in pandas
Does dual boot harm a laptop battery or reduce its life?
Why didn’t Christianity spread southwards from Ethiopia in the Middle Ages?
How could Nomadic scholars effectively memorize libraries worth of information
Move the outer key inward in an association
Spacing after a tikz figure
Is it error of law to judge on less relevant case law when there is much more relevant one?
What is the most efficient way to write 'for' loops in Matlab?
Why is の所 used after ドア in this sentence?
What is this 4 sharp symbol and what does it mean?
Copying an existing HTML page and use it, is that against any copyright law?
How did the SysRq key get onto modern keyboards if it's rarely used?
Reading line from terminal in expl3
Peek ahead for next token not in token-listList Version of str_if_eqPDF keywords from Expl3 clistInline Mapping Bug?How do the xx_case: functions work?Confusion about Data Retrieval from a LaTeX3 Stackexpl3: lowercase a token list inside a tikz nodeBetter latex output, instead of being wrapped on Terminal?expl3-strategy to automatically update the title of a document, depending on its contentexpl3 function for fixed number of expansion steps
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
Simple question: How do you read a line from terminal to a token list variable in expl3
?
The following is what I tried:
documentclassarticle
usepackageexpl3
begindocument
ExplSyntaxOn
read c_term_ior to l_tmpa_tl
tl_show:N l_tmpa_tl
ior_get:NN c_term_ior l_tmpa_tl
tl_show:N l_tmpa_tl
ExplSyntaxOff
enddocument
resulting in the expected behavior for the read
version, but in q_no_value
for the ior_get:NN
version.
expl3 terminal-output
add a comment |
Simple question: How do you read a line from terminal to a token list variable in expl3
?
The following is what I tried:
documentclassarticle
usepackageexpl3
begindocument
ExplSyntaxOn
read c_term_ior to l_tmpa_tl
tl_show:N l_tmpa_tl
ior_get:NN c_term_ior l_tmpa_tl
tl_show:N l_tmpa_tl
ExplSyntaxOff
enddocument
resulting in the expected behavior for the read
version, but in q_no_value
for the ior_get:NN
version.
expl3 terminal-output
add a comment |
Simple question: How do you read a line from terminal to a token list variable in expl3
?
The following is what I tried:
documentclassarticle
usepackageexpl3
begindocument
ExplSyntaxOn
read c_term_ior to l_tmpa_tl
tl_show:N l_tmpa_tl
ior_get:NN c_term_ior l_tmpa_tl
tl_show:N l_tmpa_tl
ExplSyntaxOff
enddocument
resulting in the expected behavior for the read
version, but in q_no_value
for the ior_get:NN
version.
expl3 terminal-output
Simple question: How do you read a line from terminal to a token list variable in expl3
?
The following is what I tried:
documentclassarticle
usepackageexpl3
begindocument
ExplSyntaxOn
read c_term_ior to l_tmpa_tl
tl_show:N l_tmpa_tl
ior_get:NN c_term_ior l_tmpa_tl
tl_show:N l_tmpa_tl
ExplSyntaxOff
enddocument
resulting in the expected behavior for the read
version, but in q_no_value
for the ior_get:NN
version.
expl3 terminal-output
expl3 terminal-output
asked 8 hours ago
siracusasiracusa
7,6242 gold badges18 silver badges34 bronze badges
7,6242 gold badges18 silver badges34 bronze badges
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
You are looking for ior_get_term:nN
(or perhaps ior_str_get_term:nN
), added as candidates in March 2019. You'd do something like
documentclassarticle
usepackageexpl3
begindocument
ExplSyntaxOn
ior_get_term:nN Foo ~ bar l_tmpa_tl
tl_show:N l_tmpa_tl
ExplSyntaxOff
enddocument
Due to an internal change of how input streams are managed, to make the check whether they are open more robust, the effect is that ior_get:NN
no longer works with c_term_ior
and for this reason ior_get_term:Nn
has been introduced. Unfortunately, the documentation wasn't updated to reflect this.
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "85"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f502000%2freading-line-from-terminal-in-expl3%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You are looking for ior_get_term:nN
(or perhaps ior_str_get_term:nN
), added as candidates in March 2019. You'd do something like
documentclassarticle
usepackageexpl3
begindocument
ExplSyntaxOn
ior_get_term:nN Foo ~ bar l_tmpa_tl
tl_show:N l_tmpa_tl
ExplSyntaxOff
enddocument
Due to an internal change of how input streams are managed, to make the check whether they are open more robust, the effect is that ior_get:NN
no longer works with c_term_ior
and for this reason ior_get_term:Nn
has been introduced. Unfortunately, the documentation wasn't updated to reflect this.
add a comment |
You are looking for ior_get_term:nN
(or perhaps ior_str_get_term:nN
), added as candidates in March 2019. You'd do something like
documentclassarticle
usepackageexpl3
begindocument
ExplSyntaxOn
ior_get_term:nN Foo ~ bar l_tmpa_tl
tl_show:N l_tmpa_tl
ExplSyntaxOff
enddocument
Due to an internal change of how input streams are managed, to make the check whether they are open more robust, the effect is that ior_get:NN
no longer works with c_term_ior
and for this reason ior_get_term:Nn
has been introduced. Unfortunately, the documentation wasn't updated to reflect this.
add a comment |
You are looking for ior_get_term:nN
(or perhaps ior_str_get_term:nN
), added as candidates in March 2019. You'd do something like
documentclassarticle
usepackageexpl3
begindocument
ExplSyntaxOn
ior_get_term:nN Foo ~ bar l_tmpa_tl
tl_show:N l_tmpa_tl
ExplSyntaxOff
enddocument
Due to an internal change of how input streams are managed, to make the check whether they are open more robust, the effect is that ior_get:NN
no longer works with c_term_ior
and for this reason ior_get_term:Nn
has been introduced. Unfortunately, the documentation wasn't updated to reflect this.
You are looking for ior_get_term:nN
(or perhaps ior_str_get_term:nN
), added as candidates in March 2019. You'd do something like
documentclassarticle
usepackageexpl3
begindocument
ExplSyntaxOn
ior_get_term:nN Foo ~ bar l_tmpa_tl
tl_show:N l_tmpa_tl
ExplSyntaxOff
enddocument
Due to an internal change of how input streams are managed, to make the check whether they are open more robust, the effect is that ior_get:NN
no longer works with c_term_ior
and for this reason ior_get_term:Nn
has been introduced. Unfortunately, the documentation wasn't updated to reflect this.
edited 4 hours ago
egreg
758k90 gold badges1983 silver badges3329 bronze badges
758k90 gold badges1983 silver badges3329 bronze badges
answered 8 hours ago
Joseph Wright♦Joseph Wright
210k24 gold badges574 silver badges904 bronze badges
210k24 gold badges574 silver badges904 bronze badges
add a comment |
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f502000%2freading-line-from-terminal-in-expl3%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown