Skip to content

Commit

Permalink
Fix bug where some undisplayable characters from the host caused a hang.
Browse files Browse the repository at this point in the history
  • Loading branch information
SMerrony committed May 29, 2022
1 parent 478ad08 commit 74961f3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Src/display_p.ads
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ package Display_P is
procedure Clear_Dirty;
function Is_Dirty return Boolean;
procedure Init;
procedure Get_Cell (Line, Col : in N atural; Value : out Character; Blnk, Dm, Rv, Under, Prot : out Boolean);
procedure Get_Cell (Line, Col : in Natural; Value : out Character; Blnk, Dm, Rv, Under, Prot : out Boolean);
procedure Clear_Cell (Line, Col : in Natural);
procedure Clear_Unprotected_Cell (Line, Col : in Natural);
procedure Clear_Line (Line : in Integer);
Expand Down
2 changes: 1 addition & 1 deletion Src/gui.ads
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ package GUI is
package Handlers is new Gtk.Handlers.Callback (Widget_Type => Gtk.Widget.Gtk_Widget_Record);
package SB_Timeout_P is new Glib.Main.Generic_Sources (Gtk.Box.Gtk_Box);

App_SemVer : constant String := "v0.11.4"; -- TODO Update Version each release!
App_SemVer : constant String := "v0.11.5"; -- TODO Update Version each release!
App_Title : constant String := "DasherA";
App_Comment : constant String := "A Data General DASHER terminal emulator";
App_Author : constant String := "Stephen Merrony";
Expand Down
3 changes: 2 additions & 1 deletion Src/terminal.adb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

with Ada.Characters.Latin_1;
with Ada.Strings.Fixed;
-- with Ada.Text_IO;

with Gdk.Main;
with Glib.Main;
Expand Down Expand Up @@ -456,7 +457,7 @@ package body Terminal is

-- Finally! Put the character in the displayable matrix
C := Character'Val(127); -- the 'unknown character' character
if BDF_Font.Font.Is_Loaded(B_Int) then
if B_Int < 128 and then BDF_Font.Font.Is_Loaded(B_Int) then
C := B;
end if;

Expand Down

0 comments on commit 74961f3

Please sign in to comment.