Pass through backspace for now.

This commit is contained in:
Nicholas Marriott
2007-09-21 19:24:37 +00:00
parent f145108258
commit 1fefbb7a85
5 changed files with 40 additions and 29 deletions

View File

@ -1,4 +1,4 @@
/* $Id: server.c,v 1.9 2007-09-20 18:03:23 nicm Exp $ */
/* $Id: server.c,v 1.10 2007-09-21 19:24:37 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -575,6 +575,12 @@ user_input(struct client *c, size_t in)
case '\005':
key = KEYC_LL;
goto again;
case '\010':
key = KEYC_BACKSPACE;
goto again;
case '\177':
key = KEYC_DC;
goto again;
case '\013':
c->buf[c->idx + 1] = '\0';
input_store_zero(c->out, CODE_CURSOROFF);