summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--etc/root/dot.login2
-rw-r--r--etc/root/dot.profile4
-rw-r--r--sys/dev/syscons/syscons.c5
-rw-r--r--sys/i386/isa/syscons.c5
-rw-r--r--sys/isa/syscons.c5
5 files changed, 13 insertions, 8 deletions
diff --git a/etc/root/dot.login b/etc/root/dot.login
index ce14fb75fb46..a561ef0bbc1d 100644
--- a/etc/root/dot.login
+++ b/etc/root/dot.login
@@ -15,6 +15,4 @@ setenv MANPATH "${MANPATH}:/usr/local/interviews/man"
# A righteous umask
umask 22
-stty crt erase ^h
-
[ -x /usr/games/fortune ] && /usr/games/fortune
diff --git a/etc/root/dot.profile b/etc/root/dot.profile
index 92dbe5feda1f..b847b0686e89 100644
--- a/etc/root/dot.profile
+++ b/etc/root/dot.profile
@@ -1,8 +1,6 @@
-# $Id: dot.profile,v 1.12 1997/02/23 09:21:14 peter Exp $
+# $Id: dot.profile,v 1.13 1997/03/06 22:24:04 joerg Exp $
#
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin
-echo 'erase ^H, kill ^U, intr ^C'
-stty crt erase ^H kill ^U intr ^C
export PATH
HOME=/root
export HOME
diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c
index f34d99ebff23..1ce6e8ba81c5 100644
--- a/sys/dev/syscons/syscons.c
+++ b/sys/dev/syscons/syscons.c
@@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: syscons.c,v 1.206 1997/03/24 11:24:07 bde Exp $
+ * $Id: syscons.c,v 1.207 1997/03/28 10:11:24 yokota Exp $
*/
#include "sc.h"
@@ -553,6 +553,9 @@ scopen(dev_t dev, int flag, int mode, struct proc *p)
tp->t_dev = dev;
if (!(tp->t_state & TS_ISOPEN)) {
ttychars(tp);
+ /* Use the current setting of the <-- key as default VERASE. */
+ /* If the Delete key is preferable, an stty is necessary */
+ tp->t_cc[VERASE] = key_map.key[0x0e].map[0];
tp->t_iflag = TTYDEF_IFLAG;
tp->t_oflag = TTYDEF_OFLAG;
tp->t_cflag = TTYDEF_CFLAG;
diff --git a/sys/i386/isa/syscons.c b/sys/i386/isa/syscons.c
index f34d99ebff23..1ce6e8ba81c5 100644
--- a/sys/i386/isa/syscons.c
+++ b/sys/i386/isa/syscons.c
@@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: syscons.c,v 1.206 1997/03/24 11:24:07 bde Exp $
+ * $Id: syscons.c,v 1.207 1997/03/28 10:11:24 yokota Exp $
*/
#include "sc.h"
@@ -553,6 +553,9 @@ scopen(dev_t dev, int flag, int mode, struct proc *p)
tp->t_dev = dev;
if (!(tp->t_state & TS_ISOPEN)) {
ttychars(tp);
+ /* Use the current setting of the <-- key as default VERASE. */
+ /* If the Delete key is preferable, an stty is necessary */
+ tp->t_cc[VERASE] = key_map.key[0x0e].map[0];
tp->t_iflag = TTYDEF_IFLAG;
tp->t_oflag = TTYDEF_OFLAG;
tp->t_cflag = TTYDEF_CFLAG;
diff --git a/sys/isa/syscons.c b/sys/isa/syscons.c
index f34d99ebff23..1ce6e8ba81c5 100644
--- a/sys/isa/syscons.c
+++ b/sys/isa/syscons.c
@@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: syscons.c,v 1.206 1997/03/24 11:24:07 bde Exp $
+ * $Id: syscons.c,v 1.207 1997/03/28 10:11:24 yokota Exp $
*/
#include "sc.h"
@@ -553,6 +553,9 @@ scopen(dev_t dev, int flag, int mode, struct proc *p)
tp->t_dev = dev;
if (!(tp->t_state & TS_ISOPEN)) {
ttychars(tp);
+ /* Use the current setting of the <-- key as default VERASE. */
+ /* If the Delete key is preferable, an stty is necessary */
+ tp->t_cc[VERASE] = key_map.key[0x0e].map[0];
tp->t_iflag = TTYDEF_IFLAG;
tp->t_oflag = TTYDEF_OFLAG;
tp->t_cflag = TTYDEF_CFLAG;