Map the Home and End keys as xterm does.

This commit is contained in:
mycroft 1999-04-22 20:06:02 +00:00
parent 70f6413687
commit 3800206dc5
1 changed files with 9 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: wsemul_vt100_keys.c,v 1.2 1998/07/14 19:32:17 drochner Exp $ */
/* $NetBSD: wsemul_vt100_keys.c,v 1.3 1999/04/22 20:06:02 mycroft Exp $ */
/*
* Copyright (c) 1998
@ -170,6 +170,14 @@ wsemul_vt100_translate(cookie, in, out)
case KS_KP_Next:
*out = "\033[6~";
return (4);
case KS_Home:
case KS_KP_Home:
*out = "\033[7~";
return (4);
case KS_End:
case KS_KP_End:
*out = "\033[8~";
return (4);
case KS_Up:
case KS_KP_Up:
if (edp->flags & VTFL_APPLCURSOR)