libTerm 0.2.7__tar.gz → 0.3.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. {libterm-0.2.7 → libterm-0.3.1}/.idea/workspace.xml +157 -39
  2. {libterm-0.2.7 → libterm-0.3.1}/PKG-INFO +2 -2
  3. {libterm-0.2.7 → libterm-0.3.1}/README.md +1 -1
  4. libterm-0.3.1/dist/libterm-0.2.7-py3-none-any.whl +0 -0
  5. libterm-0.3.1/dist/libterm-0.2.7.tar.gz +0 -0
  6. libterm-0.3.1/dist/libterm-0.2.8-py3-none-any.whl +0 -0
  7. libterm-0.3.1/dist/libterm-0.2.8.tar.gz +0 -0
  8. {libterm-0.2.7 → libterm-0.3.1}/pyproject.toml +1 -1
  9. libterm-0.3.1/src/libTerm/__init__.py +5 -0
  10. libterm-0.3.1/src/libTerm/components/__init__.py +6 -0
  11. libterm-0.3.1/src/libTerm/components/base.py +360 -0
  12. libterm-0.3.1/src/libTerm/components/color.py +182 -0
  13. libterm-0.3.1/src/libTerm/components/cursor.py +213 -0
  14. libterm-0.3.1/src/libTerm/components/enums.py +124 -0
  15. libterm-0.3.1/src/libTerm/components/parsers.py +37 -0
  16. libterm-0.3.1/src/libTerm/components/structs.py +226 -0
  17. libterm-0.3.1/src/libTerm/examples/__init__.py +1 -0
  18. libterm-0.3.1/src/libTerm/examples/__main__.py +95 -0
  19. libterm-0.3.1/src/libTerm/examples/ex_arrowkeys.py +71 -0
  20. libterm-0.3.1/src/libTerm/examples/ex_basic.py +148 -0
  21. libterm-0.3.1/src/libTerm/examples/ex_buffers.py +20 -0
  22. libterm-0.3.1/src/libTerm/examples/ex_colors.py +44 -0
  23. libterm-0.3.1/src/libTerm/examples/ex_menu_grid_big.py +89 -0
  24. libterm-0.3.1/src/libTerm/examples/ex_menu_grid_simple.py +75 -0
  25. libterm-0.3.1/src/libTerm/examples/ex_menu_list_simple.py +59 -0
  26. libterm-0.3.1/src/libTerm/examples/ex_printkeys.py +40 -0
  27. libterm-0.3.1/src/libTerm/examples/ex_snake_automatic.py +177 -0
  28. libterm-0.3.1/src/libTerm/examples/ex_snake_manual.py +147 -0
  29. libterm-0.3.1/src/libTerm/examples/test +0 -0
  30. libterm-0.3.1/src/libTerm/examples/time +0 -0
  31. libterm-0.3.1/src/libTerm/modules/__init__.py +1 -0
  32. libterm-0.3.1/src/libTerm/modules/class_display.py +1 -0
  33. libterm-0.3.1/src/libTerm/modules/class_frame.py +77 -0
  34. libterm-0.3.1/src/libTerm/modules/class_menu.py +240 -0
  35. libterm-0.3.1/src/libTerm/term/__init__.py +15 -0
  36. {libterm-0.2.7 → libterm-0.3.1}/src/libTerm/term/input.py +23 -8
  37. {libterm-0.2.7 → libterm-0.3.1}/src/libTerm/term/mock.py +3 -2
  38. libterm-0.3.1/src/libTerm/term/posix.py +177 -0
  39. {libterm-0.2.7 → libterm-0.3.1}/src/libTerm/term/virt.py +3 -3
  40. {libterm-0.2.7 → libterm-0.3.1}/src/libTerm.egg-info/PKG-INFO +2 -2
  41. {libterm-0.2.7 → libterm-0.3.1}/src/libTerm.egg-info/SOURCES.txt +30 -16
  42. libterm-0.3.1/tests/test_colors.py +91 -0
  43. libterm-0.3.1/tests/test_selector.py +81 -0
  44. libterm-0.3.1/tests/test_store.py +120 -0
  45. libterm-0.2.7/Examples/__init__.py +0 -8
  46. libterm-0.2.7/Examples/ex_arrowkeys.py +0 -22
  47. libterm-0.2.7/Examples/ex_autosnake.py +0 -64
  48. libterm-0.2.7/Examples/ex_basic.py +0 -35
  49. libterm-0.2.7/Examples/ex_colors.py +0 -15
  50. libterm-0.2.7/Examples/ex_manualsnake.py +0 -65
  51. libterm-0.2.7/Examples/ex_printkeys.py +0 -17
  52. libterm-0.2.7/Examples/ex_simplemenu.py +0 -48
  53. libterm-0.2.7/Examples/libextra/__init__.py +0 -1
  54. libterm-0.2.7/Examples/libextra/class_menu.py +0 -64
  55. libterm-0.2.7/Examples/time +0 -200440
  56. libterm-0.2.7/src/libTerm/__init__.py +0 -6
  57. libterm-0.2.7/src/libTerm/term/__init__.py +0 -15
  58. libterm-0.2.7/src/libTerm/term/cursor.py +0 -251
  59. libterm-0.2.7/src/libTerm/term/posix.py +0 -249
  60. libterm-0.2.7/src/libTerm/types/__init__.py +0 -1
  61. libterm-0.2.7/src/libTerm/types/base.py +0 -482
  62. libterm-0.2.7/src/libTerm/types/enums.py +0 -29
  63. libterm-0.2.7/src/libTerm/types/extra.py +0 -1
  64. libterm-0.2.7/tests/test_selector.py +0 -36
  65. libterm-0.2.7/tests/test_store.py +0 -25
  66. {libterm-0.2.7 → libterm-0.3.1}/.STATUS_TESTS +0 -0
  67. {libterm-0.2.7 → libterm-0.3.1}/.gitignore +0 -0
  68. {libterm-0.2.7 → libterm-0.3.1}/.idea/inspectionProfiles/profiles_settings.xml +0 -0
  69. {libterm-0.2.7 → libterm-0.3.1}/.idea/libTerm.iml +0 -0
  70. {libterm-0.2.7 → libterm-0.3.1}/.idea/modules.xml +0 -0
  71. {libterm-0.2.7 → libterm-0.3.1}/.idea/vcs.xml +0 -0
  72. {libterm-0.2.7 → libterm-0.3.1}/0 +0 -0
  73. {libterm-0.2.7 → libterm-0.3.1}/dist/libterm-0.0.1-py3-none-any.whl +0 -0
  74. {libterm-0.2.7 → libterm-0.3.1}/dist/libterm-0.0.1.tar.gz +0 -0
  75. {libterm-0.2.7 → libterm-0.3.1}/dist/libterm-0.1.0-py3-none-any.whl +0 -0
  76. {libterm-0.2.7 → libterm-0.3.1}/dist/libterm-0.1.0.tar.gz +0 -0
  77. {libterm-0.2.7 → libterm-0.3.1}/dist/libterm-0.1.5-py3-none-any.whl +0 -0
  78. {libterm-0.2.7 → libterm-0.3.1}/dist/libterm-0.1.5.tar.gz +0 -0
  79. {libterm-0.2.7 → libterm-0.3.1}/dist/libterm-0.1.6-py3-none-any.whl +0 -0
  80. {libterm-0.2.7 → libterm-0.3.1}/dist/libterm-0.1.6.tar.gz +0 -0
  81. {libterm-0.2.7 → libterm-0.3.1}/dist/libterm-0.1.7-py3-none-any.whl +0 -0
  82. {libterm-0.2.7 → libterm-0.3.1}/dist/libterm-0.1.7.tar.gz +0 -0
  83. {libterm-0.2.7 → libterm-0.3.1}/dist/libterm-0.2.0-py3-none-any.whl +0 -0
  84. {libterm-0.2.7 → libterm-0.3.1}/dist/libterm-0.2.0.tar.gz +0 -0
  85. {libterm-0.2.7 → libterm-0.3.1}/dist/libterm-0.2.5-py3-none-any.whl +0 -0
  86. {libterm-0.2.7 → libterm-0.3.1}/dist/libterm-0.2.5.tar.gz +0 -0
  87. {libterm-0.2.7 → libterm-0.3.1}/dist/libterm-0.2.6-py3-none-any.whl +0 -0
  88. {libterm-0.2.7 → libterm-0.3.1}/dist/libterm-0.2.6.tar.gz +0 -0
  89. {libterm-0.2.7 → libterm-0.3.1}/doc/dev/project.md +0 -0
  90. {libterm-0.2.7 → libterm-0.3.1}/libterm.cast +0 -0
  91. {libterm-0.2.7 → libterm-0.3.1}/libterm.gif +0 -0
  92. {libterm-0.2.7 → libterm-0.3.1}/setup.cfg +0 -0
  93. {libterm-0.2.7 → libterm-0.3.1}/src/libTerm/term/winnt.py +0 -0
  94. {libterm-0.2.7 → libterm-0.3.1}/src/libTerm.egg-info/dependency_links.txt +0 -0
  95. {libterm-0.2.7 → libterm-0.3.1}/src/libTerm.egg-info/top_level.txt +0 -0
  96. {libterm-0.2.7 → libterm-0.3.1}/tests/__init__.py +0 -0
  97. {libterm-0.2.7 → libterm-0.3.1}/tests/test_cursor.py +0 -0
  98. {libterm-0.2.7 → libterm-0.3.1}/tests/test_posix_term.py +0 -0
