From: David van Moolenbroek Date: Mon, 25 Aug 2014 19:33:27 +0000 (+0000) Subject: tty/pty: change back default CERASE to ^H X-Git-Tag: v3.3.0~48 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zpipe.c?a=commitdiff_plain;h=refs%2Fchanges%2F83%2F2783%2F1;p=minix.git tty/pty: change back default CERASE to ^H Alternatives should be considered (such as changing our keymaps to better match NetBSD) in due time, but for now, the current default is incredibly annoying! Change-Id: I4cab5d6a9f39983ee8aa80362768fdb9cf3db948 --- diff --git a/sys/sys/ttydefaults.h b/sys/sys/ttydefaults.h index b46391310..42c675845 100644 --- a/sys/sys/ttydefaults.h +++ b/sys/sys/ttydefaults.h @@ -61,7 +61,11 @@ #define CTRL(x) (x&037) #define CEOF CTRL('d') #define CEOL ((unsigned char)'\377') /* XXX avoid _POSIX_VDISABLE */ +#if defined(__minix) +#define CERASE CTRL('h') +#else #define CERASE 0177 +#endif /* defined(__minix) */ #define CINTR CTRL('c') #define CSTATUS CTRL('t') #define CKILL CTRL('u')