Commit a824972
committed
Fix WPS and CLI column alignment in scan display
The to_str() method used inconsistent column widths and separators that
didn't match the header defined in scanner.py, causing WPS values to
appear under the CLI header and client counts to overflow past the table.
- Add _pad_colored() helper to pad ANSI-colored strings to exact visible widths
- Use consistent 2-space separators between all columns
- Match column widths (ESSID:26, BSSID:19, MFG:23, CH:4, ENCR:9, PWR:7, WPS:5, CLI:7)
- Fix classic.py header to use same column order and widths as scanner.py
https://claude.ai/code/session_019ijpUyTX2ZGrr1123Hteea1 parent af8d1dd commit a824972
2 files changed
Lines changed: 70 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
51 | 66 | | |
52 | 67 | | |
53 | 68 | | |
| |||
249 | 264 | | |
250 | 265 | | |
251 | 266 | | |
252 | | - | |
| 267 | + | |
253 | 268 | | |
254 | 269 | | |
255 | 270 | | |
| |||
260 | 275 | | |
261 | 276 | | |
262 | 277 | | |
263 | | - | |
| 278 | + | |
264 | 279 | | |
265 | 280 | | |
266 | 281 | | |
| |||
328 | 343 | | |
329 | 344 | | |
330 | 345 | | |
331 | | - | |
| 346 | + | |
332 | 347 | | |
333 | | - | |
| 348 | + | |
334 | 349 | | |
335 | | - | |
| 350 | + | |
336 | 351 | | |
337 | | - | |
| 352 | + | |
338 | 353 | | |
339 | | - | |
| 354 | + | |
340 | 355 | | |
341 | | - | |
342 | 356 | | |
343 | | - | |
344 | | - | |
345 | | - | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
346 | 384 | | |
347 | 385 | | |
348 | 386 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
53 | 64 | | |
54 | | - | |
| 65 | + | |
55 | 66 | | |
56 | | - | |
57 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
58 | 73 | | |
59 | 74 | | |
60 | 75 | | |
61 | 76 | | |
62 | 77 | | |
63 | 78 | | |
64 | | - | |
| 79 | + | |
65 | 80 | | |
66 | 81 | | |
67 | 82 | | |
| |||
0 commit comments