@@ -5,9 +5,17 @@
5
5
  </component>
6
6
  <component name="ChangeListManager">
7
7
  <list default="true" id="bc73ff2f-338a-4651-a389-91491c2041b6" name="Changes" comment="added tests , prolly not that usefull as its only testing if stuff exists , and written by copilot">
8
- <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
9
- <change beforePath="$PROJECT_DIR$/Examples/ex_autosnake.py" beforeDir="false" afterPath="$PROJECT_DIR$/Examples/ex_autosnake.py" afterDir="false" />
10
- <change beforePath="$PROJECT_DIR$/src/libTerm/types/base.py" beforeDir="false" afterPath="$PROJECT_DIR$/src/libTerm/types/base.py" afterDir="false" />
8
+ <change beforePath="$PROJECT_DIR$/src/libTerm/examples/ex_basic.py" beforeDir="false" afterPath="$PROJECT_DIR$/src/libTerm/examples/ex_basic.py" afterDir="false" />
9
+ <change beforePath="$PROJECT_DIR$/src/libTerm/examples/ex_menu_grid_big.py" beforeDir="false" afterPath="$PROJECT_DIR$/src/libTerm/examples/ex_menu_grid_big.py" afterDir="false" />
10
+ <change beforePath="$PROJECT_DIR$/src/libTerm/examples/ex_menu_list_simple.py" beforeDir="false" afterPath="$PROJECT_DIR$/src/libTerm/examples/ex_menu_list_simple.py" afterDir="false" />
11
+ <change beforePath="$PROJECT_DIR$/src/libTerm/modules/__init__.py" beforeDir="false" afterPath="$PROJECT_DIR$/src/libTerm/modules/__init__.py" afterDir="false" />
12
+ <change beforePath="$PROJECT_DIR$/src/libTerm/modules/class_menu.py" beforeDir="false" afterPath="$PROJECT_DIR$/src/libTerm/modules/class_menu.py" afterDir="false" />
13
+ <change beforePath="$PROJECT_DIR$/src/libTerm/term/posix.py" beforeDir="false" afterPath="$PROJECT_DIR$/src/libTerm/term/posix.py" afterDir="false" />
14
+ <change beforePath="$PROJECT_DIR$/src/libTerm/types/__init__.py" beforeDir="false" afterPath="$PROJECT_DIR$/src/libTerm/types/__init__.py" afterDir="false" />
15
+ <change beforePath="$PROJECT_DIR$/src/libTerm/types/enums.py" beforeDir="false" afterPath="$PROJECT_DIR$/src/libTerm/types/enums.py" afterDir="false" />
16
+ <change beforePath="$PROJECT_DIR$/src/libTerm/types/extra.py" beforeDir="false" />
17
+ <change beforePath="$PROJECT_DIR$/src/libTerm/types/parsers.py" beforeDir="false" afterPath="$PROJECT_DIR$/src/libTerm/types/parsers.py" afterDir="false" />
18
+ <change beforePath="$PROJECT_DIR$/src/libTerm/types/structs.py" beforeDir="false" afterPath="$PROJECT_DIR$/src/libTerm/types/structs.py" afterDir="false" />
11
19
  </list>
