This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From e3e2c987154055fceea4d459c34699a44d36cada Mon Sep 17 00:00:00 2001 | |
From: Adam Saponara <as@php.net> | |
Date: Wed, 3 Aug 2022 18:27:14 -0400 | |
Subject: [PATCH] Add sixel support | |
--- | |
terminal/terminal-preferences-dialog.c | 15 +++++++++++++++ | |
terminal/terminal-preferences.c | 11 +++++++++++ | |
terminal/terminal-screen.c | 16 +++++++++++++++- | |
3 files changed, 41 insertions(+), 1 deletion(-) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
$libreadline_so = __DIR__ . '/vendor/readline/shlib/libreadline.so.8.1'; | |
$readline_h = <<<'EOD' | |
int rl_catch_signals; | |
int rl_catch_sigwinch; | |
int rl_change_environment; | |
int rl_point; | |
char *rl_display_prompt; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/codegen.sh b/codegen.sh | |
index 7b0cc81..60d4aa7 100755 | |
--- a/codegen.sh | |
+++ b/codegen.sh | |
@@ -3,6 +3,7 @@ set -uo pipefail | |
read -r -d '' builtin_terms <<'EOD' | |
xterm | |
+ xterm-256color | |
linux |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Apache 2.4.x: | |
adam@asx1c9:~/httpd$ bin/httpd -V | |
Server version: Apache/2.4.52 (Unix) | |
Server built: May 12 2022 13:13:11 | |
Server's Module Magic Number: 20120211:121 | |
Server loaded: APR 2.0.0-dev | |
Compiled using: APR 2.0.0-dev | |
Architecture: 64-bit | |
Server MPM: prefork |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/include/httpd.h b/include/httpd.h | |
index 2057ec31b2..e9f850c310 100644 | |
--- a/include/httpd.h | |
+++ b/include/httpd.h | |
@@ -812,40 +812,42 @@ typedef struct request_rec request_rec; | |
typedef struct conn_state_t conn_state_t; | |
/* ### would be nice to not include this from httpd.h ... */ | |
/* This comes after we have defined the request_rec type */ | |
#include "apr_uri.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/keys.h b/keys.h | |
index c0a242b..efc8e84 100644 | |
--- a/keys.h | |
+++ b/keys.h | |
@@ -1,4 +1,5 @@ | |
// kname modmin modadd ch key | |
+MLE_KEY_DEF("space", TB_MOD_CTRL, 0, 0, TB_KEY_CTRL_TILDE) | |
MLE_KEY_DEF("~", TB_MOD_CTRL, 0, 0, TB_KEY_CTRL_TILDE) | |
MLE_KEY_DEF("2", TB_MOD_CTRL, 0, 0, TB_KEY_CTRL_TILDE) | |
MLE_KEY_DEF("a", TB_MOD_CTRL, 0, 0, TB_KEY_CTRL_A) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/uscript.c b/uscript.c | |
index 17cf1d3..5af186a 100644 | |
--- a/uscript.c | |
+++ b/uscript.c | |
@@ -170,29 +170,51 @@ static void _uscript_push_event_map(uscript_t *uscript, char *event_name, void * | |
luaL_pushkey(L, pointer, "bview", event_data); | |
return; | |
} else if (strncmp(event_name, "cmd:", 4) == 0) { | |
_uscript_push_cmd_map(L, (cmd_context_t*)event_data); | |
return; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$ffi = FFI::cdef(<<<'EOD' | |
void *sem_open(const char *name, int oflag, int mode, int value); | |
int sem_post(void *sem); | |
int sem_wait(void *sem); | |
int sem_getvalue(void *sem, int *sval); | |
int sem_unlink(const char *name); | |
int sem_close(void *sem); | |
EOD |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* gcc -Wall -pedantic -g -std=c99 shmcat.c -o shmcat */ | |
#define _XOPEN_SOURCE | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <sys/shm.h> | |
int main(int argc, char **argv) { | |
if (argc < 2) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/main/main.c b/main/main.c | |
index a0f1a658c6..65fa68f682 100644 | |
--- a/main/main.c | |
+++ b/main/main.c | |
@@ -673,20 +673,21 @@ PHP_INI_BEGIN() | |
PHP_INI_ENTRY_EX("highlight.comment", HL_COMMENT_COLOR, PHP_INI_ALL, NULL, php_ini_color_displayer_cb) | |
PHP_INI_ENTRY_EX("highlight.default", HL_DEFAULT_COLOR, PHP_INI_ALL, NULL, php_ini_color_displayer_cb) | |
PHP_INI_ENTRY_EX("highlight.html", HL_HTML_COLOR, PHP_INI_ALL, NULL, php_ini_color_displayer_cb) | |
PHP_INI_ENTRY_EX("highlight.keyword", HL_KEYWORD_COLOR, PHP_INI_ALL, NULL, php_ini_color_displayer_cb) | |
PHP_INI_ENTRY_EX("highlight.string", HL_STRING_COLOR, PHP_INI_ALL, NULL, php_ini_color_displayer_cb) |