aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-04-23 21:28:45 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-04-23 21:28:45 +0000
commit7d6896ae792a26afb9204a3dc0d52c6c1a72cd59 (patch)
treec10dee7ab193cce7f44b698dc50232f1b706bba8
parent5fbdca890ab7dec63d96128d5b5ecd145b6e15f4 (diff)
downloadrtmux-7d6896ae792a26afb9204a3dc0d52c6c1a72cd59.tar.gz
rtmux-7d6896ae792a26afb9204a3dc0d52c6c1a72cd59.tar.bz2
rtmux-7d6896ae792a26afb9204a3dc0d52c6c1a72cd59.zip
Support NEL.
-rw-r--r--CHANGES5
-rw-r--r--input.c6
2 files changed, 9 insertions, 2 deletions
diff --git a/CHANGES b/CHANGES
index d68be569..1cbd47c2 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,5 +1,8 @@
23 April 2009
+* Support NEL, yet another way of making newline. Fixes the output from some
+ Gentoo packaging thing. Reported by someone on SF then logs that allowed a
+ fix sent by tcunha.
* Use the xenl terminfo flag to detect early-wrap terminals like the FreeBSD
console. Many thanks for a very informative email from Christian Weisgerber.
@@ -1213,7 +1216,7 @@
(including mutt, emacs). No status bar yet and no key remapping or other
customisation.
-$Id: CHANGES,v 1.274 2009-04-23 21:09:17 nicm Exp $
+$Id: CHANGES,v 1.275 2009-04-23 21:28:45 nicm Exp $
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
diff --git a/input.c b/input.c
index 3e18ce86..087a148d 100644
--- a/input.c
+++ b/input.c
@@ -1,4 +1,4 @@
-/* $Id: input.c,v 1.76 2009-03-28 20:17:29 nicm Exp $ */
+/* $Id: input.c,v 1.77 2009-04-23 21:28:45 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -630,6 +630,10 @@ input_handle_c1_control(u_char ch, struct input_ctx *ictx)
log_debug2("-- c1 %zu: %hhu (%c)", ictx->off, ch, ch);
switch (ch) {
+ case 'E': /* NEL */
+ screen_write_carriagereturn(&ictx->ctx);
+ screen_write_linefeed(&ictx->ctx);
+ break;
case 'M': /* RI */
screen_write_reverseindex(&ictx->ctx);
break;