12
20
  <option name="SHOW_DIALOG" value="false" />
13
21
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -19,6 +27,16 @@
19
27
  <entry key="_/home/jeroen/Development/Code/Python/Projects/libTerm" value="32XLRp94VBFj5lgNkdim9ARFbbU" />
20
28
  </persistenceIdMap>
21
29
  </component>
30
+ <component name="CopilotUserSelectedChatMode">
31
+ <option name="chatModeId" value="Agent" />
32
+ </component>
33
+ <component name="CopilotUserSelectedModel">
34
+ <selectedModels>
35
+ <entry key="edit-panel" value="GPT-5 mini" />
36
+ <entry key="chat-panel" value="GPT-5 mini" />
37
+ <entry key="agent-panel" value="GPT-5 mini" />
38
+ </selectedModels>
39
+ </component>
22
40
  <component name="FileTemplateManagerImpl">
23
41
  <option name="RECENT_TEMPLATES">
24
42
  <list>
@@ -44,7 +62,26 @@
44
62
  <component name="HighlightingSettingsPerFile">
45
63
  <setting file="file://$USER_HOME$/.cache/JetBrains/PyCharmCE2025.1/python_stubs/-1711940630/termios.py" root0="SKIP_INSPECTION" />
46
64
  <setting file="file://$USER_HOME$/.cache/JetBrains/PyCharmCE2025.1/python_stubs/1055943265/termios.py" root0="SKIP_INSPECTION" />
