Lots of NodeSpy terminal updates
This commit is contained in:
parent
107d9ca722
commit
5c90d03dd2
|
@ -7,5 +7,5 @@
|
||||||
[0;34m°°²ÛÛÛÛ [1;30;44m²[40mÜÜÜܲ [0;34mÛÛÛÛÛ [1;30m±Ü [0;34mßßßßÛÛÛÛ²ÛÛÛÛÛÛÛÛÛÛ²± ßÛÛÛÛÜÜÛÛÛÛÛ[1m±[44m°°°°°[1C[0;34mßÛÛÛÛÜÜÜÜÜ [1;30mÜÜÛ
|
[0;34m°°²ÛÛÛÛ [1;30;44m²[40mÜÜÜܲ [0;34mÛÛÛÛÛ [1;30m±Ü [0;34mßßßßÛÛÛÛ²ÛÛÛÛÛÛÛÛÛÛ²± ßÛÛÛÛÜÜÛÛÛÛÛ[1m±[44m°°°°°[1C[0;34mßÛÛÛÛÜÜÜÜÜ [1;30mÜÜÛ
|
||||||
ÜÜþ [0;34mßß² [1;30m± °°²ÜÜÜÜÜÜܲßßßßß [0;34m²ÛÛÛ ²²²ÛÛÛ²ßßßß [1;30mÞÜÜ [0;34mßßßßßßßß ßßßßß ßßßßßßß [1;30mÝ°°
|
ÜÜþ [0;34mßß² [1;30m± °°²ÜÜÜÜÜÜܲßßßßß [0;34m²ÛÛÛ ²²²ÛÛÛ²ßßßß [1;30mÞÜÜ [0;34mßßßßßßßß ßßßßß ßßßßßßß [1;30mÝ°°
|
||||||
[8C°[12CÝ[6C[0;34m°°[11C[1;30mþ Þßßßßßßßßßßßßß ß [37mN[0mode [1mS[0mpy [1;30mßÜ
|
[8C°[12CÝ[6C[0;34m°°[11C[1;30mþ Þßßßßßßßßßßßßß ß [37mN[0mode [1mS[0mpy [1;30mßÜ
|
||||||
[0mワ[1mワワワワワワワワワワワワワワワワワワワワワワワワワワ[0mワ ワ[1mワワワワワワワワワワワワワワワワワワワワワワワワワワ[0mワ ワ[1mワワワワワワワワワワ[0mワ ワ[1mワワワワワワワ[0mワ[11;1H[1;30;47mイ [0;30;47mSystem Name [37;40mイ[1mウ[30;47mイ [0;30;47mAddress [37;40mイ[1mウ[30;47mイ [0;30;47mLastCall [1;40mイ[37mウ[30;47mイ [0;30;47mCalls [1mイ[12;1H[40mロ゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚[34mウ[30m゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚[34mウ[30m゚゚゚゚゚゚゚゚゚゚゚゚[34mウ[30m゚゚゚゚゚゚゚゚ロ[13;1Hン[78C゙[14;1Hン[78C゙[15;1H[0mン[78C゙[16;1Hン[78C゙[17;1Hン[78C゙[18;1H[1mン[78C゙[19;1H[0mン[78C゙[20;1H[1mン[78C゙[21;1Hン[78C゙[22;1Hイワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワイ[23;1H[0mー[47m [30mDefault NodeSpy PhoneBook [37;40mー[24;1H [1;30m゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚
|
[0mワ[1mワワワワワワワワワワワワワワワワワワワワワワワワワワ[0mワ ワ[1mワワワワワワワワワワワワワワワワワワワワワワワワワワ[0mワ ワ[1mワワワワワワワワワワ[0mワ ワ[1mワワワワワワワ[0mワ[11;1H[1;30;47mイ [0;30;47mSystem Name [37;40mイウ[1;30;47mイ [0;30;47mAddress [37;40mイウ[1;30;47mイ [0;30;47mLastCall [1;40mイ[0mウ[1;30;47mイ [0;30;47mCalls [1mイ[12;1H[40mロ゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚[0;34mウ[1;30m゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚[0;34mウ[1;30m゚゚゚゚゚゚゚゚゚゚゚゚[0;34mウ[1;30m゚゚゚゚゚゚゚゚ロ[13;1Hン[78C゙[14;1Hン[78C゙[15;1H[0mン[78C゙[16;1Hン[78C゙[17;1Hン[78C゙[18;1H[1mン[78C゙[19;1H[0mン[78C゙[20;1H[1mン[78C゙[21;1Hン[78C゙[22;1Hイワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワワイ[23;1H[0mー[47m [30mNodeSpy Telnet Directory [37;40mー[24;1H [1;30m゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚゚
|
||||||
[37mENTER[30m: [0mCall [1mALT+E[30m: [0mEdit [1mALT+S[30m: [0mSort [1mDELETE[30m: [0mClear [1mESCAPE[30m: [0mQuit[0m[255D
|
[37mENTER[30m: [0mCall [1mALT+E[30m: [0mEdit [1mINSERT[30m: [0mAdd [1mDELETE[30m: [0mClear [1mESCAPE[30m: [0mQuit[0m[255D
|
|
@ -2,8 +2,8 @@ Procedure DrawTerminalAnsi;
|
||||||
Const
|
Const
|
||||||
IMAGEDATA_WIDTH=80;
|
IMAGEDATA_WIDTH=80;
|
||||||
IMAGEDATA_DEPTH=25;
|
IMAGEDATA_DEPTH=25;
|
||||||
IMAGEDATA_LENGTH=1115;
|
IMAGEDATA_LENGTH=1112;
|
||||||
IMAGEDATA : array [1..1115] of Char = (
|
IMAGEDATA : array [1..1112] of Char = (
|
||||||
#1,#16,'Ü','Ü',#25,#10, #8,'Ü','Ü',#25, #3, #7,'°', #0,#23,'²',#16,
|
#1,#16,'Ü','Ü',#25,#10, #8,'Ü','Ü',#25, #3, #7,'°', #0,#23,'²',#16,
|
||||||
#25,#23, #9,#26, #4,'Ü',#25, #9,#14,'±','Û','±', #7,'°', #0,#23,'²',
|
#25,#23, #9,#26, #4,'Ü',#25, #9,#14,'±','Û','±', #7,'°', #0,#23,'²',
|
||||||
#16,#25, #8, #7,'°', #0,#23,'²', #8,#16,'g','j','!',#24,' ', #9,#17,
|
#16,#25, #8, #7,'°', #0,#23,'²', #8,#16,'g','j','!',#24,' ', #9,#17,
|
||||||
|
@ -54,22 +54,22 @@ Const
|
||||||
#24, #7,'Ü',#15,#26,#25,'Ü', #7,'Ü',' ','Ü',#15,#26,#25,'Ü', #7,'Ü',
|
#24, #7,'Ü',#15,#26,#25,'Ü', #7,'Ü',' ','Ü',#15,#26,#25,'Ü', #7,'Ü',
|
||||||
' ','Ü',#15,#26, #9,'Ü', #7,'Ü',' ','Ü',#15,#26, #6,'Ü', #7,'Ü',#24,
|
' ','Ü',#15,#26, #9,'Ü', #7,'Ü',' ','Ü',#15,#26, #6,'Ü', #7,'Ü',#24,
|
||||||
#8,#23,'²',' ', #0,'S','y','s','t','e','m',' ','N','a','m','e',#25,
|
#8,#23,'²',' ', #0,'S','y','s','t','e','m',' ','N','a','m','e',#25,
|
||||||
#13, #7,#16,'²',#15,'³', #8,#23,'²',' ', #0,'A','d','d','r','e','s',
|
#13, #7,#16,'²','³', #8,#23,'²',' ', #0,'A','d','d','r','e','s','s',
|
||||||
's',#25,#17, #7,#16,'²',#15,'³', #8,#23,'²',' ', #0,'L','a','s','t',
|
#25,#17, #7,#16,'²','³', #8,#23,'²',' ', #0,'L','a','s','t','C','a',
|
||||||
'C','a','l','l',' ', #8,#16,'²',#15,'³', #8,#23,'²',' ', #0,'C','a',
|
'l','l',' ', #8,#16,'²', #7,'³', #8,#23,'²',' ', #0,'C','a','l','l',
|
||||||
'l','l','s',' ', #8,'²',#24,#16,'Û',#26,#26,'ß', #9,'³', #8,#26,#27,
|
's',' ', #8,'²',#24,#16,'Û',#26,#26,'ß', #1,'³', #8,#26,#27,'ß', #1,
|
||||||
'ß', #9,'³', #8,#26,#11,'ß', #9,'³', #8,#26, #7,'ß','Û',#24,'Ý',#25,
|
'³', #8,#26,#11,'ß', #1,'³', #8,#26, #7,'ß','Û',#24,'Ý',#25,'M','Þ',
|
||||||
'M','Þ',#24,'Ý',#25,'M','Þ',#24, #7,'Ý',#25,'M','Þ',#24,'Ý',#25,'M',
|
#24,'Ý',#25,'M','Þ',#24, #7,'Ý',#25,'M','Þ',#24,'Ý',#25,'M','Þ',#24,
|
||||||
'Þ',#24,'Ý',#25,'M','Þ',#24,#15,'Ý',#25,'M','Þ',#24, #7,'Ý',#25,'M',
|
'Ý',#25,'M','Þ',#24,#15,'Ý',#25,'M','Þ',#24, #7,'Ý',#25,'M','Þ',#24,
|
||||||
'Þ',#24,#15,'Ý',#25,'M','Þ',#24,'Ý',#25,'M','Þ',#24,'²',#26,'M','Ü',
|
#15,'Ý',#25,'M','Þ',#24,'Ý',#25,'M','Þ',#24,'²',#26,'M','Ü','²',#24,
|
||||||
'²',#24, #7,'°',#23,#25,#26, #0,'D','e','f','a','u','l','t',' ','N',
|
#7,'°',#23,#25,#27, #0,'N','o','d','e','S','p','y',' ','T','e','l',
|
||||||
'o','d','e','S','p','y',' ','P','h','o','n','e','B','o','o','k',#25,
|
'n','e','t',' ','D','i','r','e','c','t','o','r','y',#25,#25, #7,#16,
|
||||||
#25, #7,#16,'°',#24,' ', #8,#26,'M','ß',#24,#25, #2,#15,'E','N','T',
|
'°',#24,' ', #8,#26,'M','ß',#24,#25, #2,#15,'E','N','T','E','R', #8,
|
||||||
'E','R', #8,':',' ', #7,'C','a','l','l',#25, #3,#15,'A','L','T','+',
|
':',' ', #7,'C','a','l','l',#25, #3,#15,'A','L','T','+','E', #8,':',
|
||||||
'E', #8,':',' ', #7,'E','d','i','t',#25, #3,#15,'A','L','T','+','S',
|
' ', #7,'E','d','i','t',#25, #3,#15,'I','N','S','E','R','T', #8,':',
|
||||||
#8,':',' ', #7,'S','o','r','t',#25, #3,#15,'D','E','L','E','T','E',
|
' ', #7,'A','d','d',#25, #3,#15,'D','E','L','E','T','E', #8,':',' ',
|
||||||
#8,':',' ', #7,'C','l','e','a','r',#25, #3,#15,'E','S','C','A','P',
|
#7,'C','l','e','a','r',#25, #3,#15,'E','S','C','A','P','E', #8,':',
|
||||||
'E', #8,':',' ', #7,'Q','u','i','t',#24);
|
' ', #7,'Q','u','i','t',#24);
|
||||||
Begin
|
Begin
|
||||||
Screen.LoadScreenImage(ImageData, ImageData_Length, ImageData_Width, 1, 1);
|
Screen.LoadScreenImage(ImageData, ImageData_Length, ImageData_Width, 1, 1);
|
||||||
End;
|
End;
|
||||||
|
|
|
@ -105,7 +105,8 @@ Begin
|
||||||
Until False;
|
Until False;
|
||||||
End;
|
End;
|
||||||
|
|
||||||
MsgBox.Close;
|
If BoxType <> 2 Then MsgBox.Close;
|
||||||
|
|
||||||
MsgBox.Free;
|
MsgBox.Free;
|
||||||
|
|
||||||
Screen.CursorXY (SavedX, SavedY);
|
Screen.CursorXY (SavedX, SavedY);
|
||||||
|
|
|
@ -62,17 +62,21 @@ Begin
|
||||||
GetAddressPort := 23;
|
GetAddressPort := 23;
|
||||||
End;
|
End;
|
||||||
|
|
||||||
|
Function GetNewRecord : PhoneRec;
|
||||||
|
Begin
|
||||||
|
FillChar (Result, SizeOf(PhoneRec), 0);
|
||||||
|
|
||||||
|
Result.StatusBar := True;
|
||||||
|
Result.LastCall := '00/00/00';
|
||||||
|
Result.Calls := '0';
|
||||||
|
End;
|
||||||
|
|
||||||
Procedure InitializeBook (Var Book: PhoneBookRec);
|
Procedure InitializeBook (Var Book: PhoneBookRec);
|
||||||
Var
|
Var
|
||||||
Count : SmallInt;
|
Count : SmallInt;
|
||||||
Begin
|
Begin
|
||||||
FillChar (Book, SizeOf(Book), 0);
|
For Count := 1 to 100 Do
|
||||||
|
Book[Count] := GetNewRecord;
|
||||||
For Count := 1 to 100 Do Begin
|
|
||||||
Book[Count].StatusBar := True;
|
|
||||||
Book[Count].LastCall := '00/00/00';
|
|
||||||
Book[Count].Calls := '0';
|
|
||||||
End;
|
|
||||||
|
|
||||||
Book[1].Name := 'Local Login';
|
Book[1].Name := 'Local Login';
|
||||||
Book[1].Address := 'localhost:' + strI2S(Config.INetTNPort);
|
Book[1].Address := 'localhost:' + strI2S(Config.INetTNPort);
|
||||||
|
@ -84,7 +88,7 @@ Var
|
||||||
Buffer : Array[1..4096] of Char;
|
Buffer : Array[1..4096] of Char;
|
||||||
Count : SmallInt;
|
Count : SmallInt;
|
||||||
Begin
|
Begin
|
||||||
ShowMsgBox (2, 'Saving phonebook');
|
//ShowMsgBox (2, 'Saving phonebook');
|
||||||
|
|
||||||
Assign (OutFile, 'nodespy.phn');
|
Assign (OutFile, 'nodespy.phn');
|
||||||
SetTextBuf (OutFile, Buffer);
|
SetTextBuf (OutFile, Buffer);
|
||||||
|
@ -156,7 +160,7 @@ Begin
|
||||||
|
|
||||||
If Dial.StatusBar Then Begin
|
If Dial.StatusBar Then Begin
|
||||||
Screen.SetWindow (1, 1, 80, 24, True);
|
Screen.SetWindow (1, 1, 80, 24, True);
|
||||||
Screen.WriteXY (1, 25, Config.StatusColor3, strPadC('ALT-X/Quit', 80, ' '));
|
Screen.WriteXY (1, 25, Config.StatusColor3, strPadC('ALT/L-Send Login Info ALT-X/Quit', 80, ' '));
|
||||||
End;
|
End;
|
||||||
|
|
||||||
Term.SetReplyClient(TIOBase(Client));
|
Term.SetReplyClient(TIOBase(Client));
|
||||||
|
@ -253,8 +257,11 @@ End;
|
||||||
|
|
||||||
Function GetTerminalEntry (Var Book: PhoneBookRec; Var Dial: PhoneRec) : Boolean;
|
Function GetTerminalEntry (Var Book: PhoneBookRec; Var Dial: PhoneRec) : Boolean;
|
||||||
Var
|
Var
|
||||||
Count : SmallInt;
|
Count : SmallInt;
|
||||||
List : TMenuList;
|
Count2 : SmallInt;
|
||||||
|
List : TMenuList;
|
||||||
|
Found : Boolean;
|
||||||
|
Picked : SmallInt;
|
||||||
Begin
|
Begin
|
||||||
Result := False;
|
Result := False;
|
||||||
|
|
||||||
|
@ -271,15 +278,21 @@ Begin
|
||||||
|
|
||||||
DrawTerminalAnsi;
|
DrawTerminalAnsi;
|
||||||
|
|
||||||
Repeat
|
Picked := 1;
|
||||||
List := TMenuList.Create(Screen);
|
|
||||||
|
|
||||||
List.NoWindow := True;
|
List := TMenuList.Create(Screen);
|
||||||
List.AllowTag := False;
|
|
||||||
List.LoAttr := 7;
|
List.NoWindow := True;
|
||||||
List.HiAttr := 9 + 1 * 16;
|
List.AllowTag := False;
|
||||||
List.LoChars := #13#27;
|
List.LoAttr := 7;
|
||||||
List.HiChars := #18;
|
List.HiAttr := 9 + 1 * 16;
|
||||||
|
List.LoChars := #13#27;
|
||||||
|
List.HiChars := #18#82#83;
|
||||||
|
|
||||||
|
Repeat
|
||||||
|
List.Clear;
|
||||||
|
|
||||||
|
List.Picked := Picked;
|
||||||
|
|
||||||
For Count := 1 to 100 Do
|
For Count := 1 to 100 Do
|
||||||
List.Add(strPadR(Book[Count].Name, 26, ' ') + ' ' +
|
List.Add(strPadR(Book[Count].Name, 26, ' ') + ' ' +
|
||||||
|
@ -290,6 +303,8 @@ Begin
|
||||||
|
|
||||||
List.Open(1, 12, 80, 22);
|
List.Open(1, 12, 80, 22);
|
||||||
|
|
||||||
|
Picked := List.Picked;
|
||||||
|
|
||||||
Case List.ExitCode of
|
Case List.ExitCode of
|
||||||
#13 : If Book[List.Picked].Address = '' Then
|
#13 : If Book[List.Picked].Address = '' Then
|
||||||
ShowMsgBox(0, 'Address is empty')
|
ShowMsgBox(0, 'Address is empty')
|
||||||
|
@ -308,10 +323,38 @@ Begin
|
||||||
End;
|
End;
|
||||||
#18 : EditEntry(Book, List.Picked);
|
#18 : EditEntry(Book, List.Picked);
|
||||||
#27 : Break;
|
#27 : Break;
|
||||||
End;
|
#82 : Begin
|
||||||
|
Found := False;
|
||||||
|
|
||||||
List.Free;
|
For Count := List.Picked to 100 Do
|
||||||
|
If (Book[Count].Name = '') and (Book[Count].Address = '') and (Book[Count].Calls = '0') Then Begin
|
||||||
|
Found := True;
|
||||||
|
Break;
|
||||||
|
End;
|
||||||
|
|
||||||
|
If Not Found Then
|
||||||
|
ShowMsgBox (0, 'No blank entries available')
|
||||||
|
Else Begin
|
||||||
|
For Count2 := Count DownTo List.Picked + 1 Do
|
||||||
|
Book[Count2] := Book[Count2 - 1];
|
||||||
|
|
||||||
|
Book[List.Picked] := GetNewRecord;
|
||||||
|
|
||||||
|
WriteBook(Book);
|
||||||
|
End;
|
||||||
|
End;
|
||||||
|
#83 : If ShowMsgBox(1, 'Delete this record?') Then Begin
|
||||||
|
For Count := List.Picked to 100 - 1 Do
|
||||||
|
Book[Count] := Book[Count + 1];
|
||||||
|
|
||||||
|
Book[100] := GetNewRecord;
|
||||||
|
|
||||||
|
WriteBook(Book);
|
||||||
|
End;
|
||||||
|
End;
|
||||||
Until False;
|
Until False;
|
||||||
|
|
||||||
|
List.Free;
|
||||||
End;
|
End;
|
||||||
|
|
||||||
Procedure Terminal;
|
Procedure Terminal;
|
||||||
|
|
Loading…
Reference in New Issue