1
0
mirror of https://github.com/tmate-io/tmate-ssh-server.git synced 2020-11-18 19:53:51 -08:00

Don't force wrapping with \n when asked, let the cursor code figure it out. Should fix terminals which use this to detect line breaks.

This commit is contained in:
Nicholas Marriott 2009-05-14 16:21:55 +00:00
parent 4b64bd7b01
commit dd2f8d7d74
2 changed files with 8 additions and 6 deletions

View File

@ -1,5 +1,7 @@
14 May 2009 14 May 2009
* Don't force wrapping with \n when asked, let the cursor code figure it out.
Should fix terminals which use this to detect line breaks.
* Major cleanup and restructuring of build infrastructure. Still separate files * Major cleanup and restructuring of build infrastructure. Still separate files
for GNU and BSD make, but they are now hugely simplified at the expense of for GNU and BSD make, but they are now hugely simplified at the expense of
adding a configure script which must be run before make. Now build and adding a configure script which must be run before make. Now build and
@ -1252,7 +1254,7 @@
(including mutt, emacs). No status bar yet and no key remapping or other (including mutt, emacs). No status bar yet and no key remapping or other
customisation. customisation.
$Id: CHANGES,v 1.285 2009-05-13 23:40:30 nicm Exp $ $Id: CHANGES,v 1.286 2009-05-14 16:21:54 nicm Exp $
LocalWords: showw utf UTF fulvio ciriaco joshe OSC APC gettime abc DEF OA clr LocalWords: showw utf UTF fulvio ciriaco joshe OSC APC gettime abc DEF OA clr
LocalWords: rivo nurges lscm Erdely eol smysession mysession ek dstname RB ms LocalWords: rivo nurges lscm Erdely eol smysession mysession ek dstname RB ms

10
tty.c
View File

@ -1,4 +1,4 @@
/* $Id: tty.c,v 1.97 2009-05-04 17:58:27 nicm Exp $ */ /* $Id: tty.c,v 1.98 2009-05-14 16:21:55 nicm Exp $ */
/* /*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -652,10 +652,10 @@ tty_cmd_linefeed(struct tty *tty, struct window_pane *wp, unused va_list ap)
tty_region(tty, s->old_rupper, s->old_rlower, wp->yoff); tty_region(tty, s->old_rupper, s->old_rlower, wp->yoff);
tty_cursor(tty, s->old_cx, s->old_cy, wp->xoff, wp->yoff); if (s->old_cy == s->old_rlower) {
tty_putc(tty, '\n'); tty_cursor(tty, s->old_cx, s->old_cy, wp->xoff, wp->yoff);
tty_putc(tty, '\n');
tty->cy++; }
} }
void void