Skip to content

Commit 7c51bfd

Browse files
authored
Merge pull request #4 from biglinux/origin/embedded-terminal
Add space before cd and before ssh, and change background color of mo…
2 parents 6adcdcb + 666f0b3 commit 7c51bfd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/nemo-terminal-widget.c

Lines changed: 3 additions & 3 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);

0 commit comments

Comments
 (0)