dill_tils.text package

Submodules

dill_tils.text.clear module

dill_tils.text.clear.clear()

Clear the console

The clear() function clears the terminal.

This uses the os module to detect the current operating system and runs the correct command in Terminal accordingly. This means that your programs will work both on Posix systems(macOS/Linux) as well as Windows.

Usage:

from dill_tils.text import clear

clear()

dill_tils.text.write module

dill_tils.text.write.write(string: str, delay: float = 0.06)

Print text to the console as if it was being typed.

Keyword arguments: string – str: Message to be written to the console. delay – float: Delay between each character.

The write() function writes a string to the terminal as if it was being typed.

Usage:

from dill_tils.text import write

write("Hello World!", 0.2)