aboutsummaryrefslogtreecommitdiff
path: root/tty.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2008-05-10 12:50:25 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2008-05-10 12:50:25 +0000
commit0dbbd777b11ad27c3a227f48cdaf66ea55c8de3b (patch)
tree90d78c2166a4e8c5d80998e81b851d349ac37430 /tty.c
parent58ca26cefae4eabdf4802dce8c7a2d5de34a725b (diff)
downloadrtmux-0dbbd777b11ad27c3a227f48cdaf66ea55c8de3b.tar.gz
rtmux-0dbbd777b11ad27c3a227f48cdaf66ea55c8de3b.tar.bz2
rtmux-0dbbd777b11ad27c3a227f48cdaf66ea55c8de3b.zip
Linux rxvt doesn't support parm_dch or delete_character.
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/tty.c b/tty.c
index 1ba489df..81717ba5 100644
--- a/tty.c
+++ b/tty.c
@@ -1,4 +1,4 @@
-/* $Id: tty.c,v 1.18 2008-01-02 19:22:21 nicm Exp $ */
+/* $Id: tty.c,v 1.19 2008-05-10 12:50:25 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -255,10 +255,6 @@ tty_find_term(char *name, int fd, char **cause)
xasprintf(cause, "parm_ich missing");
goto error;
}
- if (parm_dch == NULL && delete_character == NULL) {
- xasprintf(cause, "parm_dch missing");
- goto error;
- }
if (scroll_reverse == NULL) {
xasprintf(cause, "scroll_reverse missing");
goto error;
@@ -477,9 +473,12 @@ tty_vwrite(struct tty *tty, unused struct screen *s, int cmd, va_list ap)
ua = va_arg(ap, u_int);
if (parm_dch != NULL)
tty_puts(tty, tparm(parm_dch, ua));
- else {
+ else if (delete_character != NULL) {
while (ua-- > 0)
tty_puts(tty, delete_character);
+ } else {
+ while (ua-- > 0)
+ tty_putc(tty, '\008');
}
break;
case TTY_CURSORON: