Files
konsole/tests/combining.py
Martin T. H. Sandsmark a593f29e24 Limit ourselves to 3 combining characters
This seems to be the limit in all the test files I've been trying.
Without this we get an issue with too many combining characters where
Konsole will eventually just hang.

REVIEW: 129874
2017-01-22 22:18:13 +01:00

16 lines
349 B
Python

#!/usr/bin/env python3
'''
Generates an endless amount of combining characters
'''
import random
import string
combs = list("\u0300\u0301\u0302\u0303\u0304\u0305\u0306\u0307\u0308\u0309\u030A\u030B\u030C\u030D\u030E\u030F")
while True:
random.shuffle(combs)
print(random.choice(string.ascii_letters)+"".join(combs), end="", flush=True)