wordwrap during console input
- Posted by katsmeow Feb 11, 2015
- 1445 views
I open a dos console, then i tried gets(), getc(), and prompt_string(), but cannot enter text past the right edge of the screen. Text:wrap() applies only to puts()ing, graphics:wrap(1) has no effect. How can i gets() a line of text longer than the console has columns? Wrapping is the normal default in a regular dos cmd window.
I switched to using get_key(), and re-puts()ing the buffer to the screen with each keystroke.
Kat