Skip to content

Commit

Permalink
* ui_screen_manager.c: Set COLORTERM environmental variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
arakiken committed Feb 5, 2022
1 parent 2ee22f5 commit 8227c60
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2022-02-05 Araki Ken <arakiken@users.sf.net>

* ui_screen_manager.c: Set COLORTERM environmental variable.

2022-02-04 Araki Ken <arakiken@users.sf.net>

* c_sixel.c: Fix segmentation fault when the repeat count in sixel
Expand Down
3 changes: 3 additions & 0 deletions doc/en/ReleaseNote
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
* Set "COLORTERM=truecolor" environmental variable.
(https://github.com/arakiken/mlterm/issues/36)
* Bug fixes:
Fix https://github.com/arakiken/mlterm/issues/34.
Fix https://github.com/arakiken/mlterm/issues/35.

ver 3.9.2
* Support Fcitx5.
Expand Down
3 changes: 2 additions & 1 deletion uitoolkit/ui_screen_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ static int open_pty_intern(vt_term_t *term, char *cmd_path, char **cmd_argv,
Window window;
u_int width_pix;
u_int height_pix;
char *env[7]; /* MLTERM,TERM,WINDOWID,WAYLAND_DISPLAY,DISPLAY,COLORFGBG,NULL */
char *env[8]; /* MLTERM,TERM,WINDOWID,WAYLAND_DISPLAY,DISPLAY,COLORFGBG,COLORTERM,NULL */
char **env_p;
char wid_env[9 + DIGIT_STR_LEN(Window) + 1]; /* "WINDOWID="(9) + [32bit digit] + NULL(1) */
char *disp_env;
Expand Down Expand Up @@ -195,6 +195,7 @@ static int open_pty_intern(vt_term_t *term, char *cmd_path, char **cmd_argv,
*(env_p++) = term_env;
}

*(env_p++) = "COLORTERM=truecolor";
*(env_p++) = "COLORFGBG=default;default";

/* NULL terminator */
Expand Down

0 comments on commit 8227c60

Please sign in to comment.