Skip to content

Commit

Permalink
Rename <terminal> library to <vtbackend>.
Browse files Browse the repository at this point in the history
  • Loading branch information
christianparpart committed Dec 10, 2022
1 parent 7ab18fa commit ad60fa3
Show file tree
Hide file tree
Showing 125 changed files with 296 additions and 292 deletions.
2 changes: 1 addition & 1 deletion .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ UseTab: Never
IncludeCategories:
- Regex: '^<(contour)/'
Priority: 0
- Regex: '^<(terminal)/'
- Regex: '^<(vtbackend)/'
Priority: 1
- Regex: '^<(vtparser)/'
Priority: 2
Expand Down
2 changes: 1 addition & 1 deletion .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ coverage:
changes: no

ignore:
- src/terminal/*_test.cpp
- src/vtbackend/*_test.cpp
- 3rdparty/*

parsers:
Expand Down
2 changes: 1 addition & 1 deletion .github/fedora/contour.spec
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ cd build

%check
./build/src/crispy/crispy_test
./build/src/terminal/terminal_test
./build/src/vtbackend/terminal_test


%files
Expand Down
10 changes: 7 additions & 3 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@ OpenGL:
- src/contour/opengl/*.cpp
- src/contour/opengl/*.h
"VT: backend":
- src/terminal/*.cpp
- src/terminal/*.h
"VT: renderer":
- src/vtbackend/*.cpp
- src/vtbackend/*.h
- src/vtpty/*.cpp
- src/vtpty/*.h
- src/vtparser/*.cpp
- src/vtparser/*.h
"VT: rasterizer":
- src/vtrasterizer/*.cpp
- src/vtrasterizer/*.h
documentation:
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ jobs:
cmake --build build/ -j2
./build/src/crispy/crispy_test
./build/src/vtparser/vtparser_test
./build/src/terminal/terminal_test
./build/src/vtbackend/terminal_test
rm -rf _deps build
osx_qt5:
Expand Down Expand Up @@ -243,7 +243,7 @@ jobs:
- name: "test: vtparser"
run: ./build/src/vtparser/vtparser_test
- name: "test: libterminal"
run: ./build/src/terminal/terminal_test
run: ./build/src/vtbackend/terminal_test
- name: "Create Package(s)"
run: |
set -ex
Expand Down Expand Up @@ -297,7 +297,7 @@ jobs:
- name: "test: vtparser"
run: ./build/src/vtparser/vtparser_test
- name: "test: libterminal"
run: ./build/src/terminal/terminal_test
run: ./build/src/vtbackend/terminal_test

windows:
name: "Windows"
Expand Down Expand Up @@ -341,7 +341,7 @@ jobs:
- name: "test: vtparser"
run: .\build\src\vtparser\Release\vtparser_test.exe
- name: "test: libterminal"
run: .\build\src\terminal\Release\terminal_test.exe
run: .\build\src\vtbackend\Release\terminal_test.exe
- name: "Create Package(s)"
shell: powershell
run: |
Expand Down Expand Up @@ -449,7 +449,7 @@ jobs:
- name: "test: vtparser"
run: ./build/src/vtparser/vtparser_test
- name: "test: libterminal"
run: ./build/src/terminal/terminal_test
run: ./build/src/vtbackend/terminal_test
- name: "Upload unit tests"
if: ${{ matrix.compiler == 'GCC 10' && matrix.cxx == '20' }}
uses: actions/upload-artifact@v3
Expand All @@ -458,8 +458,8 @@ jobs:
path: |
build/src/crispy/crispy_test
build/src/vtparser/vtparser_test
build/src/terminal/terminal_test
build/src/terminal/bench-headless
build/src/vtbackend/terminal_test
build/src/vtbackend/bench-headless
test/images
retention-days: 1

Expand Down Expand Up @@ -521,7 +521,7 @@ jobs:
- name: "test: vtparser"
run: ./build/src/vtparser/vtparser_test
- name: "test: libterminal"
run: ./build/src/terminal/terminal_test
run: ./build/src/vtbackend/terminal_test
- name: "linuxdeploy: Creating AppImage"
run: |
set -ex
Expand Down Expand Up @@ -608,7 +608,7 @@ jobs:
- name: "test: vtparser"
run: ./build/src/vtparser/vtparser_test
- name: "test: libterminal"
run: ./build/src/terminal/terminal_test
run: ./build/src/vtbackend/terminal_test
- name: "CPack: Creating DEB package"
run: |
set -ex
Expand Down Expand Up @@ -672,7 +672,7 @@ jobs:
- name: "test: vtparser (via valgrind)"
run: valgrind --error-exitcode=64 ./build/src/vtparser/vtparser_test
- name: "test: libterminal (via valgrind)"
run: valgrind --error-exitcode=64 ./build/src/terminal/terminal_test
run: valgrind --error-exitcode=64 ./build/src/vtbackend/terminal_test
- name: "Delete artifact: contour-ubuntu2204-tests"
uses: geekyeggo/delete-artifact@v2
with:
Expand Down Expand Up @@ -714,7 +714,7 @@ jobs:
ncurses-bin \
valgrind
- name: "bench-headless: ${{ matrix.test_case }}"
run: valgrind --error-exitcode=64 ./build/src/terminal/bench-headless ${{ matrix.test_case }} size 1
run: valgrind --error-exitcode=64 ./build/src/vtbackend/bench-headless ${{ matrix.test_case }} size 1
- name: "Delete artifact: contour-ubuntu2204-tests"
uses: geekyeggo/delete-artifact@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml.disabled
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
- name: "test: libcrispy"
run: ./build/src/crispy/crispy_test
- name: "test: libterminal"
run: ./build/src/terminal/terminal_test
run: ./build/src/vtbackend/terminal_test

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/external_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ jobs:
- name: "test: crispy"
run: ./build/src/crispy/crispy_test
- name: "test: libterminal"
run: ./build/src/terminal/terminal_test
run: ./build/src/vtbackend/terminal_test
- name: "CPack: Creating DEB package"
run: |
set -ex
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ jobs:
- name: "test: libcrispy"
run: ./build/src/crispy/crispy_test
- name: "test: libterminal"
run: ./build/src/terminal/terminal_test
run: ./build/src/vtbackend/terminal_test
- name: inspect
run: |
find build/ -print
Expand Down Expand Up @@ -353,7 +353,7 @@ jobs:
- name: "test: crispy"
run: ./build/src/crispy/crispy_test
- name: "test: libterminal"
run: ./build/src/terminal/terminal_test
run: ./build/src/vtbackend/terminal_test
- name: "linuxdeploy: Creating AppImage"
run: |
set -ex
Expand Down Expand Up @@ -427,7 +427,7 @@ jobs:
- name: "test: crispy"
run: ./build/src/crispy/crispy_test
- name: "test: libterminal"
run: ./build/src/terminal/terminal_test
run: ./build/src/vtbackend/terminal_test
- name: "CPack: Creating DEB package"
run: |
set -ex
Expand Down
2 changes: 1 addition & 1 deletion debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ build-stamp: configure-stamp
dh_testdir
$(MAKE) -C ${BUILDDIR} -j3
${BUILDDIR}/src/crispy/crispy_test
${BUILDDIR}/src/terminal/terminal_test
${BUILDDIR}/src/vtbackend/terminal_test
touch $@

install: install-stamp
Expand Down
6 changes: 3 additions & 3 deletions examples/watch-mouse-events.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <terminal/InputGenerator.h>
#include <terminal/Sequence.h>
#include <terminal/primitives.h>
#include <vtbackend/InputGenerator.h>
#include <vtbackend/Sequence.h>
#include <vtbackend/primitives.h>

#include <vtparser/Parser.h>
#include <vtparser/ParserEvents.h>
Expand Down
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ add_subdirectory(crispy)
add_subdirectory(text_shaper)
add_subdirectory(vtpty)
add_subdirectory(vtparser)
add_subdirectory(terminal)
add_subdirectory(vtbackend)
add_subdirectory(vtrasterizer)

if(CONTOUR_FRONTEND_GUI)
Expand Down
2 changes: 1 addition & 1 deletion src/contour/CaptureScreen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*/
#include <contour/CaptureScreen.h>

