qcs-python/user/modules/pycapi/scrolltest.py
2023-05-02 04:38:30 +02:00

32 lines
716 B
Python

import threading
import time
import sys
import curses
# from colorama import init, Fore, Style
# init() # initialize Colorama
# def print_and_scroll(msg):
# sys.stdout.write(Fore.GREEN + msg + Style.RESET_ALL + '\n')
# sys.stdout.flush()
#
# # function to print a message every 2 seconds
# def thread_function():
# while True:
# time.sleep(2)
# print_and_scroll("Another thread output")
#
# # start the thread
# t = threading.Thread(target=thread_function)
# t.start()
#
# # print the input prompt
# print_and_scroll("Enter input:")
#
# # wait for input
# user_input = input()
#
# # print the input
# print_and_scroll("You entered: " + user_input)