changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > plan9front / changeset: pc, efi loaders: erase characters when backspace is pressed

changeset 4228: fc8b053ff8a9
parent 4227: c3f8bf355f2e
child 4229: 1afc89787f72
author: mischief <mischief@offblast.org>
date: Sun, 25 Jan 2015 17:21:07 -0800
files: sys/src/boot/efi/sub.c sys/src/boot/pc/sub.c
description: pc, efi loaders: erase characters when backspace is pressed
     1.1--- a/sys/src/boot/efi/sub.c
     1.2+++ b/sys/src/boot/efi/sub.c
     1.3@@ -114,6 +114,8 @@ readline(void *f, char buf[64])
     1.4 				if(*p == '\r')
     1.5 					putc('\n');
     1.6 				else if(*p == '\b' && p > buf){
     1.7+					putc(' ');
     1.8+					putc('\b');
     1.9 					p--;
    1.10 					continue;
    1.11 				}
     2.1--- a/sys/src/boot/pc/sub.c
     2.2+++ b/sys/src/boot/pc/sub.c
     2.3@@ -137,6 +137,8 @@ readline(void *f, char buf[64])
     2.4 				if(*p == '\r')
     2.5 					putc('\n');
     2.6 				else if(*p == '\b' && p > buf){
     2.7+					putc(' ');
     2.8+					putc('\b');
     2.9 					p--;
    2.10 					continue;
    2.11 				}