#include <terminal/Functions.h>
#include <vtbackend/Functions.h>

#include <vtparser/Parser.h>
#include <vtparser/ParserEvents.h>
Expand Down
2 changes: 1 addition & 1 deletion src/contour/CaptureScreen.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*/
#pragma once

#include <terminal/primitives.h>
#include <vtbackend/primitives.h>

#include <string>

Expand Down
4 changes: 2 additions & 2 deletions src/contour/Config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
*/
#include "Config.h"

#include <terminal/ControlCode.h>
#include <terminal/InputGenerator.h>
#include <vtbackend/ControlCode.h>
#include <vtbackend/InputGenerator.h>

#include <vtpty/Process.h>

Expand Down
8 changes: 4 additions & 4 deletions src/contour/Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
#include <contour/Actions.h>
#include <contour/display/ShaderConfig.h>

#include <terminal/Color.h>
#include <terminal/ColorPalette.h>
#include <terminal/InputBinding.h>
#include <terminal/Sequencer.h> // CursorDisplay
#include <vtbackend/Color.h>
#include <vtbackend/ColorPalette.h>
#include <vtbackend/InputBinding.h>
#include <vtbackend/Sequencer.h> // CursorDisplay

#include <vtpty/Process.h>

Expand Down
4 changes: 2 additions & 2 deletions src/contour/ContourApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
#include <contour/Config.h>
#include <contour/ContourApp.h>

