diff options
author | Jakob Stendahl <jakob.stendahl@outlook.com> | 2019-08-15 15:07:24 +0200 |
---|---|---|
committer | Jakob Stendahl <jakob.stendahl@outlook.com> | 2019-08-15 15:07:24 +0200 |
commit | 4a6e117c9425b4b7ec0875b654c20ea92d3d7ce0 (patch) | |
tree | 078f52f42b70649c73e4d8b1a9ed2a54708be103 /TermIO.egg-info | |
download | TermIO-python-package-4a6e117c9425b4b7ec0875b654c20ea92d3d7ce0.tar.gz TermIO-python-package-4a6e117c9425b4b7ec0875b654c20ea92d3d7ce0.zip |
:sparkles: Initial commit
Diffstat (limited to 'TermIO.egg-info')
-rw-r--r-- | TermIO.egg-info/PKG-INFO | 98 | ||||
-rw-r--r-- | TermIO.egg-info/SOURCES.txt | 8 | ||||
-rw-r--r-- | TermIO.egg-info/dependency_links.txt | 1 | ||||
-rw-r--r-- | TermIO.egg-info/top_level.txt | 2 |
4 files changed, 109 insertions, 0 deletions
diff --git a/TermIO.egg-info/PKG-INFO b/TermIO.egg-info/PKG-INFO new file mode 100644 index 0000000..d73af34 --- /dev/null +++ b/TermIO.egg-info/PKG-INFO @@ -0,0 +1,98 @@ +Metadata-Version: 2.1 +Name: TermIO +Version: 0.1 +Summary: Simple terminal manipulator +Home-page: https://github.com/jakobst1n/TermIO-python-package +Author: jakobst1n +Author-email: jakob.stendahl@outlook.com +License: UNKNOWN +Description: # TermIO + Simple library that makes it easier to manipulate the terminal using escape + sequences. + + It does not work in all terminal and terminal-emulators. But i have generally + had good with bash. + + ``` + import TermIO + ``` + + ## var `TermIO.rows` + Rows in the terminal. Not updating as of now... + + ## var `TermIO.columns` + Number of columns in the terminal. Not updating either... + + ## func `TermIO.Cursor.SetPos(col, row, flush=True)` + Set cursor to a spesific column and row in the terminal. + ``` + col : The column number to put the cursor. + row : The row number to put the cursor. + flush : Wether or not to flush the codes printed (Default is true). + ``` + + ## func `TermIO.Cursor.Left(n, flush=True)` + Move the cursor `n` characters to the left. + ``` + n : number + flush : Wether or not to flush the codes printed (Default is true). + ``` + + ## func `TermIO.Cursor.Right(n, flush=True)` + Move the cursor `n` characters to the right. + ``` + n : number + flush : Wether or not to flush the codes printed (Default is true). + ``` + + ## func `TermIO.Cursor.Up(n, flush=True)` + Move the cursor `n` characters up. + ``` + n : number + flush : Wether or not to flush the codes printed (Default is true). + ``` + + ## func `TermIO.Cursor.Down(n, flush=True)` + Move the cursor `n` characters to the down. + ``` + n : number + flush : Wether or not to flush the codes printed (Default is true). + ``` + + ## func `TermIO.Screen.Clear(flush=True)` + Clear the screen. + ``` + flush : Wether or not to flush the codes printed (Default is true). + ``` + + ## func `TermIO.Screen.Flush()` + Flushes printed content to screen. + + ## func `TermIO.Screen.Decorate(fg=None, bg=None, dec=None, flush=True)` + Clear the screen + ``` + fg : Number between 0 and 255. No logical color math... [None] + bg : Number between 0 and 255. No logical color math... [None] + dec : Either a string or a list of strings. [None] + The three possible decorations is + reversed, underline, bold + eg: + TermIO.Screen.Decorate(dec="reversed") + or + TermIO.Screen.Decorate(dec=["bold", "reversed"]) + flush : Wether or not to flush the codes printed. [True] + ``` + + If you want to print `ESC[0M`, to remove all decorations. Just call this function with `fg=bg=dec=None`. + + ## func `TermIO.Screen.Write(outStr, flush=True)` + Writes a string to stdout. + ``` + outStr : string to be printed + flush : Wether or not to flush the codes printed (Default is true). + ``` + +Platform: UNKNOWN +Classifier: Programming Language :: Python :: 3 +Classifier: Operating System :: OS Independent +Description-Content-Type: text/markdown diff --git a/TermIO.egg-info/SOURCES.txt b/TermIO.egg-info/SOURCES.txt new file mode 100644 index 0000000..a943b20 --- /dev/null +++ b/TermIO.egg-info/SOURCES.txt @@ -0,0 +1,8 @@ +README.md +setup.py +TermIO.egg-info/PKG-INFO +TermIO.egg-info/SOURCES.txt +TermIO.egg-info/dependency_links.txt +TermIO.egg-info/top_level.txt +in/__init__.py +out/__init__.py
\ No newline at end of file diff --git a/TermIO.egg-info/dependency_links.txt b/TermIO.egg-info/dependency_links.txt new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/TermIO.egg-info/dependency_links.txt @@ -0,0 +1 @@ + diff --git a/TermIO.egg-info/top_level.txt b/TermIO.egg-info/top_level.txt new file mode 100644 index 0000000..932d770 --- /dev/null +++ b/TermIO.egg-info/top_level.txt @@ -0,0 +1,2 @@ +in +out |