Open XuCcc opened 6 years ago
I came across this too, but it happened even without any other packages.
#!/usr/bin/env python3.6
from terminaltables import SingleTable, DoubleTable
data = [
["Testing", "Header"],
["foo", "bar"],
]
print(SingleTable(data).table)
print(DoubleTable(data).table)
outputs:
lqqqqqqqqqwqqqqqqqqk
x Testing x Header x
tqqqqqqqqqnqqqqqqqqu
x foo x bar x
mqqqqqqqqqvqqqqqqqqj
╔═════════╦════════╗
║ Testing ║ Header ║
╠═════════╬════════╣
║ foo ║ bar ║
╚═════════╩════════╝
Interestingly, if I run it inside tmux it works fine:
┌─────────┬────────┐
│ Testing │ Header │
├─────────┼────────┤
│ foo │ bar │
└─────────┴────────┘
╔═════════╦════════╗
║ Testing ║ Header ║
╠═════════╬════════╣
║ foo ║ bar ║
╚═════════╩════════╝
I don't like the DoubleTable
, but the WindowsTable
appears to work fine as an alternative to UnixTable
on non-windows machines that I've tested if anyone else stumbles across this via Google like I did.
Hi All, Any news regarding this issue? SingleTable seems to print a lot of "q"'s - but using DoubleTable it works fine. This is really strange. Best regards
My Codes:
it workds ok,but after i import pwntools