PyCtrlLn

A easy and quick consoling


License
MIT
Install
pip install PyCtrlLn==0.0.1

Documentation

PyCtrl

Build Status Coverage Status

Functions:

singleChoice

Takes 1-3 inputs:

1 - Array to be listed
2 - Set cursor color (See accepted colors below) - Default "Blue"
3 - Return array as postion value ("Val") or text ("Text") - Default: "Val"

Example:

valArray=["Choice1","Choice2","Choice3"]  
print(singleChoice(valArray,"Magenta","Text"))

MultiChoice

1 - Array to be listed
2 - Set cursor color (See accepted colors below) - Default "Blue"
3 - Return array as postion value ("Val") or text ("Text") - Default: "Val"
4 - Selected display character (Sets the selected character. "T" sets a tick, "X" sets a cross. Anything else is used directly as the character)
5 - Sets the displayed selecter character color (Same accepted colors as previous)

Example:

valArray=["Choice1","Choice2","Choice3"]  
print(*multiChoice(valArray,"Red","Text","X","Magenta"), sep='\n')  

Accepted colors :

Black
Red
Green
Yellow
Blue
Mangenta Cyan
White
Reset