diff options
| author | Mark Felder <feld@FreeBSD.org> | 2016-03-14 14:45:32 +0000 |
|---|---|---|
| committer | Mark Felder <feld@FreeBSD.org> | 2016-03-14 14:45:32 +0000 |
| commit | a279f6a74df512f80b5e7ceea2d176876e030cab (patch) | |
| tree | b10de8c1f81d6439b7c09184db693a65099778db /sysutils/showbeastie/files/patch-testmain.c | |
| parent | comms/qpage: Resurrect port (diff) | |
Preview FreeBSD loader logos in your terminal
PR: 207645
Submitted by: Tobias Kortkamp <t@tobik.me>
Diffstat (limited to 'sysutils/showbeastie/files/patch-testmain.c')
| -rw-r--r-- | sysutils/showbeastie/files/patch-testmain.c | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/sysutils/showbeastie/files/patch-testmain.c b/sysutils/showbeastie/files/patch-testmain.c new file mode 100644 index 000000000000..1a9b24a062b1 --- /dev/null +++ b/sysutils/showbeastie/files/patch-testmain.c @@ -0,0 +1,43 @@ +--- testmain.c.orig 2016-03-02 15:04:22 UTC ++++ testmain.c +@@ -316,17 +316,38 @@ int main(int argc, char **argv) + buildTestInterface(pSys); + pVM = ficlNewVM(pSys); + +- ficlEvaluate(pVM, ".ver .( " __DATE__ " ) cr quit"); ++ ficlEvaluate(pVM, ": loader_color? ( -- ) TRUE ;"); ++ ficlEvaluate(pVM, "vocabulary support-functions"); ++ ficlEvaluate(pVM, ": contains? ( -- ) FALSE ;"); ++ ficlEvaluate(pVM, ": any_conf_read? ( -- ) FALSE ;"); ++ ficlEvaluate(pVM, ": load_kernel ( -- ) ;"); ++ ficlEvaluate(pVM, ": load_modules ( -- ) ;"); ++ ficlEvaluate(pVM, ": delay_execute ( -- ) ;"); ++ ficlEvaluate(pVM, "variable logoX"); ++ ficlEvaluate(pVM, "variable logoY"); ++ ++ sprintf(in, "load %s", "/boot/screen.4th"); ++ ficlEvaluate(pVM, in); ++ sprintf(in, "load %s", "/boot/beastie.4th"); ++ ficlEvaluate(pVM, in); + + /* + ** load file from cmd line... + */ + if (argc > 1) + { +- sprintf(in, ".( loading %s ) cr load %s\n cr", argv[1], argv[1]); ++ sprintf(in, "load %s", argv[1], argv[1]); + ficlEvaluate(pVM, in); ++ } else { ++ fprintf(stderr, "usage: %s <logo.4th>\n", argv[0]); ++ return 1; + } + ++ system("clear"); ++ ficlEvaluate(pVM, "draw-beastie"); ++ printf("\n\n"); ++ return 0; ++ + for (;;) + { + int ret; |
