- Timestamp:
- Dec 4, 2009 4:59:03 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsascmds.tcl
- Property rcs:date changed from 1999/01/06 04:03:01 to 1999/01/07 04:45:54
- Property rcs:rev changed from 1.1 to 1.2
- Property rcs:lines set to +29 -24
r17 r22 9 9 destroy . 10 10 } 11 # this is a compress program used for archiving of .EXP files12 set compressprog "pkzip -m"13 11 if {$tcl_platform(os) == "Windows 95" || $tcl_platform(os) == "Windows 98" } { 14 12 proc forknewterm {title command "background 0" "scrollbar 1" "wait 1"} { 15 global expgui 13 global env expgui 14 # Windows environment variables 15 # -95 does not seem to be able to use these 16 set env(GSAS) [file nativename $expgui(gsasexe)] 17 # PGPLOT_FONT is needed by PGPLOT 18 set env(PGPLOT_FONT) [file nativename [file join $expgui(gsasdir) fonts grfont.dat]] 19 # this is the number of lines/page in the .LST (etc.) file 20 set env(LENPAGE) 60 16 21 set pwd [file nativename [pwd]] 17 22 … … 42 47 # now for - brain-dead Windows-NT 43 48 proc forknewterm {title command "background 0" "scrollbar 1" "wait 1"} { 44 # all winexec commands are background commands -- ignore background 49 global env expgui 50 # Windows environment variables 51 # -95 does not seem to be able to use these 52 set env(GSAS) [file nativename $expgui(gsasexe)] 53 # PGPLOT_FONT is needed by PGPLOT 54 set env(PGPLOT_FONT) [file nativename [file join $expgui(gsasdir) fonts grfont.dat]] 55 # this is the number of lines/page in the .LST (etc.) file 56 set env(LENPAGE) 60 57 # all winexec commands are background commands -- ignore background arg 45 58 46 59 # can't get pause to work! -- ignore wait … … 58 71 } 59 72 } 60 # Windows environment variables 61 # -95 does not seem to be able to use these 62 set env(GSAS) [file nativename $expgui(gsasexe)] 63 # PGPLOT_FONT is needed by PGPLOT 64 set env(PGPLOT_FONT) [file nativename [file join $expgui(gsasdir) fonts grfont.dat]] 73 } 74 } else { 75 if [catch {set env(GSASBACKSPACE)}] {set env(GSASBACKSPACE) 1} 76 77 proc forknewterm {title command "background 0" "scrollbar 1" "wait 1"} { 78 global env expgui 79 # UNIX environment variables 80 set env(GSASEXE) $expgui(gsasexe) 81 set env(ATOMDATA) [file join $expgui(gsasdir) data atmdata.dat] 82 set env(ATMXSECT) [file join $expgui(gsasdir) data atmxsect.dat] 83 # PGPLOT_DIR is needed by PGPLOT 84 set env(PGPLOT_DIR) [file join $expgui(gsasdir) pgl] 65 85 # this is the number of lines/page in the .LST (etc.) file 66 86 set env(LENPAGE) 60 67 }68 } else {69 # UNIX environment variables70 set env(GSASEXE) $expgui(gsasexe)71 set env(ATOMDATA) [file join $expgui(gsasdir) data atmdata.dat]72 set env(ATMXSECT) [file join $expgui(gsasdir) data atmxsect.dat]73 # PGPLOT_DIR is needed by PGPLOT74 set env(PGPLOT_DIR) [file join $expgui(gsasdir) pgl]75 # this is the number of lines/page in the .LST (etc.) file76 set env(LENPAGE) 6077 if [catch {set env(GSASBACKSPACE)}] {set env(GSASBACKSPACE) 1}78 79 # this is a compress program used for archiving of .EXP files80 set compressprog gzip81 proc forknewterm {title command "background 0" "scrollbar 1" "wait 1"} {82 global env83 87 set termopts {} 84 88 if $env(GSASBACKSPACE) { … … 101 105 } 102 106 if !$background {wm iconify .} 103 eval exec xterm $termopts -title [list $title] \ 104 -e /bin/sh -c [list $command] $suffix 107 catch {eval exec xterm $termopts -title [list $title] \ 108 -e /bin/sh -c [list $command] $suffix} errmsg 109 if $expgui(debug) {puts "xterm result = $errmsg"} 105 110 if !$background {wm deiconify .} 106 111 }
Note: See TracChangeset
for help on using the changeset viewer.