47
- <setting file="file://$PROJECT_DIR$/Examples/ex_simplemenu.py" root0="FORCE_HIGHLIGHTING" />
65
+ <setting file="file://$PROJECT_DIR$/pyproject.toml" root0="FORCE_HIGHLIGHTING" />
66
+ <setting file="file://$PROJECT_DIR$/src/libTerm/__init__.py" root0="FORCE_HIGHLIGHTING" />
67
+ <setting file="file://$PROJECT_DIR$/src/libTerm/examples/__init__.py" root0="FORCE_HIGHLIGHTING" />
68
+ <setting file="file://$PROJECT_DIR$/src/libTerm/examples/ex_arrowkeys.py" root0="FORCE_HIGHLIGHTING" />
69
+ <setting file="file://$PROJECT_DIR$/src/libTerm/examples/ex_menu_list_simple.py" root0="FORCE_HIGHLIGHTING" />
70
+ <setting file="file://$PROJECT_DIR$/src/libTerm/examples/ex_printkeys.py" root0="FORCE_HIGHLIGHTING" />
71
+ <setting file="file://$PROJECT_DIR$/src/libTerm/examples/ex_snake_manual.py" root0="FORCE_HIGHLIGHTING" />
72
+ <setting file="file://$PROJECT_DIR$/src/libTerm/libextra/class_menu.py" root0="SKIP_INSPECTION" />
73
+ <setting file="file://$PROJECT_DIR$/src/libTerm/term/__init__.py" root0="FORCE_HIGHLIGHTING" />
74
+ <setting file="file://$PROJECT_DIR$/src/libTerm/term/mock.py" root0="FORCE_HIGHLIGHTING" />
75
+ <setting file="file://$PROJECT_DIR$/src/libTerm/term/posix.py" root0="FORCE_HIGHLIGHTING" />
76
+ <setting file="file://$PROJECT_DIR$/src/libTerm/term/structs.py" root0="FORCE_HIGHLIGHTING" />
77
+ <setting file="file://$PROJECT_DIR$/src/libTerm/term/virt.py" root0="FORCE_HIGHLIGHTING" />
78
+ <setting file="file://$PROJECT_DIR$/src/libTerm/types/__init__.py" root0="FORCE_HIGHLIGHTING" />
79
+ <setting file="file://$PROJECT_DIR$/src/libTerm/types/base.py" root0="SKIP_INSPECTION" />
80
+ <setting file="file://$PROJECT_DIR$/src/libTerm/types/class_color.py" root0="FORCE_HIGHLIGHTING" />
81
+ <setting file="file://$PROJECT_DIR$/src/libTerm/types/enums.py" root0="FORCE_HIGHLIGHTING" />
82
+ <setting file="file://$PROJECT_DIR$/src/libTerm/types/extra.py" root0="FORCE_HIGHLIGHTING" />
83
+ <setting file="file://$PROJECT_DIR$/tests/test_cursor.py" root0="FORCE_HIGHLIGHTING" />
84
+ <setting file="file://$PROJECT_DIR$/tests/test_store.py" root0="FORCE_HIGHLIGHTING" />
48
85
  <setting file="file://$APPLICATION_HOME_DIR$/plugins/python-ce/helpers/pydev/_pydev_imps/_pydev_execfile.py" root0="SKIP_INSPECTION" />
49
86
  </component>
