Fixed bug while resizing multiline edit.
Better handling of screen update when the screen is cleared.
Simplified initialization.
Better result codes and processing of line editing.