editor: handle DEL at prompt()

README: small corrections
This commit is contained in:
slederer 2024-09-27 02:18:14 +02:00
parent 60db522e87
commit 18b95b6bb6
2 changed files with 16 additions and 9 deletions

View file

@ -390,8 +390,7 @@ begin
if numMode then
isValidChar := isDigit(ch)
else
isValidChar := (ord(ch) >= 32) and
(ord(ch) <> 127); (* don't want DEL character *)
isValidChar := (ord(ch) >= 32)
end;
begin
@ -427,7 +426,7 @@ begin
c := chr(key);
l := length(strReturn);
if c = #8 then
if (c = #8) or (c = #127) then
doBackspace
else
if isValidChar(c) then