Skip to content

Commit 2677ff7

Browse files
committed
Minor UI improvements
1 parent d4ddc71 commit 2677ff7

2 files changed

Lines changed: 9 additions & 8 deletions

File tree

cli/cli.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ func configureUI() {
177177
}
178178

179179
fmtutil.SeparatorSymbol = "–"
180+
fmtutil.SeparatorSize = 92
180181

181182
switch {
182183
case fmtc.IsTrueColorSupported():

cli/details.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -593,13 +593,13 @@ func printProtocolSuiteInfo(suite *sslscan.Suite, chaCha20Preference bool) {
593593

594594
switch {
595595
case insecure == true:
596-
fmtc.Printf(" {r}%-46s{!} {s}|{!} {r}%d (INSECURE){!} ", suite.Name, suite.CipherStrength)
596+
fmtc.Printf(" {r}%-52s{!} {s}|{!} {r}%d (INSECURE){!} ", suite.Name, suite.CipherStrength)
597597
case weak == true:
598-
fmtc.Printf(" {y}%-46s{!} {s}|{!} {y}%d (WEAK){!} ", suite.Name, suite.CipherStrength)
598+
fmtc.Printf(" {y}%-52s{!} {s}|{!} {y}%d (WEAK){!} ", suite.Name, suite.CipherStrength)
599599
case preferred == true:
600-
fmtc.Printf(" {*}%-46s{!} {s}|{!} %d ", suite.Name, suite.CipherStrength)
600+
fmtc.Printf(" {*}%-52s{!} {s}|{!} %d ", suite.Name, suite.CipherStrength)
601601
default:
602-
fmtc.Printf(" %-46s {s}|{!} %d ", suite.Name, suite.CipherStrength)
602+
fmtc.Printf(" %-52s {s}|{!} %d ", suite.Name, suite.CipherStrength)
603603
}
604604

605605
switch {
@@ -657,22 +657,22 @@ func printSimulationInfo(sim *sslscan.SIM, suites []*sslscan.ProtocolSuites) {
657657

658658
switch protocolsNames[sim.ProtocolID] {
659659
case "TLS 1.2", "TLS 1.3":
660-
fmtc.Printf("{g}%-7s{!} %-46s "+tag+" %d\n",
660+
fmtc.Printf("{g}%-7s{!} %-50s "+tag+" %d\n",
661661
protocolsNames[sim.ProtocolID],
662662
suite.Name, suite.CipherStrength,
663663
)
664664
case "TLS 1.1", "TLS 1.0":
665-
fmtc.Printf("{y}%-7s{!} %-46s "+tag+" %d\n",
665+
fmtc.Printf("{y}%-7s{!} %-50s "+tag+" %d\n",
666666
protocolsNames[sim.ProtocolID],
667667
suite.Name, suite.CipherStrength,
668668
)
669669
case "SSL 2.0", "SSL 3.0":
670-
fmtc.Printf("{r}%-7s{!} %-46s "+tag+" %d\n",
670+
fmtc.Printf("{r}%-7s{!} %-50s "+tag+" %d\n",
671671
protocolsNames[sim.ProtocolID],
672672
suite.Name, suite.CipherStrength,
673673
)
674674
default:
675-
fmtc.Printf("%-7s %-46s "+tag+" %d\n",
675+
fmtc.Printf("%-7s %-50s "+tag+" %d\n",
676676
protocolsNames[sim.ProtocolID],
677677
suite.Name, suite.CipherStrength,
678678
)

0 commit comments

Comments
 (0)