瀏覽代碼

* tune new variable TerminalSupportsBold and TerminalSupportsHighIntensityColors
for BeOS and Haiku.
* BeOS : the terminal is very limited. Disabling both give best result.
* Haiku : Haiku's terminal claims to be xterm but has it's own problems.

git-svn-id: trunk@13741 -

olivier 16 年之前
父節點
當前提交
2e8a93da16
共有 1 個文件被更改,包括 10 次插入0 次删除
  1. 10 0
      rtl/unix/video.pp

+ 10 - 0
rtl/unix/video.pp

@@ -1116,14 +1116,24 @@ begin
          cur_term_strings:=terminal_data[i];
     if cur_term_strings=@term_codes_xterm then
     begin
+      {$ifdef haiku}
+      TerminalSupportsBold := true;
+      TerminalSupportsHighIntensityColors := false;
+      {$else}
       TerminalSupportsBold := false;
       TerminalSupportsHighIntensityColors := true;
+      {$endif}
     end
     else
     begin
       TerminalSupportsBold := true;
       TerminalSupportsHighIntensityColors := false;
     end;
+    if cur_term_strings=@term_codes_beos then
+    begin
+      TerminalSupportsBold := false;
+      TerminalSupportsHighIntensityColors := false;      
+    end;  
     if cur_term_strings=@term_codes_freebsd then
       console:=ttyFreeBSD;
 {$ifdef linux}