Skip to content

Commit

Permalink
Changes to work with pragtical luajit
Browse files Browse the repository at this point in the history
  • Loading branch information
jgmdev committed May 13, 2024
1 parent 13d96aa commit bfdd155
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,14 @@ jobs:
- name: Checkout Code
uses: actions/checkout@v3
with: { fetch-depth: 0, submodules: true }
- name: Install Cross Compiler
run: |
sudo apt-get install -y gcc-aarch64-linux-gnu
- name: Build Linux
run: |
BIN=libterminal.x86_64-linux.so ./build.sh -O3 -DLIBTERMINAL_VERSION='"'${{ needs.version.outputs.version }}-x86_64-linux'"'
BIN=libterminal.aarch64-linux.so CC=aarch64-linux-gnu-gcc ./build.sh -O3 -DLIBTERMINAL_VERSION='"'${{ needs.version.outputs.version }}-aarch64-linux'"'
ls .
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with: { name: "Linux", path: "*.so" }
Expand Down
1 change: 1 addition & 0 deletions plugins/terminal/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,7 @@ function TerminalView:draw()
local offset = 0
local foreground, background, text_style
for i = 1, #line, 2 do
line[i] = math.tointeger(line[i])
background = self:convert_color(bit.band(line[i], 0xFFFFFFFF), "background")
foreground, text_style = self:convert_color(bit.rshift(line[i], 32), "foreground", self.options.bold_text_in_bright_colors)

Expand Down

0 comments on commit bfdd155

Please sign in to comment.