1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-02 03:52:49 -05:00

"CR implies LF" patch, based on one from Paul Coldrey.

[originally from svn r7669]
This commit is contained in:
Ben Harris
2007-08-04 19:16:46 +00:00
parent 3dc0f8507d
commit 8659f5145f
6 changed files with 27 additions and 0 deletions

View File

@ -2850,6 +2850,13 @@ static void term_out(Terminal *term)
term->wrapnext = FALSE;
seen_disp_event(term);
term->paste_hold = 0;
if (term->cfg.crhaslf) {
if (term->curs.y == term->marg_b)
scroll(term, term->marg_t, term->marg_b, 1, TRUE);
else if (term->curs.y < term->rows - 1)
term->curs.y++;
}
if (term->logctx)
logtraffic(term->logctx, (unsigned char) c, LGTYP_ASCII);
break;