suve

awful: function: stdin-flush

Declaration

string :stdin-flush

Summary

Returns the contents of stdin buffer and empties the buffer.

Example

# :stdin-flush example
:set &STR s''
:read &STR
# :read, contrary to :readln, reads strings only until first space character
:writeln s'STR: ' $STR
:writeln s'buffer: ' :stdin-flush

wikipage modified on 2014/0601/2317