I am using FLTK 1.3.5 and I would like to use the `Multiline_Input` object. I wonder if there is a way to automatically put a newline when the inserted text reaches the end of the input field, instead of doing it manually (check the uploaded images for an example). Moreover, the newline should be put at the end of a word. I searched here on SO and on the web, but I was not able to find anything useful.

[![Input text on one line](https://i.stack.imgur.com/Bqpbl.png)](https://i.stack.imgur.com/Bqpbl.png) [![Input text on multiple lines](https://i.stack.imgur.com/bfyOQ.png)](https://i.stack.imgur.com/bfyOQ.png)

Here it is the code used to generate the images above.

```
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Multiline_Input.H>

int main(int argc, char **argv) {

    Fl_Window *G_win = 0;
    G_win = new Fl_Window(200,200,"Test multi input");

    Fl_Multiline_Input* in;
    in = new Fl_Multiline_Input(50,50,120,100," Test:");

    G_win->end();
    G_win->show(argc, argv);

    return Fl::run();
}

```