libTerm 0.2.8__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.
- {libterm-0.2.8 → libterm-0.3.1}/.idea/workspace.xml +161 -35
- {libterm-0.2.8 → libterm-0.3.1}/PKG-INFO +2 -2
- {libterm-0.2.8 → libterm-0.3.1}/README.md +1 -1
- libterm-0.3.1/dist/libterm-0.2.8-py3-none-any.whl +0 -0
- libterm-0.3.1/dist/libterm-0.2.8.tar.gz +0 -0
- {libterm-0.2.8 → libterm-0.3.1}/pyproject.toml +1 -1
- libterm-0.3.1/src/libTerm/__init__.py +5 -0
- libterm-0.3.1/src/libTerm/components/__init__.py +6 -0
- libterm-0.3.1/src/libTerm/components/base.py +360 -0
- libterm-0.3.1/src/libTerm/components/color.py +182 -0
- libterm-0.3.1/src/libTerm/components/cursor.py +213 -0
- libterm-0.3.1/src/libTerm/components/enums.py +124 -0
- libterm-0.3.1/src/libTerm/components/parsers.py +37 -0
- libterm-0.3.1/src/libTerm/components/structs.py +226 -0
- libterm-0.3.1/src/libTerm/examples/__init__.py +1 -0
- libterm-0.3.1/src/libTerm/examples/__main__.py +95 -0
- libterm-0.3.1/src/libTerm/examples/ex_arrowkeys.py +71 -0
- libterm-0.3.1/src/libTerm/examples/ex_basic.py +148 -0
- libterm-0.3.1/src/libTerm/examples/ex_buffers.py +20 -0
- libterm-0.3.1/src/libTerm/examples/ex_colors.py +44 -0
- libterm-0.3.1/src/libTerm/examples/ex_menu_grid_big.py +89 -0
- libterm-0.3.1/src/libTerm/examples/ex_menu_grid_simple.py +75 -0
- libterm-0.3.1/src/libTerm/examples/ex_menu_list_simple.py +59 -0
- libterm-0.3.1/src/libTerm/examples/ex_printkeys.py +40 -0
- libterm-0.3.1/src/libTerm/examples/ex_snake_automatic.py +177 -0
- libterm-0.3.1/src/libTerm/examples/ex_snake_manual.py +147 -0
- libterm-0.3.1/src/libTerm/examples/test +0 -0
- libterm-0.3.1/src/libTerm/examples/time +0 -0
- libterm-0.3.1/src/libTerm/modules/__init__.py +1 -0
- libterm-0.3.1/src/libTerm/modules/class_display.py +1 -0
- libterm-0.3.1/src/libTerm/modules/class_frame.py +77 -0
- libterm-0.3.1/src/libTerm/modules/class_menu.py +240 -0
- libterm-0.3.1/src/libTerm/term/__init__.py +15 -0
- {libterm-0.2.8 → libterm-0.3.1}/src/libTerm/term/input.py +23 -8
- {libterm-0.2.8 → libterm-0.3.1}/src/libTerm/term/mock.py +3 -2
- libterm-0.3.1/src/libTerm/term/posix.py +177 -0
- {libterm-0.2.8 → libterm-0.3.1}/src/libTerm/term/virt.py +3 -3
- {libterm-0.2.8 → libterm-0.3.1}/src/libTerm.egg-info/PKG-INFO +2 -2
- {libterm-0.2.8 → libterm-0.3.1}/src/libTerm.egg-info/SOURCES.txt +28 -16
- libterm-0.3.1/tests/test_colors.py +91 -0
- libterm-0.3.1/tests/test_selector.py +81 -0
- libterm-0.3.1/tests/test_store.py +120 -0
- libterm-0.2.8/Examples/__init__.py +0 -8
- libterm-0.2.8/Examples/ex_arrowkeys.py +0 -22
- libterm-0.2.8/Examples/ex_autosnake.py +0 -64
- libterm-0.2.8/Examples/ex_basic.py +0 -35
- libterm-0.2.8/Examples/ex_colors.py +0 -15
- libterm-0.2.8/Examples/ex_manualsnake.py +0 -65
- libterm-0.2.8/Examples/ex_printkeys.py +0 -17
- libterm-0.2.8/Examples/ex_simplemenu.py +0 -48
- libterm-0.2.8/Examples/time +0 -200440
- libterm-0.2.8/src/libTerm/__init__.py +0 -6
- libterm-0.2.8/src/libTerm/libextra/__init__.py +0 -1
- libterm-0.2.8/src/libTerm/libextra/class_menu.py +0 -64
- libterm-0.2.8/src/libTerm/term/__init__.py +0 -15
- libterm-0.2.8/src/libTerm/term/cursor.py +0 -251
- libterm-0.2.8/src/libTerm/term/posix.py +0 -249
- libterm-0.2.8/src/libTerm/types/__init__.py +0 -1
- libterm-0.2.8/src/libTerm/types/base.py +0 -482
- libterm-0.2.8/src/libTerm/types/enums.py +0 -29
- libterm-0.2.8/src/libTerm/types/extra.py +0 -1
- libterm-0.2.8/tests/test_selector.py +0 -36
- libterm-0.2.8/tests/test_store.py +0 -25
- {libterm-0.2.8 → libterm-0.3.1}/.STATUS_TESTS +0 -0
- {libterm-0.2.8 → libterm-0.3.1}/.gitignore +0 -0
- {libterm-0.2.8 → libterm-0.3.1}/.idea/inspectionProfiles/profiles_settings.xml +0 -0
- {libterm-0.2.8 → libterm-0.3.1}/.idea/libTerm.iml +0 -0
- {libterm-0.2.8 → libterm-0.3.1}/.idea/modules.xml +0 -0
- {libterm-0.2.8 → libterm-0.3.1}/.idea/vcs.xml +0 -0
- {libterm-0.2.8 → libterm-0.3.1}/0 +0 -0
- {libterm-0.2.8 → libterm-0.3.1}/dist/libterm-0.0.1-py3-none-any.whl +0 -0
- {libterm-0.2.8 → libterm-0.3.1}/dist/libterm-0.0.1.tar.gz +0 -0
- {libterm-0.2.8 → libterm-0.3.1}/dist/libterm-0.1.0-py3-none-any.whl +0 -0
- {libterm-0.2.8 → libterm-0.3.1}/dist/libterm-0.1.0.tar.gz +0 -0
- {libterm-0.2.8 → libterm-0.3.1}/dist/libterm-0.1.5-py3-none-any.whl +0 -0
- {libterm-0.2.8 → libterm-0.3.1}/dist/libterm-0.1.5.tar.gz +0 -0
- {libterm-0.2.8 → libterm-0.3.1}/dist/libterm-0.1.6-py3-none-any.whl +0 -0
- {libterm-0.2.8 → libterm-0.3.1}/dist/libterm-0.1.6.tar.gz +0 -0
- {libterm-0.2.8 → libterm-0.3.1}/dist/libterm-0.1.7-py3-none-any.whl +0 -0
- {libterm-0.2.8 → libterm-0.3.1}/dist/libterm-0.1.7.tar.gz +0 -0
- {libterm-0.2.8 → libterm-0.3.1}/dist/libterm-0.2.0-py3-none-any.whl +0 -0
- {libterm-0.2.8 → libterm-0.3.1}/dist/libterm-0.2.0.tar.gz +0 -0
- {libterm-0.2.8 → libterm-0.3.1}/dist/libterm-0.2.5-py3-none-any.whl +0 -0
- {libterm-0.2.8 → libterm-0.3.1}/dist/libterm-0.2.5.tar.gz +0 -0
- {libterm-0.2.8 → libterm-0.3.1}/dist/libterm-0.2.6-py3-none-any.whl +0 -0
- {libterm-0.2.8 → libterm-0.3.1}/dist/libterm-0.2.6.tar.gz +0 -0
- {libterm-0.2.8 → libterm-0.3.1}/dist/libterm-0.2.7-py3-none-any.whl +0 -0
- {libterm-0.2.8 → libterm-0.3.1}/dist/libterm-0.2.7.tar.gz +0 -0
- {libterm-0.2.8 → libterm-0.3.1}/doc/dev/project.md +0 -0
- {libterm-0.2.8 → libterm-0.3.1}/libterm.cast +0 -0
- {libterm-0.2.8 → libterm-0.3.1}/libterm.gif +0 -0
- {libterm-0.2.8 → libterm-0.3.1}/setup.cfg +0 -0
- {libterm-0.2.8 → libterm-0.3.1}/src/libTerm/term/winnt.py +0 -0
- {libterm-0.2.8 → libterm-0.3.1}/src/libTerm.egg-info/dependency_links.txt +0 -0
- {libterm-0.2.8 → libterm-0.3.1}/src/libTerm.egg-info/top_level.txt +0 -0
- {libterm-0.2.8 → libterm-0.3.1}/tests/__init__.py +0 -0
- {libterm-0.2.8 → libterm-0.3.1}/tests/test_cursor.py +0 -0
- {libterm-0.2.8 → libterm-0.3.1}/tests/test_posix_term.py +0 -0
|
@@ -4,7 +4,19 @@
|
|
|
4
4
|
<option name="autoReloadType" value="SELECTIVE" />
|
|
5
5
|
</component>
|
|
6
6
|
<component name="ChangeListManager">
|
|
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"
|
|
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$/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" />
|
|
19
|
+
</list>
|
|
8
20
|
<option name="SHOW_DIALOG" value="false" />
|
|
9
21
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
10
22
|
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
|
@@ -15,6 +27,16 @@
|
|
|
15
27
|
<entry key="_/home/jeroen/Development/Code/Python/Projects/libTerm" value="32XLRp94VBFj5lgNkdim9ARFbbU" />
|
|
16
28
|
</persistenceIdMap>
|
|
17
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>
|
|
18
40
|
<component name="FileTemplateManagerImpl">
|
|
19
41
|
<option name="RECENT_TEMPLATES">
|
|
20
42
|
<list>
|
|
@@ -40,8 +62,26 @@
|
|
|
40
62
|
<component name="HighlightingSettingsPerFile">
|
|
41
63
|
<setting file="file://$USER_HOME$/.cache/JetBrains/PyCharmCE2025.1/python_stubs/-1711940630/termios.py" root0="SKIP_INSPECTION" />
|
|
42
64
|
<setting file="file://$USER_HOME$/.cache/JetBrains/PyCharmCE2025.1/python_stubs/1055943265/termios.py" root0="SKIP_INSPECTION" />
|
|
43
|
-
<setting file="file://$PROJECT_DIR$/
|
|
44
|
-
<setting file="file://$PROJECT_DIR$/
|
|
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" />
|
|
45
85
|
<setting file="file://$APPLICATION_HOME_DIR$/plugins/python-ce/helpers/pydev/_pydev_imps/_pydev_execfile.py" root0="SKIP_INSPECTION" />
|
|
46
86
|
</component>
|
|
47
87
|
<component name="ProjectColorInfo">{
|
|
@@ -65,26 +105,42 @@
|
|
|
65
105
|
"Python tests.Python tests for test_posix_term.TestPosixTerm.executor": "Run",
|
|
66
106
|
"Python tests.Python tests for test_posix_term.TestPosixTerm.test_cursor.executor": "Run",
|
|
67
107
|
"Python tests.Python tests for test_posix_term.TestPosixTerm.test_cursor2.executor": "Run",
|
|
108
|
+
"Python tests.Python tests for test_selector.TestSelector.executor": "Run",
|
|
109
|
+
"Python tests.Python tests for test_selector.TestSelector.test_base.executor": "Run",
|
|
110
|
+
"Python tests.Python tests for test_selector.TestSelector.test_step.executor": "Run",
|
|
111
|
+
"Python tests.Python tests for test_selector.TestSelector.test_zeroone.executor": "Run",
|
|
68
112
|
"Python tests.Python tests for test_snake1.test_cursor.executor": "Run",
|
|
113
|
+
"Python tests.Python tests for test_store.TestStore.executor": "Debug",
|
|
69
114
|
"Python tests.Python tests in ex3.py.executor": "Run",
|
|
70
115
|
"Python tests.Python tests in test_cursor.py.executor": "Run",
|
|
71
116
|
"Python tests.Python tests in test_posix_term.py.executor": "Run",
|
|
117
|
+
"Python tests.Python tests in test_selector.py.executor": "Run",
|
|
118
|
+
"Python tests.Python tests in test_store.py.executor": "Run",
|
|
72
119
|
"Python tests.Python tests in tests.executor": "Run",
|
|
73
120
|
"Python.__init__ (1).executor": "Run",
|
|
74
121
|
"Python.__init__.executor": "Run",
|
|
122
|
+
"Python.__main__.executor": "Run",
|
|
75
123
|
"Python.base.executor": "Run",
|
|
124
|
+
"Python.class_frame.executor": "Run",
|
|
76
125
|
"Python.class_menu (1).executor": "Run",
|
|
77
126
|
"Python.class_menu.executor": "Run",
|
|
78
127
|
"Python.cursor.executor": "Run",
|
|
128
|
+
"Python.enums.executor": "Run",
|
|
79
129
|
"Python.ex3.executor": "Run",
|
|
80
130
|
"Python.ex_arrowkeys.executor": "Run",
|
|
81
131
|
"Python.ex_autosnake.executor": "Run",
|
|
132
|
+
"Python.ex_basic.executor": "Run",
|
|
82
133
|
"Python.ex_colors.executor": "Run",
|
|
83
|
-
"Python.ex_manualsnake.executor": "
|
|
134
|
+
"Python.ex_manualsnake.executor": "Debug",
|
|
135
|
+
"Python.ex_menu_grid_big.executor": "Run",
|
|
84
136
|
"Python.ex_printkeys.executor": "Debug",
|
|
137
|
+
"Python.ex_simplegrid.executor": "Run",
|
|
85
138
|
"Python.ex_simplemenu.executor": "Run",
|
|
86
139
|
"Python.ex_snake1.executor": "Run",
|
|
140
|
+
"Python.ex_snake_automatic.executor": "Run",
|
|
141
|
+
"Python.ex_snake_manual.executor": "Run",
|
|
87
142
|
"Python.example.executor": "Run",
|
|
143
|
+
"Python.input.executor": "Run",
|
|
88
144
|
"Python.posix.executor": "Run",
|
|
89
145
|
"Python.python -m build.executor": "Run",
|
|
90
146
|
"Python.python -m twine upload dist/*.executor": "Run",
|
|
@@ -96,24 +152,25 @@
|
|
|
96
152
|
"RunOnceActivity.TerminalTabsStorage.copyFrom.TerminalArrangementManager": "true",
|
|
97
153
|
"RunOnceActivity.git.unshallow": "true",
|
|
98
154
|
"git-widget-placeholder": "master",
|
|
99
|
-
"last_opened_file_path": "/
|
|
100
|
-
"settings.editor.selected.configurable": "
|
|
155
|
+
"last_opened_file_path": "/vol/NTFSDV5/users/HuurLijster",
|
|
156
|
+
"settings.editor.selected.configurable": "preferences.pluginManager"
|
|
101
157
|
}
|
|
102
158
|
}</component>
|
|
103
159
|
<component name="RecentsManager">
|
|
104
160
|
<key name="CopyFile.RECENT_KEYS">
|
|
161
|
+
<recent name="$PROJECT_DIR$/Examples" />
|
|
105
162
|
<recent name="H:\libTerm" />
|
|
106
163
|
<recent name="H:\libTerm\src\libTerm" />
|
|
107
164
|
</key>
|
|
108
165
|
<key name="MoveFile.RECENT_KEYS">
|
|
166
|
+
<recent name="$PROJECT_DIR$/src/libTerm" />
|
|
109
167
|
<recent name="$PROJECT_DIR$/Examples" />
|
|
110
168
|
<recent name="$PROJECT_DIR$/libextra" />
|
|
111
|
-
<recent name="$PROJECT_DIR$/src/libTerm" />
|
|
112
169
|
<recent name="$PROJECT_DIR$/.local/venvs" />
|
|
113
170
|
</key>
|
|
114
171
|
</component>
|
|
115
|
-
<component name="RunManager" selected="Python.
|
|
116
|
-
<configuration name="
|
|
172
|
+
<component name="RunManager" selected="Python.ex_basic">
|
|
173
|
+
<configuration name="__init__" type="PythonConfigurationType" factoryName="Python" nameIsGenerated="true">
|
|
117
174
|
<module name="libTerm" />
|
|
118
175
|
<option name="ENV_FILES" value="" />
|
|
119
176
|
<option name="INTERPRETER_OPTIONS" value="" />
|
|
@@ -122,11 +179,33 @@
|
|
|
122
179
|
<env name="PYTHONUNBUFFERED" value="1" />
|
|
123
180
|
</envs>
|
|
124
181
|
<option name="SDK_HOME" value="" />
|
|
125
|
-
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/src/libTerm/
|
|
182
|
+
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/src/libTerm/examples" />
|
|
126
183
|
<option name="IS_MODULE_SDK" value="true" />
|
|
127
184
|
<option name="ADD_CONTENT_ROOTS" value="true" />
|
|
128
185
|
<option name="ADD_SOURCE_ROOTS" value="true" />
|
|
129
|
-
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/src/libTerm/
|
|
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" />
|
|
205
|
+
<option name="IS_MODULE_SDK" value="true" />
|
|
206
|
+
<option name="ADD_CONTENT_ROOTS" value="true" />
|
|
207
|
+
<option name="ADD_SOURCE_ROOTS" value="true" />
|
|
208
|
+
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/src/libTerm/examples/__main__.py" />
|
|
130
209
|
<option name="PARAMETERS" value="" />
|
|
131
210
|
<option name="SHOW_COMMAND_LINE" value="false" />
|
|
132
211
|
<option name="EMULATE_TERMINAL" value="false" />
|
|
@@ -135,7 +214,7 @@
|
|
|
135
214
|
<option name="INPUT_FILE" value="" />
|
|
136
215
|
<method v="2" />
|
|
137
216
|
</configuration>
|
|
138
|
-
<configuration name="
|
|
217
|
+
<configuration name="class_frame" type="PythonConfigurationType" factoryName="Python" nameIsGenerated="true">
|
|
139
218
|
<module name="libTerm" />
|
|
140
219
|
<option name="ENV_FILES" value="" />
|
|
141
220
|
<option name="INTERPRETER_OPTIONS" value="" />
|
|
@@ -144,11 +223,11 @@
|
|
|
144
223
|
<env name="PYTHONUNBUFFERED" value="1" />
|
|
145
224
|
</envs>
|
|
146
225
|
<option name="SDK_HOME" value="" />
|
|
147
|
-
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/src/libTerm/
|
|
226
|
+
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/src/libTerm/libextra" />
|
|
148
227
|
<option name="IS_MODULE_SDK" value="true" />
|
|
149
228
|
<option name="ADD_CONTENT_ROOTS" value="true" />
|
|
150
229
|
<option name="ADD_SOURCE_ROOTS" value="true" />
|
|
151
|
-
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/src/libTerm/
|
|
230
|
+
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/src/libTerm/libextra/class_frame.py" />
|
|
152
231
|
<option name="PARAMETERS" value="" />
|
|
153
232
|
<option name="SHOW_COMMAND_LINE" value="false" />
|
|
154
233
|
<option name="EMULATE_TERMINAL" value="true" />
|
|
@@ -157,7 +236,7 @@
|
|
|
157
236
|
<option name="INPUT_FILE" value="" />
|
|
158
237
|
<method v="2" />
|
|
159
238
|
</configuration>
|
|
160
|
-
<configuration name="
|
|
239
|
+
<configuration name="enums" type="PythonConfigurationType" factoryName="Python" temporary="true" nameIsGenerated="true">
|
|
161
240
|
<module name="libTerm" />
|
|
162
241
|
<option name="ENV_FILES" value="" />
|
|
163
242
|
<option name="INTERPRETER_OPTIONS" value="" />
|
|
@@ -166,14 +245,36 @@
|
|
|
166
245
|
<env name="PYTHONUNBUFFERED" value="1" />
|
|
167
246
|
</envs>
|
|
168
247
|
<option name="SDK_HOME" value="" />
|
|
169
|
-
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/
|
|
248
|
+
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/src/libTerm/types" />
|
|
170
249
|
<option name="IS_MODULE_SDK" value="true" />
|
|
171
250
|
<option name="ADD_CONTENT_ROOTS" value="true" />
|
|
172
251
|
<option name="ADD_SOURCE_ROOTS" value="true" />
|
|
173
|
-
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/
|
|
252
|
+
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/src/libTerm/types/enums.py" />
|
|
174
253
|
<option name="PARAMETERS" value="" />
|
|
175
254
|
<option name="SHOW_COMMAND_LINE" value="false" />
|
|
176
|
-
<option name="EMULATE_TERMINAL" value="
|
|
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" />
|
|
177
278
|
<option name="MODULE_MODE" value="false" />
|
|
178
279
|
<option name="REDIRECT_INPUT" value="false" />
|
|
179
280
|
<option name="INPUT_FILE" value="" />
|
|
@@ -201,7 +302,7 @@
|
|
|
201
302
|
<option name="INPUT_FILE" value="" />
|
|
202
303
|
<method v="2" />
|
|
203
304
|
</configuration>
|
|
204
|
-
<configuration name="
|
|
305
|
+
<configuration name="ex_menu_grid_big" type="PythonConfigurationType" factoryName="Python" temporary="true" nameIsGenerated="true">
|
|
205
306
|
<module name="libTerm" />
|
|
206
307
|
<option name="ENV_FILES" value="" />
|
|
207
308
|
<option name="INTERPRETER_OPTIONS" value="" />
|
|
@@ -210,20 +311,20 @@
|
|
|
210
311
|
<env name="PYTHONUNBUFFERED" value="1" />
|
|
211
312
|
</envs>
|
|
212
313
|
<option name="SDK_HOME" value="" />
|
|
213
|
-
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/
|
|
314
|
+
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/src/libTerm/examples" />
|
|
214
315
|
<option name="IS_MODULE_SDK" value="true" />
|
|
215
316
|
<option name="ADD_CONTENT_ROOTS" value="true" />
|
|
216
317
|
<option name="ADD_SOURCE_ROOTS" value="true" />
|
|
217
|
-
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/
|
|
318
|
+
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/src/libTerm/examples/ex_menu_grid_big.py" />
|
|
218
319
|
<option name="PARAMETERS" value="" />
|
|
219
320
|
<option name="SHOW_COMMAND_LINE" value="false" />
|
|
220
|
-
<option name="EMULATE_TERMINAL" value="
|
|
321
|
+
<option name="EMULATE_TERMINAL" value="false" />
|
|
221
322
|
<option name="MODULE_MODE" value="false" />
|
|
222
323
|
<option name="REDIRECT_INPUT" value="false" />
|
|
223
324
|
<option name="INPUT_FILE" value="" />
|
|
224
325
|
<method v="2" />
|
|
225
326
|
</configuration>
|
|
226
|
-
<configuration name="
|
|
327
|
+
<configuration name="ex_snake_manual" type="PythonConfigurationType" factoryName="Python" temporary="true" nameIsGenerated="true">
|
|
227
328
|
<module name="libTerm" />
|
|
228
329
|
<option name="ENV_FILES" value="" />
|
|
229
330
|
<option name="INTERPRETER_OPTIONS" value="" />
|
|
@@ -232,11 +333,11 @@
|
|
|
232
333
|
<env name="PYTHONUNBUFFERED" value="1" />
|
|
233
334
|
</envs>
|
|
234
335
|
<option name="SDK_HOME" value="" />
|
|
235
|
-
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/
|
|
336
|
+
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/src/libTerm/examples" />
|
|
236
337
|
<option name="IS_MODULE_SDK" value="true" />
|
|
237
338
|
<option name="ADD_CONTENT_ROOTS" value="true" />
|
|
238
339
|
<option name="ADD_SOURCE_ROOTS" value="true" />
|
|
239
|
-
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/
|
|
340
|
+
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/src/libTerm/examples/ex_snake_manual.py" />
|
|
240
341
|
<option name="PARAMETERS" value="" />
|
|
241
342
|
<option name="SHOW_COMMAND_LINE" value="false" />
|
|
242
343
|
<option name="EMULATE_TERMINAL" value="true" />
|
|
@@ -269,11 +370,11 @@
|
|
|
269
370
|
</configuration>
|
|
270
371
|
<recent_temporary>
|
|
271
372
|
<list>
|
|
272
|
-
<item itemvalue="Python.
|
|
273
|
-
<item itemvalue="Python.
|
|
274
|
-
<item itemvalue="Python.
|
|
275
|
-
<item itemvalue="Python.
|
|
276
|
-
<item itemvalue="Python.
|
|
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" />
|
|
277
378
|
</list>
|
|
278
379
|
</recent_temporary>
|
|
279
380
|
</component>
|
|
@@ -339,11 +440,6 @@
|
|
|
339
440
|
<component name="XDebuggerManager">
|
|
340
441
|
<breakpoint-manager>
|
|
341
442
|
<breakpoints>
|
|
342
|
-
<line-breakpoint enabled="true" suspend="THREAD" type="python-line">
|
|
343
|
-
<url>file://$PROJECT_DIR$/src/libTerm/term/cursor.py</url>
|
|
344
|
-
<line>106</line>
|
|
345
|
-
<option name="timeStamp" value="3" />
|
|
346
|
-
</line-breakpoint>
|
|
347
443
|
<line-breakpoint enabled="true" suspend="THREAD" type="python-line">
|
|
348
444
|
<url>file://$PROJECT_DIR$/src/libTerm/types.py</url>
|
|
349
445
|
<line>252</line>
|
|
@@ -354,6 +450,36 @@
|
|
|
354
450
|
<line>371</line>
|
|
355
451
|
<option name="timeStamp" value="6" />
|
|
356
452
|
</line-breakpoint>
|
|
453
|
+
<line-breakpoint enabled="true" suspend="THREAD" type="python-line">
|
|
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" />
|
|
482
|
+
</line-breakpoint>
|
|
357
483
|
</breakpoints>
|
|
358
484
|
</breakpoint-manager>
|
|
359
485
|
</component>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: libTerm
|
|
3
|
-
Version: 0.
|
|
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
|
-
|
|
249
|
+
print("Terminal resized!")
|
|
250
250
|
```
|
|
251
251
|
|
|
252
252
|
---
|
|
Binary file
|
|
Binary file
|
|
@@ -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
|