mirror of
https://github.com/Interlisp/maiko.git
synced 2026-03-15 22:37:22 +00:00
Compare commits
7 Commits
maiko-2502
...
mth38--sup
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
966290ff4d | ||
|
|
4994982a90 | ||
|
|
40d4fca8cc | ||
|
|
c8dc63d418 | ||
|
|
7fe0f70640 | ||
|
|
55e20ea993 | ||
|
|
7d85a59e6f |
2
.github/workflows/Dockerfile_builder
vendored
2
.github/workflows/Dockerfile_builder
vendored
@@ -8,7 +8,7 @@
|
||||
#
|
||||
# ******************************************************************************
|
||||
|
||||
FROM ubuntu:latest
|
||||
FROM ubuntu:22.04
|
||||
SHELL ["/bin/bash", "-c"]
|
||||
USER root:root
|
||||
# Install build tools
|
||||
|
||||
3
.github/workflows/buildRelease.yml
vendored
3
.github/workflows/buildRelease.yml
vendored
@@ -152,7 +152,7 @@ jobs:
|
||||
|| needs.inputs.outputs.force == 'true'
|
||||
)
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-22.04
|
||||
|
||||
steps:
|
||||
# Checkout the actions for this repo owner
|
||||
@@ -503,6 +503,7 @@ jobs:
|
||||
- name: Install SDL2
|
||||
run: |
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
sudo -E apt-get update
|
||||
sudo -E apt-get install -y libsdl2-dev libsdl2-2.0-0
|
||||
|
||||
# Install Emscripten SDK
|
||||
|
||||
@@ -221,17 +221,17 @@ static const int generic_X_keymap[] = {
|
||||
/* keypad digit assignments above, try assigning */
|
||||
/* the new arrow-key key#s assigned for RS/6000 */
|
||||
/* Failing that, try assigning the keypad #s. */
|
||||
1, 84, XK_Left,
|
||||
0, 129, XK_Left,
|
||||
0, 84, XK_Left,
|
||||
|
||||
1, 82, XK_Up,
|
||||
0, 130, XK_Up,
|
||||
0, 82, XK_Up,
|
||||
|
||||
1, 69, XK_Down,
|
||||
0, 131, XK_Down,
|
||||
0, 69, XK_Down,
|
||||
|
||||
1, 87, XK_Right,
|
||||
0, 132, XK_Right,
|
||||
0, 87, XK_Right,
|
||||
|
||||
0, 93, XK_Multi_key, /* Expand, Sun type-4 */
|
||||
0, 93, XK_Alt_R, /* Expand, RH Alt key */
|
||||
|
||||
@@ -71,6 +71,8 @@ extern DspInterface currentdsp;
|
||||
extern int LispKbdFd;
|
||||
int LispKbdFd = -1;
|
||||
|
||||
extern int runtime_debug_level;
|
||||
|
||||
extern fd_set LispReadFds;
|
||||
|
||||
extern DLword *EmMouseX68K;
|
||||
@@ -375,6 +377,20 @@ static u_char *make_X_keymap(void) {
|
||||
table[xcode - 7] = code;
|
||||
}
|
||||
|
||||
if (runtime_debug_level > 0) {
|
||||
printf("*********************************************************************\n");
|
||||
printf("(DEFINE-FILE-INFO \036PACKAGE \"INTERLISP\" \036READTABLE \"XCL\" \036 BASE 10)\n");
|
||||
printf("(SETQ XGetKeyboardMappingTable '(\n");
|
||||
for (i = 0; i < codecount * symspercode; i += symspercode) {
|
||||
printf("(%d (", minkey + (i / symspercode));
|
||||
for (int j = 0; j < symspercode; j++) {
|
||||
printf(" #X%lx", (unsigned long)mapping[i+j]);
|
||||
}
|
||||
printf(" ))\n");
|
||||
}
|
||||
printf("\n))\nSTOP\n");
|
||||
printf("*********************************************************************\n");
|
||||
}
|
||||
#ifdef DEBUG
|
||||
printf("\n\n\tXGetKeyboardMapping table\n\n");
|
||||
for (i = 0; i < codecount * symspercode; i += symspercode) {
|
||||
|
||||
23
src/main.c
23
src/main.c
@@ -226,6 +226,8 @@ int save_argc;
|
||||
char **save_argv;
|
||||
int display_max = 65536 * 16 * 2;
|
||||
|
||||
long runtime_debug_level = 0;
|
||||
|
||||
/* diagnostic flag for sysout dumping */
|
||||
extern unsigned maxpages;
|
||||
|
||||
@@ -327,10 +329,10 @@ extern char backgroundColorName[64];
|
||||
#endif
|
||||
char windowTitle[255] = "Medley";
|
||||
extern char windowTitle[255];
|
||||
int lispDisplayRequestedWidth = 1024;
|
||||
extern int lispDisplayRequestedWidth;
|
||||
int lispDisplayRequestedHeight = 768;
|
||||
extern int lispDisplayRequestedHeight;
|
||||
unsigned LispDisplayRequestedWidth = 1024, LispDisplayRequestedHeight = 768;
|
||||
extern unsigned LispDisplayRequestedWidth, LispDisplayRequestedHeight;
|
||||
int LispDisplayRequestedX = 0, LispDisplayRequestedY = 0;
|
||||
extern int LispDisplayRequestedX, LispDisplayRequestedY;
|
||||
int pixelScale = 1;
|
||||
extern int pixelScale;
|
||||
|
||||
@@ -345,6 +347,7 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
int i;
|
||||
char *envname;
|
||||
char *rtdebug;
|
||||
extern int TIMER_INTERVAL;
|
||||
extern fd_set LispReadFds;
|
||||
long tmpint;
|
||||
@@ -474,7 +477,7 @@ int main(int argc, char *argv[])
|
||||
#ifdef SDL
|
||||
else if ((strcmp(argv[i], "-sc") == 0) || (strcmp(argv[i], "-SC") == 0)) {
|
||||
if (argc > ++i) {
|
||||
int read = sscanf(argv[i], "%dx%d", &lispDisplayRequestedWidth, &lispDisplayRequestedHeight);
|
||||
int read = sscanf(argv[i], "%dx%d", &LispDisplayRequestedWidth, &LispDisplayRequestedHeight);
|
||||
if(read != 2) {
|
||||
(void)fprintf(stderr, "Could not parse -sc argument %s\n", argv[i]);
|
||||
exit(1);
|
||||
@@ -677,6 +680,14 @@ int main(int argc, char *argv[])
|
||||
//
|
||||
//
|
||||
|
||||
if ((rtdebug = getenv("LDERUNTIMEDEBUG")) != NULL) {
|
||||
errno = 0;
|
||||
runtime_debug_level = strtol(rtdebug, (char **)NULL, 10);
|
||||
if (errno != 0) {
|
||||
runtime_debug_level = 0; // default to OFF if erroneous value
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* Sanity checks. */
|
||||
#ifdef DOS
|
||||
@@ -717,7 +728,7 @@ int main(int argc, char *argv[])
|
||||
make_dsp_instance(currentdsp, 0, 0, 0, 1); /* All defaults the first time */
|
||||
#endif /* DOS || XWINDOW */
|
||||
#if defined(SDL)
|
||||
init_SDL(windowTitle, lispDisplayRequestedWidth, lispDisplayRequestedHeight, pixelScale);
|
||||
init_SDL(windowTitle, LispDisplayRequestedWidth, LispDisplayRequestedHeight, pixelScale);
|
||||
#endif /* SDL */
|
||||
/* Load sysout to VM space and returns real sysout_size(not 0) */
|
||||
sysout_size = sysout_loader(sysout_name, sysout_size);
|
||||
|
||||
@@ -50,8 +50,6 @@ unsigned LispWindowRequestedHeight = DEF_WIN_HEIGHT;
|
||||
|
||||
extern int LispDisplayRequestedX, LispDisplayRequestedY;
|
||||
extern unsigned LispDisplayRequestedWidth, LispDisplayRequestedHeight;
|
||||
int LispDisplayRequestedX, LispDisplayRequestedY;
|
||||
unsigned LispDisplayRequestedWidth, LispDisplayRequestedHeight;
|
||||
|
||||
extern Colormap Colors;
|
||||
Colormap Colors;
|
||||
|
||||
Reference in New Issue
Block a user