When posting code, please use the preformatted text option (
</>) on the editor bar, otherwise it may come out mangled—as the macros in your (original) post did.
The only interactive macro that’s been deprecated is
<<click>> and that has nothing to do with text input, so I have no idea what you mean—and since we cannot currently see what macros you attempted to refer to….
Regardless. There are two text input macros in SugarCube, neither being deprecated,
<<textbox>>. The latter,
<<textbox>>, is probably what you want.
What's your name? <<textbox "$name" "">>
And printing its value on the next passage:
Ah. Hello, $name, good to meet you.
Validation example, to ensure that the player inputs something:
What's your name? <<textbox "_name" "">> <<button "Continue">>
/* Empty the error display. */
/* Trim leading/trailing whitespace from the name. */
<<set _name to _name.trim()>>
/* Check if the name is empty. */
<<if _name is "">>
/* If so, show the player an error. */
<<replace "#name-error">>You must input a name!<</replace>>
/* Else, assign it to a story variable and go to the next passage. */
<<set $name to _name>>
<<goto "Some Passage">>