lib/rbx/console.fy in fancy-0.5.0 vs lib/rbx/console.fy in fancy-0.6.0
- old
+ new
@@ -36,24 +36,24 @@
Prints a given message to @STDOUT, followed by reading a line from
@STDIN.
"""
Console print: message
- if: (STDIN eof?) then: {
- nil
- } else: {
- STDIN gets() chomp
- }
+ Console readln
}
def Console readln {
"""
@return Line (@String@) read from @STDIN.
Reads a line from @STDIN and returns it as a @String@.
"""
- STDIN gets() chomp
+ if: (STDIN eof?) then: {
+ nil
+ } else: {
+ STDIN gets() chomp
+ }
}
def Console clear {
"Clears the @Console@."