Check-in [885044ef20]
Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | More current vars test (multiline definition and filechooser/button). Check all colors in Write-Host test. |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
885044ef20817e498edd15ff539d3054 |
| User & Date: | mario 2018-04-15 13:15:03 |
Context
|
2018-04-15
| ||
| 18:22 | Write-Splash fix for PS2. Release a 0.9.0 check-in: 8ad68eaa09 user: mario tags: trunk, 0.9.0 | |
| 13:15 | More current vars test (multiline definition and filechooser/button). Check all colors in Write-Host test. check-in: 885044ef20 user: mario tags: trunk | |
| 13:14 | Reintroduce color mapping, some HTML escaping. check-in: 5f7c8e0cc1 user: mario tags: trunk | |
Changes
Changes to tools/test/test_vars.ps1.
1 2 3 4 5 6 7 |
# api: multitool
# title: test vars
# description: $GUI.vars and Get-ParamVarsCmd interpol
# version: 0.0
# param: machine, username, field1, field2
# vars:
# { name: machine, description: computer name, type: str, value: $machine }
| | | > > | > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# api: multitool
# title: test vars
# description: $GUI.vars and Get-ParamVarsCmd interpol
# version: 0.0
# param: machine, username, field1, field2
# vars:
# { name: machine, description: computer name, type: str, value: $machine }
# { name: username, description: 'who??', type: str, value: $username }
# { name: field1, description: extra, type: btn, value: $ticketnum }
# {
# name: field2,
# description: second,
# type: file,
# value: 2222222222
# }
# category: test
# type: window
#
# testy test
#-- params
param($mach=0, $user=0, $field1=0, $field2=0)
Write-Host "host=$mach"
Write-Host "user=$user"
Write-Host "f1=$field1"
Write-Host "f2=$field2"
Read-host "Wait"
|
Changes to tools/test/test_writehost.ps1.
1 2 3 4 5 | # api: multitool # type: inline # category: test # title: Write-Host # description: test color output | | > | > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 |
# api: multitool
# type: inline
# category: test
# title: Write-Host
# description: test color output
# version: 0.2
Write-Host "--FG--"
[Enum]::GetValues([ConsoleColor]) | % { Write-Host $_ -f $_ }
Write-Host "--BG--"
[Enum]::GetValues([ConsoleColor]) | % { Write-Host $_ -b $_ }
|