anvil-editor: init at 0.4
[NixPkgs.git] / pkgs / applications / audio / squishyball / gnu-screen.patch
blobaddc30d604c61b1464224a91a3d17dbb53de0a27
1 diff -Naur a/main.c b/main.c
2 --- a/main.c 2016-09-06 13:37:32.259895631 +0200
3 +++ b/main.c 2016-09-07 01:41:51.014309863 +0200
4 @@ -693,6 +693,11 @@
7 /* set up terminal */
8 + if (!strncmp(getenv("TERM"), "screen", 6)) {
9 + char term[256];
10 + snprintf(term, sizeof(term), "xterm%s", getenv("TERM") + 6);
11 + setenv("TERM", term, 1);
12 + }
13 atexit(min_panel_remove);
14 panel_init(pcm, test_files, test_mode, start, end>0 ? end : len, len,
15 beep_mode, restart_mode, tests, running_score);
16 @@ -1170,4 +1175,3 @@
17 fprintf(stderr,"Done.\n");
18 return 0;