Browse Source

* fix for 10758, additional terminal type checked (udev)

git-svn-id: trunk@16616 -
marco 14 năm trước cách đây
mục cha
commit
b6a8fb8a5b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      ide/fpusrscr.pas

+ 1 - 1
ide/fpusrscr.pas

@@ -753,7 +753,7 @@ begin
   if Not IsXterm and (IsATTY(stdinputhandle)<>-1) then
   if Not IsXterm and (IsATTY(stdinputhandle)<>-1) then
     begin
     begin
       Console:=TTyNetwork;  {Default: Network or other vtxxx tty}
       Console:=TTyNetwork;  {Default: Network or other vtxxx tty}
-      if (Copy(ThisTTY, 1, 8) = '/dev/tty') and (ThisTTY[9]<>'p') Then
+      if ((Copy(ThisTTY, 1, 8) = '/dev/tty') and (ThisTTY[9]<>'p')) or (Copy(ThisTTY,1,8)='/dev/vc/') Then
         begin
         begin
           Case ThisTTY[9] of
           Case ThisTTY[9] of
             '0'..'9' :
             '0'..'9' :