Compare commits

...

3 Commits

Author SHA1 Message Date
blueloveTH
195d69676f Update array2d.c 2025-12-06 21:43:29 +08:00
blueloveTH
096d93697a Update array2d.c 2025-12-06 21:41:29 +08:00
blueloveTH
aa2f15fcb6 update to v2.1.5 2025-12-06 21:22:41 +08:00
5 changed files with 10 additions and 11 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.4 --depth 1 https://github.com/pocketpy/pocketpy.git
git clone --branch v2.1.5 --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.4 --depth 1 https://github.com/pocketpy/pocketpy.git
git clone --branch v2.1.5 --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.4
version: 2.1.5
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.4
GIT_TAG v2.1.5
)
FetchContent_MakeAvailable(pocketpy)

View File

@ -207,14 +207,13 @@ 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) {
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');
}
curr_fg.u32 = 0;
curr_bg.u32 = 0;
c11_sbuf__write_cstr(&buf, "\x1b[0m\n");
} else {
c11_sbuf__write_cstr(&buf, "\x1b[0m");
}
}
c11_sbuf__py_submit(&buf, py_retval());