#include <terminal/Capabilities.h>
#include <terminal/Functions.h>
#include <vtbackend/Capabilities.h>
#include <vtbackend/Functions.h>

#include <vtparser/Parser.h>

Expand Down
4 changes: 2 additions & 2 deletions src/contour/ScrollableDisplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
#include <contour/TerminalSession.h>
#include <contour/helper.h>

#include <terminal/Terminal.h>
#include <terminal/Viewport.h>
#include <vtbackend/Terminal.h>
#include <vtbackend/Viewport.h>

namespace contour
{
Expand Down
6 changes: 3 additions & 3 deletions src/contour/TerminalSession.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
#include <contour/display/TerminalWidget.h>
#include <contour/helper.h>

#include <terminal/MatchModes.h>
#include <terminal/Terminal.h>
#include <terminal/ViCommands.h>
#include <vtbackend/MatchModes.h>
#include <vtbackend/Terminal.h>
#include <vtbackend/ViCommands.h>

#include <vtpty/Process.h>
#include <vtpty/Pty.h>
Expand Down
2 changes: 1 addition & 1 deletion src/contour/TerminalSession.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include <contour/Audio.h>
#include <contour/Config.h>

#include <terminal/Terminal.h>
#include <vtbackend/Terminal.h>

#include <vtrasterizer/Renderer.h>

Expand Down
2 changes: 1 addition & 1 deletion src/contour/TerminalWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#include <contour/display/TerminalWidget.h>

#include <terminal/Metrics.h>
#include <vtbackend/Metrics.h>

#include <vtpty/Pty.h>

Expand Down
2 changes: 1 addition & 1 deletion src/contour/TerminalWindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include <contour/TerminalSession.h>
#include <contour/display/TerminalWidget.h>

#include <terminal/Metrics.h>
#include <vtbackend/Metrics.h>

#include <crispy/assert.h>

Expand Down
2 changes: 1 addition & 1 deletion src/contour/display/OpenGLRenderer.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#include <contour/display/Blur.h>

#include <terminal/Image.h>
#include <vtbackend/Image.h>

#include <vtrasterizer/RenderTarget.h>
#include <vtrasterizer/TextureAtlas.h>
Expand Down
4 changes: 2 additions & 2 deletions src/contour/display/TerminalWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
#include <contour/display/TerminalWidget.h>
#include <contour/helper.h>

#include <terminal/Color.h>
#include <terminal/Metrics.h>
#include <vtbackend/Color.h>
#include <vtbackend/Metrics.h>

#include <vtpty/Pty.h>

Expand Down
6 changes: 3 additions & 3 deletions src/contour/display/TerminalWidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
#include <contour/TerminalSession.h>
#include <contour/helper.h>

#include <terminal/Color.h>
#include <terminal/Metrics.h>
#include <terminal/primitives.h>
#include <vtbackend/Color.h>
#include <vtbackend/Metrics.h>
#include <vtbackend/primitives.h>

#include <vtrasterizer/Renderer.h>

Expand Down
2 changes: 1 addition & 1 deletion src/contour/helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include <contour/display/TerminalWidget.h>
#include <contour/helper.h>

#include <terminal/Terminal.h>
#include <vtbackend/Terminal.h>

#include <vtrasterizer/Renderer.h>

Expand Down
4 changes: 2 additions & 2 deletions src/contour/helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@

#include <contour/Config.h>

#include <terminal/InputGenerator.h>
#include <terminal/ScreenEvents.h>
#include <vtbackend/InputGenerator.h>
#include <vtbackend/ScreenEvents.h>

#include <vtrasterizer/GridMetrics.h>

Expand Down
2 changes: 1 addition & 1 deletion src/crispy/Size_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <terminal/Size.h>
#include <vtbackend/Size.h>

#include <catch2/catch.hpp>

Expand Down
7 changes: 0 additions & 7 deletions src/terminal/MatchModes.cpp

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <terminal/Capabilities.h>
#include <vtbackend/Capabilities.h>

#include <crispy/escape.h>

Expand Down
File renamed without changes.
Loading

0 comments on commit ad60fa3

Please sign in to comment.