Input loop: Difference between revisions

GDScript
m (→‎{{header|J}}: Use debian standard install location for J)
(GDScript)
Line 1,499:
 
HandleEvents</syntaxhighlight>
 
=={{header|GDScript}}==
{{works with|Godot|4.0.1}}
 
<syntaxhighlight lang="gdscript">
extends MainLoop
 
 
func _process(_delta: float) -> bool:
while true:
# Read a line from stdin
var input: String = OS.read_string_from_stdin()
 
# Empty lines are "\n" whereas end of input will be completely empty.
if len(input) == 0:
break
printraw(input)
return true # Exit
</syntaxhighlight>
 
=={{header|gnuplot}}==
89

edits