diff options
author | michael <michael@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2012-08-20 22:29:08 +0000 |
---|---|---|
committer | michael <michael@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2012-08-20 22:29:08 +0000 |
commit | 46414a861370ab0f1c4a976e12b25b7a673d865e (patch) | |
tree | 3b9035191e35eb479a373fdcb5138739bb7ed6b4 /packages/fcl-process | |
parent | 6153dfdf059af67a956b8339ce8505b43e288ba3 (diff) | |
download | fpc-46414a861370ab0f1c4a976e12b25b7a673d865e.tar.gz |
* Set terminal correctly (fix for #21028)
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@22153 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'packages/fcl-process')
-rw-r--r-- | packages/fcl-process/src/unix/process.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/fcl-process/src/unix/process.inc b/packages/fcl-process/src/unix/process.inc index 1339b6460c..5caa4b5ca0 100644 --- a/packages/fcl-process/src/unix/process.inc +++ b/packages/fcl-process/src/unix/process.inc @@ -99,6 +99,8 @@ Function DetectXterm : String; begin Result:=FileSearch(s,GetEnvironmentVariable('PATH'),False)<>''; + If Result then + XTermProgram:=S; end; Function TestTerminals(Terminals : Array of String) : Boolean; @@ -111,9 +113,7 @@ Function DetectXterm : String; While (Not Result) and (I<=High(Terminals)) do begin Result:=TestTerminal(Terminals[i]); - If Result then - XTermProgram:=Terminals[i]; - inc(i); + inc(i); end; end; |