New $X formatting MCI code
This commit is contained in:
parent
cb08f03b24
commit
4e23c5ac49
|
@ -289,7 +289,9 @@ Var
|
|||
Code : String[2];
|
||||
Begin
|
||||
If FmtString Then Begin
|
||||
|
||||
FmtString := False;
|
||||
|
||||
Case FmtType of
|
||||
1 : Str := strPadR(Str, FmtLen + Length(Str) - Length(strStripPipe(Str)), ' ');
|
||||
2 : Str := strPadL(Str, FmtLen + Length(Str) - Length(strStripPipe(Str)), ' ');
|
||||
|
@ -404,6 +406,10 @@ Begin
|
|||
FmtString := True;
|
||||
FmtType := 1;
|
||||
End;
|
||||
'X' : Begin
|
||||
FmtString := True;
|
||||
FmtType := 17;
|
||||
End;
|
||||
End;
|
||||
'&' : Case Code[2] of
|
||||
'1' : LastMCIValue := PromptInfo[1];
|
||||
|
@ -770,6 +776,13 @@ Begin
|
|||
|
||||
FmtString := False;
|
||||
End;
|
||||
17: Begin
|
||||
Inc (A);
|
||||
FmtString := False;
|
||||
|
||||
If Screen.CursorX < FmtLen Then
|
||||
BufAddStr (strRep(Str[A], FmtLen - Screen.CursorX + 1));
|
||||
End;
|
||||
End;
|
||||
End;
|
||||
End Else
|
||||
|
@ -1076,6 +1089,12 @@ Begin
|
|||
BaudEmulator := FmtLen;
|
||||
FmtString := False;
|
||||
End;
|
||||
17: Begin
|
||||
FmtString := False;
|
||||
|
||||
If Screen.CursorX < FmtLen Then
|
||||
BufAddStr (strRep(GetChar, FmtLen - Screen.CursorX + 1));
|
||||
End;
|
||||
End;
|
||||
End;
|
||||
End;
|
||||
|
|
Loading…
Reference in New Issue