term: new function: term_autowrap()

Adds a linebreak (+ scroll if necessary) if we're in a deferred wrap
and auto-margins are enabled.

Return true when we wrapped, false otherwise.
This commit is contained in:
Daniel Eklöf 2019-11-17 12:13:36 +01:00
parent f4be84871f
commit 686405b703
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 16 additions and 0 deletions

View file

@ -360,6 +360,7 @@ void term_scroll_reverse_partial(
void term_linefeed(struct terminal *term);
void term_reverse_index(struct terminal *term);
bool term_autowrap(struct terminal *term);
void term_restore_cursor(struct terminal *term);