50
87
  <component name="ProjectColorInfo">{
@@ -68,26 +105,42 @@
68
105
  &quot;Python tests.Python tests for test_posix_term.TestPosixTerm.executor&quot;: &quot;Run&quot;,
69
106
  &quot;Python tests.Python tests for test_posix_term.TestPosixTerm.test_cursor.executor&quot;: &quot;Run&quot;,
70
107
  &quot;Python tests.Python tests for test_posix_term.TestPosixTerm.test_cursor2.executor&quot;: &quot;Run&quot;,
108
+ &quot;Python tests.Python tests for test_selector.TestSelector.executor&quot;: &quot;Run&quot;,
109
+ &quot;Python tests.Python tests for test_selector.TestSelector.test_base.executor&quot;: &quot;Run&quot;,
110
+ &quot;Python tests.Python tests for test_selector.TestSelector.test_step.executor&quot;: &quot;Run&quot;,
111
+ &quot;Python tests.Python tests for test_selector.TestSelector.test_zeroone.executor&quot;: &quot;Run&quot;,
71
112
  &quot;Python tests.Python tests for test_snake1.test_cursor.executor&quot;: &quot;Run&quot;,
113
+ &quot;Python tests.Python tests for test_store.TestStore.executor&quot;: &quot;Debug&quot;,
72
114
  &quot;Python tests.Python tests in ex3.py.executor&quot;: &quot;Run&quot;,
73
115
  &quot;Python tests.Python tests in test_cursor.py.executor&quot;: &quot;Run&quot;,
74
116
  &quot;Python tests.Python tests in test_posix_term.py.executor&quot;: &quot;Run&quot;,
117
+ &quot;Python tests.Python tests in test_selector.py.executor&quot;: &quot;Run&quot;,
118
+ &quot;Python tests.Python tests in test_store.py.executor&quot;: &quot;Run&quot;,
75
119
  &quot;Python tests.Python tests in tests.executor&quot;: &quot;Run&quot;,
76
120
  &quot;Python.__init__ (1).executor&quot;: &quot;Run&quot;,
77
121
  &quot;Python.__init__.executor&quot;: &quot;Run&quot;,
122
+ &quot;Python.__main__.executor&quot;: &quot;Run&quot;,
78
123
  &quot;Python.base.executor&quot;: &quot;Run&quot;,
124
+ &quot;Python.class_frame.executor&quot;: &quot;Run&quot;,
79
125
  &quot;Python.class_menu (1).executor&quot;: &quot;Run&quot;,
80
126
  &quot;Python.class_menu.executor&quot;: &quot;Run&quot;,
81
127
  &quot;Python.cursor.executor&quot;: &quot;Run&quot;,
128
+ &quot;Python.enums.executor&quot;: &quot;Run&quot;,
82
129
  &quot;Python.ex3.executor&quot;: &quot;Run&quot;,
83
130
  &quot;Python.ex_arrowkeys.executor&quot;: &quot;Run&quot;,
84
131
  &quot;Python.ex_autosnake.executor&quot;: &quot;Run&quot;,
132
+ &quot;Python.ex_basic.executor&quot;: &quot;Run&quot;,
85
133
  &quot;Python.ex_colors.executor&quot;: &quot;Run&quot;,
86
- &quot;Python.ex_manualsnake.executor&quot;: &quot;Run&quot;,
134
+ &quot;Python.ex_manualsnake.executor&quot;: &quot;Debug&quot;,
135
+ &quot;Python.ex_menu_grid_big.executor&quot;: &quot;Run&quot;,
87
136
  &quot;Python.ex_printkeys.executor&quot;: &quot;Debug&quot;,
137
+ &quot;Python.ex_simplegrid.executor&quot;: &quot;Run&quot;,
88
138
  &quot;Python.ex_simplemenu.executor&quot;: &quot;Run&quot;,
89
139
  &quot;Python.ex_snake1.executor&quot;: &quot;Run&quot;,
140
+ &quot;Python.ex_snake_automatic.executor&quot;: &quot;Run&quot;,
141
+ &quot;Python.ex_snake_manual.executor&quot;: &quot;Run&quot;,
90
142
  &quot;Python.example.executor&quot;: &quot;Run&quot;,
143
+ &quot;Python.input.executor&quot;: &quot;Run&quot;,
91
144
  &quot;Python.posix.executor&quot;: &quot;Run&quot;,
92
145
  &quot;Python.python -m build.executor&quot;: &quot;Run&quot;,
93
146
  &quot;Python.python -m twine upload dist/*.executor&quot;: &quot;Run&quot;,
@@ -99,24 +152,25 @@
99
152
  &quot;RunOnceActivity.TerminalTabsStorage.copyFrom.TerminalArrangementManager&quot;: &quot;true&quot;,
100
153
  &quot;RunOnceActivity.git.unshallow&quot;: &quot;true&quot;,
101
154
  &quot;git-widget-placeholder&quot;: &quot;master&quot;,
102
- &quot;last_opened_file_path&quot;: &quot;/home/jeroen/Development/Code/Python/Projects/libTerm/.venv/bin/python&quot;,
103
- &quot;settings.editor.selected.configurable&quot;: &quot;com.jetbrains.python.configuration.PyActiveSdkModuleConfigurable&quot;
155
+ &quot;last_opened_file_path&quot;: &quot;/vol/NTFSDV5/users/HuurLijster&quot;,
156
+ &quot;settings.editor.selected.configurable&quot;: &quot;preferences.pluginManager&quot;
104
157
  }
105
158
  }</component>
106
159
  <component name="RecentsManager">
107
160
  <key name="CopyFile.RECENT_KEYS">
161
+ <recent name="$PROJECT_DIR$/Examples" />
108
162
  <recent name="H:\libTerm" />
109
163
  <recent name="H:\libTerm\src\libTerm" />
110
164
  </key>
111
165
  <key name="MoveFile.RECENT_KEYS">
166
+ <recent name="$PROJECT_DIR$/src/libTerm" />
112
167
  <recent name="$PROJECT_DIR$/Examples" />
113
168
  <recent name="$PROJECT_DIR$/libextra" />
114
- <recent name="$PROJECT_DIR$/src/libTerm" />
115
169
  <recent name="$PROJECT_DIR$/.local/venvs" />
116
170
  </key>
117
171
  </component>
118
- <component name="RunManager" selected="Python.ex_autosnake">
119
- <configuration name="base" type="PythonConfigurationType" factoryName="Python" temporary="true" nameIsGenerated="true">
172
+ <component name="RunManager" selected="Python.ex_basic">
173
+ <configuration name="__init__" type="PythonConfigurationType" factoryName="Python" nameIsGenerated="true">
120
174
  <module name="libTerm" />
121
175
  <option name="ENV_FILES" value="" />
122
176
  <option name="INTERPRETER_OPTIONS" value="" />
@@ -125,11 +179,33 @@
125
179
  <env name="PYTHONUNBUFFERED" value="1" />
126
180
  </envs>
127
181
  <option name="SDK_HOME" value="" />
128
- <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/src/libTerm/types" />
182
+ <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/src/libTerm/examples" />
183
+ <option name="IS_MODULE_SDK" value="true" />
184
+ <option name="ADD_CONTENT_ROOTS" value="true" />
185
+ <option name="ADD_SOURCE_ROOTS" value="true" />
186
+ <option name="SCRIPT_NAME" value="$PROJECT_DIR$/src/libTerm/examples/__init__.py" />
187
+ <option name="PARAMETERS" value="" />
188
+ <option name="SHOW_COMMAND_LINE" value="false" />
189
+ <option name="EMULATE_TERMINAL" value="true" />
190
+ <option name="MODULE_MODE" value="false" />
191
+ <option name="REDIRECT_INPUT" value="false" />
192
+ <option name="INPUT_FILE" value="" />
193
+ <method v="2" />
194
+ </configuration>
195
+ <configuration name="__main__" type="PythonConfigurationType" factoryName="Python" temporary="true" nameIsGenerated="true">
196
+ <module name="libTerm" />
197
+ <option name="ENV_FILES" value="" />
198
+ <option name="INTERPRETER_OPTIONS" value="" />
199
+ <option name="PARENT_ENVS" value="true" />
200
+ <envs>
201
+ <env name="PYTHONUNBUFFERED" value="1" />
202
+ </envs>
203
+ <option name="SDK_HOME" value="" />
204
+ <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/src/libTerm/examples" />
129
205
  <option name="IS_MODULE_SDK" value="true" />
130
206
  <option name="ADD_CONTENT_ROOTS" value="true" />
131
207
  <option name="ADD_SOURCE_ROOTS" value="true" />
132
- <option name="SCRIPT_NAME" value="$PROJECT_DIR$/src/libTerm/types/base.py" />
208
+ <option name="SCRIPT_NAME" value="$PROJECT_DIR$/src/libTerm/examples/__main__.py" />
133
209
  <option name="PARAMETERS" value="" />
134
210
  <option name="SHOW_COMMAND_LINE" value="false" />
135
211
  <option name="EMULATE_TERMINAL" value="false" />
@@ -138,7 +214,7 @@
138
214
  <option name="INPUT_FILE" value="" />
139
215
  <method v="2" />
140
216
  </configuration>
141
- <configuration name="cursor" type="PythonConfigurationType" factoryName="Python" temporary="true" nameIsGenerated="true">
217
+ <configuration name="class_frame" type="PythonConfigurationType" factoryName="Python" nameIsGenerated="true">
142
218
  <module name="libTerm" />
143
219
  <option name="ENV_FILES" value="" />
144
220
  <option name="INTERPRETER_OPTIONS" value="" />
@@ -147,11 +223,11 @@
147
223
  <env name="PYTHONUNBUFFERED" value="1" />
148
224
  </envs>
149
225
  <option name="SDK_HOME" value="" />
150
- <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/src/libTerm/term" />
226
+ <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/src/libTerm/libextra" />
151
227
  <option name="IS_MODULE_SDK" value="true" />
152
228
  <option name="ADD_CONTENT_ROOTS" value="true" />
153
229
  <option name="ADD_SOURCE_ROOTS" value="true" />
154
- <option name="SCRIPT_NAME" value="$PROJECT_DIR$/src/libTerm/term/cursor.py" />
230
+ <option name="SCRIPT_NAME" value="$PROJECT_DIR$/src/libTerm/libextra/class_frame.py" />
155
231
  <option name="PARAMETERS" value="" />
156
232
  <option name="SHOW_COMMAND_LINE" value="false" />
157
233
  <option name="EMULATE_TERMINAL" value="true" />
@@ -160,7 +236,7 @@
160
236
  <option name="INPUT_FILE" value="" />
161
237
  <method v="2" />
162
238
  </configuration>
163
- <configuration name="ex_autosnake" type="PythonConfigurationType" factoryName="Python" temporary="true" nameIsGenerated="true">
239
+ <configuration name="enums" type="PythonConfigurationType" factoryName="Python" temporary="true" nameIsGenerated="true">
164
240
  <module name="libTerm" />
165
241
  <option name="ENV_FILES" value="" />
166
242
  <option name="INTERPRETER_OPTIONS" value="" />
@@ -169,14 +245,36 @@
169
245
  <env name="PYTHONUNBUFFERED" value="1" />
170
246
  </envs>
171
247
  <option name="SDK_HOME" value="" />
172
- <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/Examples" />
248
+ <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/src/libTerm/types" />
173
249
  <option name="IS_MODULE_SDK" value="true" />
174
250
  <option name="ADD_CONTENT_ROOTS" value="true" />
175
251
  <option name="ADD_SOURCE_ROOTS" value="true" />
176
- <option name="SCRIPT_NAME" value="$PROJECT_DIR$/Examples/ex_autosnake.py" />
252
+ <option name="SCRIPT_NAME" value="$PROJECT_DIR$/src/libTerm/types/enums.py" />
177
253
  <option name="PARAMETERS" value="" />
178
254
  <option name="SHOW_COMMAND_LINE" value="false" />
179
- <option name="EMULATE_TERMINAL" value="true" />
255
+ <option name="EMULATE_TERMINAL" value="false" />
256
+ <option name="MODULE_MODE" value="false" />
257
+ <option name="REDIRECT_INPUT" value="false" />
258
+ <option name="INPUT_FILE" value="" />
259
+ <method v="2" />
260
+ </configuration>
261
+ <configuration name="ex_basic" type="PythonConfigurationType" factoryName="Python" temporary="true" nameIsGenerated="true">
262
+ <module name="libTerm" />
263
+ <option name="ENV_FILES" value="" />
264
+ <option name="INTERPRETER_OPTIONS" value="" />
265
+ <option name="PARENT_ENVS" value="true" />
266
+ <envs>
267
+ <env name="PYTHONUNBUFFERED" value="1" />
268
+ </envs>
269
+ <option name="SDK_HOME" value="" />
270
+ <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/src/libTerm/examples" />
271
+ <option name="IS_MODULE_SDK" value="true" />
272
+ <option name="ADD_CONTENT_ROOTS" value="true" />
273
+ <option name="ADD_SOURCE_ROOTS" value="true" />
274
+ <option name="SCRIPT_NAME" value="$PROJECT_DIR$/src/libTerm/examples/ex_basic.py" />
275
+ <option name="PARAMETERS" value="" />
276
+ <option name="SHOW_COMMAND_LINE" value="false" />
277
+ <option name="EMULATE_TERMINAL" value="false" />
180
278
  <option name="MODULE_MODE" value="false" />
181
279
  <option name="REDIRECT_INPUT" value="false" />
182
280
  <option name="INPUT_FILE" value="" />
@@ -204,7 +302,7 @@
204
302
  <option name="INPUT_FILE" value="" />
205
303
  <method v="2" />
206
304
  </configuration>
207
- <configuration name="ex_manualsnake" type="PythonConfigurationType" factoryName="Python" temporary="true" nameIsGenerated="true">
305
+ <configuration name="ex_menu_grid_big" type="PythonConfigurationType" factoryName="Python" temporary="true" nameIsGenerated="true">
208
306
  <module name="libTerm" />
209
307
  <option name="ENV_FILES" value="" />
210
308
  <option name="INTERPRETER_OPTIONS" value="" />
@@ -213,20 +311,20 @@
213
311
  <env name="PYTHONUNBUFFERED" value="1" />
214
312
  </envs>
215
313
  <option name="SDK_HOME" value="" />
216
- <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/Examples" />
314
+ <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/src/libTerm/examples" />
217
315
  <option name="IS_MODULE_SDK" value="true" />
218
316
  <option name="ADD_CONTENT_ROOTS" value="true" />
219
317
  <option name="ADD_SOURCE_ROOTS" value="true" />
220
- <option name="SCRIPT_NAME" value="$PROJECT_DIR$/Examples/ex_manualsnake.py" />
318
+ <option name="SCRIPT_NAME" value="$PROJECT_DIR$/src/libTerm/examples/ex_menu_grid_big.py" />
221
319
  <option name="PARAMETERS" value="" />
222
320
  <option name="SHOW_COMMAND_LINE" value="false" />
223
- <option name="EMULATE_TERMINAL" value="true" />
321
+ <option name="EMULATE_TERMINAL" value="false" />
224
322
  <option name="MODULE_MODE" value="false" />
225
323
  <option name="REDIRECT_INPUT" value="false" />
226
324
  <option name="INPUT_FILE" value="" />
227
325
  <method v="2" />
228
326
  </configuration>
229
- <configuration name="ex_simplemenu" type="PythonConfigurationType" factoryName="Python" temporary="true" nameIsGenerated="true">
327
+ <configuration name="ex_snake_manual" type="PythonConfigurationType" factoryName="Python" temporary="true" nameIsGenerated="true">
230
328
  <module name="libTerm" />
231
329
  <option name="ENV_FILES" value="" />
232
330
  <option name="INTERPRETER_OPTIONS" value="" />
@@ -235,11 +333,11 @@
235
333
  <env name="PYTHONUNBUFFERED" value="1" />
236
334
  </envs>
237
335
  <option name="SDK_HOME" value="" />
238
- <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/Examples" />
336
+ <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/src/libTerm/examples" />
239
337
  <option name="IS_MODULE_SDK" value="true" />
240
338
  <option name="ADD_CONTENT_ROOTS" value="true" />
241
339
  <option name="ADD_SOURCE_ROOTS" value="true" />
242
- <option name="SCRIPT_NAME" value="$PROJECT_DIR$/Examples/ex_simplemenu.py" />
340
+ <option name="SCRIPT_NAME" value="$PROJECT_DIR$/src/libTerm/examples/ex_snake_manual.py" />
243
341
  <option name="PARAMETERS" value="" />
244
342
  <option name="SHOW_COMMAND_LINE" value="false" />
245
343
  <option name="EMULATE_TERMINAL" value="true" />
@@ -272,11 +370,11 @@
272
370
  </configuration>
273
371
  <recent_temporary>
274
372
  <list>
275
- <item itemvalue="Python.ex_autosnake" />
276
- <item itemvalue="Python.ex_manualsnake" />
277
- <item itemvalue="Python.cursor" />
278
- <item itemvalue="Python.base" />
279
- <item itemvalue="Python.ex_simplemenu" />
373
+ <item itemvalue="Python.ex_basic" />
374
+ <item itemvalue="Python.__main__" />
375
+ <item itemvalue="Python.ex_snake_manual" />
376
+ <item itemvalue="Python.enums" />
377
+ <item itemvalue="Python.ex_menu_grid_big" />
280
378
  </list>
281
379
  </recent_temporary>
282
380
  </component>
@@ -342,11 +440,6 @@
342
440
  <component name="XDebuggerManager">
343
441
  <breakpoint-manager>
344
442
  <breakpoints>
345
- <line-breakpoint enabled="true" suspend="THREAD" type="python-line">
346
- <url>file://$PROJECT_DIR$/src/libTerm/term/cursor.py</url>
347
- <line>106</line>
348
- <option name="timeStamp" value="3" />
349
- </line-breakpoint>
350
443
  <line-breakpoint enabled="true" suspend="THREAD" type="python-line">
351
444
  <url>file://$PROJECT_DIR$/src/libTerm/types.py</url>
352
445
  <line>252</line>
@@ -358,9 +451,34 @@
358
451
  <option name="timeStamp" value="6" />
359
452
  </line-breakpoint>
360
453
  <line-breakpoint enabled="true" suspend="THREAD" type="python-line">
361
- <url>file://$PROJECT_DIR$/Examples/ex_simplemenu.py</url>
362
- <line>8</line>
363
- <option name="timeStamp" value="13" />
454
+ <url>file://$PROJECT_DIR$/src/libTerm/libextra/class_frame.py</url>
455
+ <line>23</line>
456
+ <option name="timeStamp" value="8" />
457
+ </line-breakpoint>
458
+ <line-breakpoint enabled="true" suspend="THREAD" type="python-line">
459
+ <url>file://$PROJECT_DIR$/src/libTerm/term/input.py</url>
460
+ <line>38</line>
461
+ <option name="timeStamp" value="15" />
462
+ </line-breakpoint>
463
+ <line-breakpoint enabled="true" suspend="THREAD" type="python-line">
464
+ <url>file://$PROJECT_DIR$/src/libTerm/types/enums.py</url>
465
+ <line>87</line>
466
+ <option name="timeStamp" value="18" />
467
+ </line-breakpoint>
468
+ <line-breakpoint enabled="true" suspend="THREAD" type="python-line">
469
+ <url>file://$PROJECT_DIR$/src/libTerm/examples/__init__.py</url>
470
+ <line>1</line>
471
+ <option name="timeStamp" value="19" />
472
+ </line-breakpoint>
473
+ <line-breakpoint enabled="true" suspend="THREAD" type="python-line">
474
+ <url>file://$PROJECT_DIR$/src/libTerm/libTypes_extra/class_frame.py</url>
475
+ <line>3</line>
476
+ <option name="timeStamp" value="24" />
477
+ </line-breakpoint>
478
+ <line-breakpoint enabled="true" suspend="THREAD" type="python-line">
479
+ <url>file://$PROJECT_DIR$/src/libTerm/examples/ex_basic.py</url>
480
+ <line>29</line>
481
+ <option name="timeStamp" value="26" />
364
482
  </line-breakpoint>
365
483
  </breakpoints>
366
484
  </breakpoint-manager>
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: libTerm
3
- Version: 0.2.7
3
+ Version: 0.3.1
4
4
  Author-email: Jeroen Hoefkens <hoefkens.j@gmail.com>
5
5
  Project-URL: Homepage, https://github.com/hoefkensj/libTerm
6
6
  Project-URL: Issues, https://github.com/hoefkensj/libTerm
@@ -246,7 +246,7 @@ term = Term()
246
246
  print(term.size.xy)
247
247
 
248
248
  if term.size.changed:
249
- print("Terminal resized!")
249
+ print("Terminal resized!")
250
250
  ```
251
251
 
252
252
  ---
@@ -238,7 +238,7 @@ term = Term()
238
238
  print(term.size.xy)
239
239
 
240
240
  if term.size.changed:
241
- print("Terminal resized!")
241
+ print("Terminal resized!")
242
242
  ```
243
243
 
244
244
  ---
Binary file
Binary file
@@ -1,7 +1,7 @@
1
1
  #/usr/bin/env python -m setuptools
2
2
  [project]
3
3
  name = "libTerm"
4
- version = "0.2.7"
4
+ version = "0.3.1"
5
5
  authors = [{ name = "Jeroen Hoefkens", email = "hoefkens.j@gmail.com" }]
6
6
  readme = "README.md"
7
7
 
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env python
2
+ from libTerm.term import Term
3
+ from libTerm.types import Ansi,Mode,Buffer,Color,Coord,ColorSet,ColorPalette
4
+
5
+
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env python
2
+ from libTerm.types.base import Coord,Store,Selector
3
+ from libTerm.types.color import ColorSet,Color,ColorPalette
4
+ from libTerm.types.cursor import Cursor
5
+ from libTerm.types.enums import StoreStop,Buffer,Mode,Move,Ansi
6
+ from libTerm.types.structs import TermColors,TermAttrs,TermBuffers,TermModes,TermSize