Compare commits

..

No commits in common. "195d69676fa0d5e99d33068a5662fd83244fda3e" and "fc991ab697ef5715bd37dc4caf2d3adf02e018f3" have entirely different histories.

5 changed files with 11 additions and 10 deletions

View File

@ -35,7 +35,7 @@ A new Flutter FFI plugin project.
s.prepare_command = <<-CMD
rm -rf pocketpy
git clone --branch v2.1.5 --depth 1 https://github.com/pocketpy/pocketpy.git
git clone --branch v2.1.4 --depth 1 https://github.com/pocketpy/pocketpy.git
cd pocketpy
git submodule update --init --recursive --depth 1
bash build_ios_libs.sh

View File

@ -32,7 +32,7 @@ A new Flutter FFI plugin project.
s.prepare_command = <<-CMD
rm -rf pocketpy
git clone --branch v2.1.5 --depth 1 https://github.com/pocketpy/pocketpy.git
git clone --branch v2.1.4 --depth 1 https://github.com/pocketpy/pocketpy.git
cd pocketpy
git submodule update --init --recursive --depth 1
bash build_darwin_libs.sh

View File

@ -1,6 +1,6 @@
name: pocketpy
description: A lightweight Python interpreter for game engines. It supports Android/iOS/Windows/Linux/MacOS.
version: 2.1.5
version: 2.1.4
homepage: https://pocketpy.dev
repository: https://github.com/pocketpy/pocketpy

View File

@ -21,7 +21,7 @@ set(PK_BUILD_SHARED_LIB ON CACHE BOOL "" FORCE)
FetchContent_Declare(
pocketpy
GIT_REPOSITORY https://github.com/pocketpy/pocketpy.git
GIT_TAG v2.1.5
GIT_TAG v2.1.4
)
FetchContent_MakeAvailable(pocketpy)

View File

@ -207,13 +207,14 @@ static bool array2d_like_render_with_color(int argc, py_Ref argv) {
c11_sbuf__write_sv(&buf, py_tosv(py_retval()));
}
// newline
if(j < self->n_rows - 1) {
curr_fg.u32 = 0;
curr_bg.u32 = 0;
c11_sbuf__write_cstr(&buf, "\x1b[0m\n");
} else {
c11_sbuf__write_cstr(&buf, "\x1b[0m");
if(curr_fg.u32 != 0 || curr_bg.u32 != 0) {
curr_fg.u32 = 0;
curr_bg.u32 = 0;
c11_sbuf__write_cstr(&buf, "\x1b[0m\n");
} else {
c11_sbuf__write_char(&buf, '\n');
}
}
}
c11_sbuf__py_submit(&buf, py_retval());