Skip to content

Commit 748e2d4

Browse files
committed
Add space before cd and before ssh, and change background color of monokai
1 parent 93ddce0 commit 748e2d4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/nemo-terminal-widget.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2426,7 +2426,7 @@ static const NemoTerminalColorPalette one_half_light_palette = {
24262426
// Monokai theme (classic approximation)
24272427
static const NemoTerminalColorPalette monokai_palette = {
24282428
.foreground = {.red = 0.929, .green = 0.925, .blue = 0.910, .alpha = 1.0}, // f8f8f2
2429-
.background = {.red = 0.153, .green = 0.157, .blue = 0.149, .alpha = 1.0}, // 272822
2429+
.background = {.red = 0, .green = 0, .blue = 0, .alpha = 1.0}, // 000000
24302430
.palette = {
24312431
{.red = 0.153, .green = 0.157, .blue = 0.149, .alpha = 1.0}, /* Black (bg) 272822 */
24322432
{.red = 0.980, .green = 0.149, .blue = 0.450, .alpha = 1.0}, /* Red f92672 */
@@ -2681,7 +2681,7 @@ build_ssh_command_string(const gchar *hostname, const gchar *username, const gch
26812681

26822682
// GString struct itself is managed by the g_string_free call at the end when stealing the buffer.
26832683
// Do NOT use g_autofree on cmd_builder here, as g_string_free(..., FALSE) frees the struct.
2684-
GString *cmd_builder = g_string_new("ssh ");
2684+
GString *cmd_builder = g_string_new(" ssh ");
26852685

26862686
// Append username if provided
26872687
if (username != NULL && *username != '\0')
@@ -2957,7 +2957,7 @@ feed_cd_command(VteTerminal *terminal, const char *path)
29572957

29582958
g_autofree gchar *quoted_path = g_shell_quote(path);
29592959
// Use \r (carriage return) to execute, some shells might prefer \n. \r is common.
2960-
g_autofree gchar *cd_command_str = g_strdup_printf("cd %s\r", quoted_path);
2960+
g_autofree gchar *cd_command_str = g_strdup_printf(" cd %s\r", quoted_path);
29612961

29622962
if (!cd_command_str) {
29632963
g_warning("feed_cd_command: Failed to create cd command string for path: %s", path);
@@ -2983,4 +2983,4 @@ feed_cd_command(VteTerminal *terminal, const char *path)
29832983
vte_terminal_feed_child(terminal, "\x01", -1); // Ctrl+A
29842984
vte_terminal_feed_child(terminal, "\033[3~", -1); // Delete char (the space)
29852985
vte_terminal_feed_child(terminal, "\x05", -1); // Ctrl+E (end of line)
2986-
}
2986+
}

0 commit comments

Comments
 (0)