mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-06 03:08:31 +00:00
Make improvements
- Get mprotect_test working on aarch64 - Get completion working on python.com repl again - Improve quality of printvideo.com and printimage.com - Fix bug in openpty() so examples/script.c works again
This commit is contained in:
parent
b94b29d79c
commit
61b9677c05
11 changed files with 107 additions and 134 deletions
|
@ -1533,6 +1533,7 @@ static void TryToOpenFrameBuffer(void) {
|
|||
|
||||
int main(int argc, char *argv[]) {
|
||||
sigset_t wut;
|
||||
const char *s;
|
||||
gamma_ = 2.4;
|
||||
volscale_ -= 2;
|
||||
dither_ = true;
|
||||
|
@ -1546,8 +1547,17 @@ int main(int argc, char *argv[]) {
|
|||
if (!tuned_) PickDefaults();
|
||||
if (optind == argc) PrintUsage(EX_USAGE, stderr);
|
||||
patharg_ = argv[optind];
|
||||
sox_ = strdup(commandvenv("SOX", "sox"));
|
||||
ffplay_ = strdup(commandvenv("FFPLAY", "ffplay"));
|
||||
s = commandvenv("SOX", "sox");
|
||||
sox_ = s ? strdup(s) : 0;
|
||||
s = commandvenv("FFPLAY", "ffplay");
|
||||
ffplay_ = s ? strdup(s) : 0;
|
||||
if (!sox_ && !ffplay_) {
|
||||
fprintf(stderr, "please install either the "
|
||||
"`play` (sox) or "
|
||||
"`ffplay` (ffmpeg) "
|
||||
"commands, so printvideo.com can play audio\n");
|
||||
usleep(10000);
|
||||
}
|
||||
infd_ = STDIN_FILENO;
|
||||
outfd_ = STDOUT_FILENO;
|
||||
if (!setjmp(jb_)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue